public class XPathOnXMLFragment
extends java.lang.Object
| Constructor and Description |
|---|
XPathOnXMLFragment(XMLFragment xmlFragment)
Instantiates a new x path on XML fragment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear.
|
XPathOnXMLFragment |
declareNamespace(net.sf.saxon.om.NamespaceBinding namespaceBinding)
Declare namespace.
|
java.lang.Boolean |
evaluateBoolean(java.lang.String strXPath)
Evaluates an XPath 2.0 expression using this node as the evaluation conetxt.
|
net.sf.saxon.s9api.XdmValue |
evaluateList(java.lang.String strXPath)
Evaluates an XPath 2.0 expression using this node as the evaluation context.
|
net.sf.saxon.s9api.XdmItem |
evaluateNode(java.lang.String strXPath)
Evaluates an XPath 2.0 expression using this node as the evaluation conetxt.
|
java.lang.Double |
evaluateNumber(java.lang.String strXPath)
Evaluates an XPath 2.0 expression using this node as the evaluation context.
|
java.lang.String |
evaluateString(java.lang.String strXPath)
Evaluates an XPath 2.0 expression using this node as the evaluation conetxt.
|
net.sf.saxon.expr.StaticContext |
getStaticContext()
Returns a StaticContext from this XMLFragment.
|
net.sf.saxon.s9api.XPathExecutable |
getXPathExecutable(java.lang.String strXPath)
Prepares an XPathExecutable from an XPath string that uses this XMLFragment properties
for evaluation.
|
XPathOnXMLFragment |
importSchemaNamespace(java.lang.String nampespace)
Import schema namespace.
|
void |
setNamespaceContext(net.sf.saxon.om.NamespaceResolver ns)
Replace the namespace context of this XMLFragment by the new one provided
as a parameter
|
void |
setVariablesDefined(XBRLVariableResolver res)
Sets the object that will serve as a variable resolver for variables in the
scope of this object.
|
public XPathOnXMLFragment(XMLFragment xmlFragment)
xmlFragment - the xml fragmentpublic net.sf.saxon.expr.StaticContext getStaticContext()
public net.sf.saxon.s9api.XPathExecutable getXPathExecutable(java.lang.String strXPath)
throws net.sf.saxon.s9api.SaxonApiException
strXPath - the str x pathnet.sf.saxon.s9api.SaxonApiException - the saxon api exceptionpublic void setVariablesDefined(XBRLVariableResolver res)
res - XBRLVariableResolverpublic void setNamespaceContext(net.sf.saxon.om.NamespaceResolver ns)
ns - The new namespace context to use in XPath evaluationspublic net.sf.saxon.s9api.XdmValue evaluateList(java.lang.String strXPath)
strXPath - the str x pathpublic java.lang.String evaluateString(java.lang.String strXPath)
strXPath - the str x pathpublic net.sf.saxon.s9api.XdmItem evaluateNode(java.lang.String strXPath)
strXPath - the str x pathpublic java.lang.Boolean evaluateBoolean(java.lang.String strXPath)
strXPath - the str x pathpublic java.lang.Double evaluateNumber(java.lang.String strXPath)
strXPath - the str x pathpublic void clear()
public XPathOnXMLFragment declareNamespace(net.sf.saxon.om.NamespaceBinding namespaceBinding)
namespaceBinding - the namespace bindingpublic XPathOnXMLFragment importSchemaNamespace(java.lang.String nampespace)
nampespace - the nampespaceCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa