|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.archive.crawler.settings.refinements.RegularExpressionCriteria
public class RegularExpressionCriteria
A refinement criteria that test if a URI matches a regular expression.
Constructor Summary | |
---|---|
RegularExpressionCriteria()
Create a new instance of RegularExpressionCriteria. |
|
RegularExpressionCriteria(java.lang.String regexp)
Create a new instance of RegularExpressionCriteria initializing it with a regular expression. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns a description of the Criteria's current settings. |
java.lang.String |
getName()
Returns the name of the Criteria type. |
java.lang.String |
getRegexp()
Get the regular expression to be matched against a URI. |
boolean |
isWithinRefinementBounds(UURI uri)
Check if a uri is within the bounds of this criteria. |
void |
setRegexp(java.lang.String regexp)
Set the regular expression to be matched against a URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegularExpressionCriteria()
public RegularExpressionCriteria(java.lang.String regexp)
regexp
- the regular expression for this criteria.Method Detail |
---|
public boolean isWithinRefinementBounds(UURI uri)
Criteria
isWithinRefinementBounds
in interface Criteria
uri
- the UURI to check.
public java.lang.String getRegexp()
public void setRegexp(java.lang.String regexp)
regexp
- The regexp to set.public java.lang.String getName()
Criteria
getName
in interface Criteria
public java.lang.String getDescription()
Criteria
getDescription
in interface Criteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |