Package com.saxonica.ee.schema.sdoc
Class XSDAssert.CustomizedXPath
java.lang.Object
net.sf.saxon.sxpath.XPathEvaluator
com.saxonica.ee.schema.sdoc.XSDAssert.CustomizedXPath
- Enclosing class:
XSDAssert
Define a customized XPath evaluator which injects code into the XPath code generation;
this has the effect for a complex-type XSDAssert of modifying the expression so that
instead of returning a boolean, it returns a list of nodes that contribute to the invalidity
of the assertion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Expression
postProcess
(Expression exp, ExpressionVisitor visitor, ContextItemStaticInfo cit) Customize the expression post-optimization.Methods inherited from class net.sf.saxon.sxpath.XPathEvaluator
createExpression, createPattern, getConfiguration, getStaticContext, setStaticContext
-
Constructor Details
-
CustomizedXPath
-
-
Method Details
-
postProcess
protected Expression postProcess(Expression exp, ExpressionVisitor visitor, ContextItemStaticInfo cit) throws XPathException Customize the expression post-optimization. This method does nothing, but can be overridden in a subclass- Overrides:
postProcess
in classXPathEvaluator
- Parameters:
exp
- the expression after optimizationvisitor
- an expression visitor that includes static context informationcit
- information about the context item type- Throws:
XPathException
-