Class LogicalFilterComposer


  • public class LogicalFilterComposer
    extends Object
    Build CrawlableDatasetFilters from other CrawlableDatasetFilters using logical composition (AND, OR, NOT).

    For instance, the expression

     (A || B) && !(C && D)
     
    can be expressed with the following code (assuming A, B, C, and D are CrawlableDatasetFilters)
     LogicalFilterComposer.getAndFilter(LogicalFilterComposer.getOrFilter(A, B),
         LogicalFilterComposer.getNotFilter(LogicalFilterComposer.getAndFilter(C, D)));
     
    Since:
    Jan 19, 2007 9:53:00 AM