public interface XPathBuilder
EvaluatorXPath provides means for partially evaluating
the underlying query's condition. This allows to determine whether there is a semantically
equivalent translation from the CMIS query's where clause to an XPath condition.
EvaluatorXPath only supports a single folder predicate. That
is the original CMIS query must not contain more than one IN_TREE or IN_FOLDER
predicate respectively. Furthermore that single folder predicate must be affirmative.
A literal p in a boolean expression X is affirmative if there
exists a boolean expression Y such that p ∧ Y = X.
Note: a single folder predicate is affirmative if any only if
eval(false) return false.
xPath()
method be valid.| Modifier and Type | Method and Description |
|---|---|
Boolean |
eval(Boolean folderPredicateValuation)
Evaluate the query condition for a given valuation of the folder predicate terms.
|
Iterable<XPathBuilder> |
folderPredicates()
The folder predicates contained in this query's condition.
|
String |
xPath()
Translation of the underlying CMIS query's where clause to a XPath condition.
|
String xPath()
Boolean eval(Boolean folderPredicateValuation)
folderPredicateValuation - valuation for the folder predicate terms. Use null
for none.null means that the value of the
query condition is not determined the value passed for folderPredicateValuation.Iterable<XPathBuilder> folderPredicates()
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.