Package thredds.crawlabledataset.filter
Class LogicalFilterComposer
- java.lang.Object
-
- thredds.crawlabledataset.filter.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
-
-
Constructor Summary
Constructors Constructor Description LogicalFilterComposer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CrawlableDatasetFilter
getAndFilter(CrawlableDatasetFilter filter1, CrawlableDatasetFilter filter2)
static CrawlableDatasetFilter
getNotFilter(CrawlableDatasetFilter filter)
static CrawlableDatasetFilter
getOrFilter(CrawlableDatasetFilter filter1, CrawlableDatasetFilter filter2)
-
-
-
Method Detail
-
getAndFilter
public static CrawlableDatasetFilter getAndFilter(CrawlableDatasetFilter filter1, CrawlableDatasetFilter filter2)
-
getOrFilter
public static CrawlableDatasetFilter getOrFilter(CrawlableDatasetFilter filter1, CrawlableDatasetFilter filter2)
-
getNotFilter
public static CrawlableDatasetFilter getNotFilter(CrawlableDatasetFilter filter)
-
-