1 25 package org.archive.crawler.deciderules; 26 27 28 34 public class NotMatchesListRegExpDecideRule extends MatchesListRegExpDecideRule { 35 36 private static final long serialVersionUID = 8691360087063555583L; 37 38 41 42 46 public NotMatchesListRegExpDecideRule(String name) { 47 super(name); 48 setDescription("NotMatchesListRegExpDecideRule. Applies the configured " + 49 "decision to URIs *not* matching the supplied regular " + 50 "expressions. The list of regular expressions can be " + 51 "considered logically AND or OR. " + 52 "NOTE: This means that if there are no regular expressions in " + 53 "the list, this rule will apply to *all* URIs!"); 54 } 55 56 63 protected boolean evaluate(Object object) { 64 return ! super.evaluate(object); 65 } 66 } 67 | Popular Tags |