org.archive.crawler.deciderules
Class MatchesListRegExpDecideRule
java.lang.Object
javax.management.Attribute
org.archive.crawler.settings.Type
org.archive.crawler.settings.ComplexType
org.archive.crawler.settings.ModuleType
org.archive.crawler.deciderules.DecideRule
org.archive.crawler.deciderules.ConfiguredDecideRule
org.archive.crawler.deciderules.PredicatedDecideRule
org.archive.crawler.deciderules.MatchesListRegExpDecideRule
- All Implemented Interfaces:
- java.io.Serializable, javax.management.DynamicMBean
- Direct Known Subclasses:
- NotMatchesListRegExpDecideRule
public class MatchesListRegExpDecideRule
- extends PredicatedDecideRule
Rule applies configured decision to any CrawlURIs whose String URI
matches the supplied regexps.
The list of regular expressions can be considered logically AND or OR.
- Author:
- Kristinn Sigurdsson
- See Also:
MatchesRegExpDecideRule
,
Serialized Form
Method Summary |
protected boolean |
evaluate(java.lang.Object o)
Evaluate whether given object's string version
matches configured regexps |
protected java.util.List |
getRegexp(java.lang.Object o)
Get the regular expressions list to match the URI against. |
protected boolean |
isListLogicOR(java.lang.Object o)
|
Methods inherited from class org.archive.crawler.settings.ComplexType |
addElementToDefinition, checkValue, earlyInitialize, getAbsoluteName, getAttribute, getAttribute, getAttribute, getAttributeInfo, getAttributeInfo, getAttributeInfoIterator, getAttributes, getDataContainerRecursive, getDataContainerRecursive, getDefaultValue, getDescription, getElementFromDefinition, getLegalValues, getLocalAttribute, getMBeanInfo, getMBeanInfo, getParent, getPreservedFields, getSettingsHandler, getUncheckedAttribute, getValue, globalSettings, invoke, isInitialized, isOverridden, iterator, removeElementFromDefinition, setAsOrder, setAttribute, setAttribute, setAttributes, setDescription, setPreservedFields, toString, unsetAttribute |
Methods inherited from class org.archive.crawler.settings.Type |
addConstraint, equals, getConstraints, getLegalValueType, isExpertSetting, isOverrideable, isTransient, setExpertSetting, setLegalValueType, setOverrideable, setTransient |
Methods inherited from class javax.management.Attribute |
getName, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ATTR_REGEXP_LIST
public static final java.lang.String ATTR_REGEXP_LIST
- See Also:
- Constant Field Values
ATTR_LIST_LOGIC
public static final java.lang.String ATTR_LIST_LOGIC
- See Also:
- Constant Field Values
DEFAULT_LIST_LOGIC
public static final java.lang.String DEFAULT_LIST_LOGIC
- See Also:
- Constant Field Values
LEGAL_LIST_LOGIC
public static final java.lang.String[] LEGAL_LIST_LOGIC
MatchesListRegExpDecideRule
public MatchesListRegExpDecideRule(java.lang.String name)
- Usual constructor.
- Parameters:
name
-
evaluate
protected boolean evaluate(java.lang.Object o)
- Evaluate whether given object's string version
matches configured regexps
- Specified by:
evaluate
in class PredicatedDecideRule
- Parameters:
o
-
- Returns:
- true if regexps are matched
getRegexp
protected java.util.List getRegexp(java.lang.Object o)
- Get the regular expressions list to match the URI against.
- Parameters:
o
- the object for which the regular expression should be
matched against.
- Returns:
- the regular expression to match against.
isListLogicOR
protected boolean isListLogicOR(java.lang.Object o)
Copyright © 2003-2011 Internet Archive. All Rights Reserved.