|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.xml_project.morganaxproc.core.XPathInXProcSelector
public class XPathInXProcSelector
Instancing of this class represent a ready to run XPath expression
Method Summary | |
---|---|
java.lang.String |
getExpression()
Returns the expression represented in this XPath match pattern as string. |
XdmSequence |
run(nu.xom.Node context)
Return an XdmSequence with the selected nodes. |
boolean |
runToBoolean(nu.xom.Node context)
Returns the effective boolean value for the expression and the context node. |
nu.xom.Document[] |
runToDocuments(nu.xom.Node context)
Evaluates the expression for the given context node. |
nu.xom.Node[] |
runToNodes(nu.xom.Node context)
Returns a Node array with the selected nodes. |
XS_UntypedAtomic |
runToValue(nu.xom.Node context)
Evaluates the given expression for the given context node to an xs:untypedAtomic. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public XdmSequence run(nu.xom.Node context) throws XPathException
Return an XdmSequence with the selected nodes. Use runToNodes() if you do not need an XdmSequence.
context
- the context node
XPathException
- if an error occurred during evaluation.public XS_UntypedAtomic runToValue(nu.xom.Node context) throws XPathException
Evaluates the given expression for the given context node to an xs:untypedAtomic. Use getStringValue() to get the actual value.
context
- the context node
XPathException
- if an error occurred during evaluation.public boolean runToBoolean(nu.xom.Node context) throws XPathException
Returns the effective boolean value for the expression and the context node.
context
- the context node.
XPathException
- if an error occurred during evaluation.public nu.xom.Document[] runToDocuments(nu.xom.Node context) throws XPathException
Evaluates the expression for the given context node.
Results of type element are wrapped into a document.
An Exception is thrown if the expression does not evaluate to an element or a document.
context
- the context node
XPathException
- if an error occurred during evaluation.public nu.xom.Node[] runToNodes(nu.xom.Node context) throws XPathException
Returns a Node array with the selected nodes.
context
- the context node
XPathException
- if an error occurred during evaluation.public java.lang.String getExpression()
Returns the expression represented in this XPath match pattern as string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |