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 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()
          Return true if this selector is an exclusion rather than inclusion selector.
 boolean isIncluder()
          Return true if this selector is an inclusion rather than exclusion selector.
 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.

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.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.