Class NotMatchesRegexDecideRule

All Implemented Interfaces:
Serializable, org.archive.spring.HasKeyedProperties

public class NotMatchesRegexDecideRule
extends MatchesRegexDecideRule
Rule applies configured decision to any URIs which do *not* match the supplied regex.
Author:
gojomo
See Also:
Serialized Form
  • Constructor Details

    • NotMatchesRegexDecideRule

      public NotMatchesRegexDecideRule​(String name)
      Usual constructor.
  • Method Details

    • evaluate

      protected boolean evaluate​(CrawlURI object)
      Evaluate whether given object's string version does not match configured regex (by reversing the superclass's answer).
      Overrides:
      evaluate in class MatchesRegexDecideRule
      Parameters:
      object - Object to make decision about.
      Returns:
      true if the regex is not matched