public class JcrBoolPropertyPredicateEvaluator extends JcrPropertyPredicateEvaluator
JcrPropertyPredicateEvaluator
specialized for boolean properties. It
only accepts the values "true" and "false" and in the case of "false" it will
check for both the value "false" and a non-existent property at all. The
inherited "operation" parameter has no meaning.
Modifier and Type | Field and Description |
---|---|
static String |
BOOLPROPERTY |
AND, DEPTH, MAX_NUMBER_OF_VALUES, OP_EQUALS, OP_EXISTS, OP_LIKE, OP_NOT, OP_UNEQUALS, OPERATION, PROPERTY, STEP, VALUE
Constructor and Description |
---|
JcrBoolPropertyPredicateEvaluator() |
Modifier and Type | Method and Description |
---|---|
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 String BOOLPROPERTY
public 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 dropped"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"