Package org.archive.modules.deciderules
Class NotMatchesFilePatternDecideRule
java.lang.Object
org.archive.modules.deciderules.DecideRule
org.archive.modules.deciderules.PredicatedDecideRule
org.archive.modules.deciderules.MatchesRegexDecideRule
org.archive.modules.deciderules.MatchesFilePatternDecideRule
org.archive.modules.deciderules.NotMatchesFilePatternDecideRule
- All Implemented Interfaces:
Serializable
,org.archive.spring.HasKeyedProperties
public class NotMatchesFilePatternDecideRule extends MatchesFilePatternDecideRule
Rule applies configured decision to any URIs which do *not*
match the supplied (file-pattern) regex.
- Author:
- gojomo
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.archive.modules.deciderules.MatchesFilePatternDecideRule
MatchesFilePatternDecideRule.Preset
-
Field Summary
Fields inherited from class org.archive.modules.deciderules.DecideRule
comment, kp
-
Constructor Summary
Constructors Constructor Description NotMatchesFilePatternDecideRule()
Usual constructor. -
Method Summary
Methods inherited from class org.archive.modules.deciderules.MatchesFilePatternDecideRule
getRegex, getUsePreset, setUsePreset
Methods inherited from class org.archive.modules.deciderules.MatchesRegexDecideRule
getString, setRegex
Methods inherited from class org.archive.modules.deciderules.PredicatedDecideRule
getDecision, innerDecide, onlyDecision, setDecision
Methods inherited from class org.archive.modules.deciderules.DecideRule
accepts, decisionFor, getComment, getEnabled, getKeyedProperties, setComment, setEnabled
-
Constructor Details
-
NotMatchesFilePatternDecideRule
public NotMatchesFilePatternDecideRule()Usual constructor.
-
-
Method Details
-
evaluate
Evaluate whether given object's string version does not match configured regex (by reversing the superclass's answer).- Overrides:
evaluate
in classMatchesRegexDecideRule
- Parameters:
uri
- CrawlURI to make decision about.- Returns:
- true if the regex is not matched
-