thredds.crawlabledataset.filter
Class MultiSelectorFilter.Selector

java.lang.Object
  extended by thredds.crawlabledataset.filter.MultiSelectorFilter.Selector
Enclosing class:
MultiSelectorFilter

public static class MultiSelectorFilter.Selector
extends java.lang.Object

Used by a MultiSelectorFilter to determine whether to include or exclude a CrawlableDataset.


Constructor Summary
MultiSelectorFilter.Selector(CrawlableDatasetFilter filter, boolean includer, boolean applyToAtomicDataset, boolean applyToCollectionDataset)
          Construct a Selector which uses the given CrawlableDatasetFilter to determine a dataset match.
 
Method Summary
 CrawlableDatasetFilter getFilter()
           
 boolean isApplicable(CrawlableDataset dataset)
          Test if this selector applies to the given dataset.
 boolean isApplyToAtomicDataset()
           
 boolean isApplyToCollectionDataset()
           
 boolean isExcluder()
           
 boolean isIncluder()
          If true, this selector includes any matching dataset.
 boolean match(CrawlableDataset dataset)
          Determine if the given dataset matches this selector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiSelectorFilter.Selector

public MultiSelectorFilter.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.


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()
If true, this selector includes any matching dataset.


isExcluder

public boolean isExcluder()