Package thredds.crawlabledataset.filter
Class MultiSelectorFilter.Selector
- java.lang.Object
-
- thredds.crawlabledataset.filter.MultiSelectorFilter.Selector
-
- Enclosing class:
- MultiSelectorFilter
public static class MultiSelectorFilter.Selector extends Object
Used by a MultiSelectorFilter to determine whether to include or exclude a CrawlableDataset.
-
-
Constructor Summary
Constructors Constructor Description Selector(CrawlableDatasetFilter filter, boolean includer, boolean applyToAtomicDataset, boolean applyToCollectionDataset)Construct a Selector which uses the given CrawlableDatasetFilter to determine a dataset match.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrawlableDatasetFiltergetFilter()booleanisApplicable(CrawlableDataset dataset)Test if this selector applies to the given dataset.booleanisApplyToAtomicDataset()booleanisApplyToCollectionDataset()booleanisExcluder()Return true if this selector is an exclusion rather than inclusion selector.booleanisIncluder()Return true if this selector is an inclusion rather than exclusion selector.booleanmatch(CrawlableDataset dataset)Determine if the given dataset matches this selector.
-
-
-
Constructor Detail
-
Selector
public Selector(CrawlableDatasetFilter filter, boolean includer, boolean applyToAtomicDataset, boolean applyToCollectionDataset)
Construct a Selector which uses the given CrawlableDatasetFilter to determine a dataset match.- Parameters:
filter- the filter used by this Selector to match against datasets.includer- if true, matching datasets will be included, otherwise they will be excluded.applyToAtomicDataset- if true, this selector applies to atomic datasets.applyToCollectionDataset- if true, this selector applies to collection datasets.
-
-
Method Detail
-
getFilter
public CrawlableDatasetFilter getFilter()
-
isApplyToAtomicDataset
public boolean isApplyToAtomicDataset()
-
isApplyToCollectionDataset
public boolean isApplyToCollectionDataset()
-
match
public boolean match(CrawlableDataset dataset)
Determine if the given dataset matches this selector.- Parameters:
dataset- the CrawlableDataset to test if this selector matches.- Returns:
- true if the given dataset matches this selector, otherwise false.
-
isApplicable
public boolean isApplicable(CrawlableDataset dataset)
Test if this selector applies to the given dataset.- Parameters:
dataset- the CrawlableDataset to test if this selector applies.- Returns:
- true if this selector applies to the given dataset, false otherwise.
-
isIncluder
public boolean isIncluder()
Return true if this selector is an inclusion rather than exclusion selector.- Returns:
- true if this selector is an inclusion selector.
-
isExcluder
public boolean isExcluder()
Return true if this selector is an exclusion rather than inclusion selector.- Returns:
- true if this selector is an exclusion selector.
-
-