public class JcrBoolPropertyPredicateEvaluator extends JcrPropertyPredicateEvaluator
The inherited "operation" parameter has no meaning.
Supports facet extraction. Will provide buckets for each true/false value, but only for existing properties.
myFeatureEnabled
or jcr:content/myFeatureEnabled
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BOOLPROPERTY |
AND, DEPTH, MAX_NUMBER_OF_VALUES, OP_EQUALS, OP_EQUALS_IGNORE_CASE, OP_EXISTS, OP_LIKE, OP_NOT, OP_UNEQUALS, OP_UNEQUALS_IGNORE_CASE, OPERATION, PROPERTY, STEP, VALUE
Constructor and Description |
---|
JcrBoolPropertyPredicateEvaluator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getXPathExpression(Predicate p,
EvaluationContext context)
Default implementation that always returns
null , ie. |
boolean |
includes(Predicate p,
Row row,
EvaluationContext context)
Default implementation that always returns
true , ie. |
canFilter, canXpath, getFacetExtractor, getOrderByProperties
getOrderByComparator, isFiltering
public static final java.lang.String BOOLPROPERTY
public java.lang.String getXPathExpression(Predicate p, EvaluationContext context)
AbstractPredicateEvaluator
null
, ie. adds
nothing to the XPath query. Subclasses can choose whether they want to
implement this method or use the
AbstractPredicateEvaluator.includes(Predicate, Row, EvaluationContext)
method for advanced
filtering (or both).getXPathExpression
in interface PredicateEvaluator
getXPathExpression
in class JcrPropertyPredicateEvaluator
p
- predicate (for this evaluator type) which is evaluatedcontext
- helper class which provides access to various elements of the
query evaluationpublic boolean includes(Predicate p, Row row, EvaluationContext context)
AbstractPredicateEvaluator
true
, ie. it does
not "touch" the result set at all.includes
in interface PredicateEvaluator
includes
in class JcrPropertyPredicateEvaluator
p
- predicate (for this evaluator type) which is evaluatedrow
- current row of the result set returned through the xpath querycontext
- helper class which provides access to various elements of the
query evaluationtrue
if this row should be part of the final result
set, false
if it should be droppedCopyright © 2010 - 2020 Adobe. All Rights Reserved