Package adql.search
Class SearchOptionalFeaturesHandler
java.lang.Object
adql.search.SimpleSearchHandler
adql.search.SearchOptionalFeaturesHandler
- All Implemented Interfaces:
ISearchHandler
,Iterable<ADQLObject>
Handler searching for all
ADQLObject
s declared as optional in the
ADQL language.- Since:
- 2.0
- See Also:
-
Field Summary
Fields inherited from class adql.search.SimpleSearchHandler
results
-
Constructor Summary
ConstructorsConstructorDescriptionSearchOptionalFeaturesHandler
(boolean recursive) SearchOptionalFeaturesHandler
(boolean recursive, boolean onlyFirstMatch) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
match
(ADQLObject obj) Only tests whether the given ADQL object checks the search conditions.Methods inherited from class adql.search.SimpleSearchHandler
addMatch, getNbMatch, goInto, isFinished, isRecursive, iterator, onlyFirstMatch, reset, search, setOnlyFirstMatch, setRecursive
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SearchOptionalFeaturesHandler
public SearchOptionalFeaturesHandler() -
SearchOptionalFeaturesHandler
public SearchOptionalFeaturesHandler(boolean recursive) -
SearchOptionalFeaturesHandler
public SearchOptionalFeaturesHandler(boolean recursive, boolean onlyFirstMatch)
-
-
Method Details
-
match
Description copied from class:SimpleSearchHandler
Only tests whether the given ADQL object checks the search conditions.- Specified by:
match
in classSimpleSearchHandler
- Parameters:
obj
- The ADQL object to test. (warning: this object may be null !)- Returns:
- true if the given object checks the search conditions, false otherwise.
-