public class BooleanModifiersQueryNodeProcessor extends QueryNodeProcessorImpl
This processor is used to apply the correct ModifierQueryNode to BooleanQueryNodes children.
It walks through the query node tree looking for BooleanQueryNodes. If an AndQueryNode is found,
every child, which is not a ModifierQueryNode or the ModifierQueryNode
is ModifierQueryNode.Modifier.MOD_NONE, becomes a ModifierQueryNode.Modifier.MOD_REQ. For any other
BooleanQueryNode which is not an OrQueryNode, it checks the default operator is StandardQueryConfigHandler.Operator.AND,
if it is, the same operation when an AndQueryNode is found is applied to it.
| Constructor and Description |
|---|
BooleanModifiersQueryNodeProcessor() |
| Modifier and Type | Method and Description |
|---|---|
QueryNode |
process(QueryNode queryTree)
Processes a query node tree.
|
getQueryConfigHandler, setQueryConfigHandlerpublic QueryNode process(QueryNode queryTree) throws QueryNodeException
QueryNodeProcessornull.process in interface QueryNodeProcessorprocess in class QueryNodeProcessorImplqueryTree - tree root nodeQueryNodeExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved