com.ihr.xbrl.om.formula.util
Class XPathHelper
java.lang.Object
com.ihr.xbrl.om.formula.util.XPathHelper
public class XPathHelper
- extends java.lang.Object
- Author:
- Ignacio
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathHelper
public XPathHelper(net.sf.saxon.s9api.XPathCompiler compiler,
XBRLVariableSetResource set,
java.util.Collection<javax.xml.namespace.QName> declaredVariables,
XMLEvaluationContextProvider contextProvider)
- Parameters:
compiler - the XPathCompiler associated with this object instance.set - this variable is used internally in the evaluate* methods and in the getContainer() method in order to expose the DTS container to other objects.declaredVariables - a collection of QNames with the variable names declared for the resolution of XPath expressionscontextProvider - the context provider for the evaluation of XPath Expressionsinstance - This is the instance document the is being constructed
getContextProvider
public XMLEvaluationContextProvider getContextProvider()
- Returns:
getSelector
public net.sf.saxon.s9api.XPathSelector getSelector(java.lang.String expression)
throws XFValidationException
- Throws:
XFValidationException
evaluateNode
public net.sf.saxon.s9api.XdmItem evaluateNode(net.sf.saxon.s9api.XPathSelector sel)
evaluateNode
public net.sf.saxon.s9api.XdmItem evaluateNode(java.lang.String expression)
- Parameters:
expression -
- Returns:
evaluateString
public java.lang.String evaluateString(java.lang.String expression)
- Parameters:
schemeExpression -
- Returns:
getSet
public XBRLVariableSetResource getSet()
getContainer
public DTSContainer getContainer()
getCompiler
public net.sf.saxon.s9api.XPathCompiler getCompiler()
evaluateList
public net.sf.saxon.s9api.XdmValue evaluateList(java.lang.String expression)
- Parameters:
xpath -
evaluateList
public net.sf.saxon.s9api.XdmValue evaluateList(net.sf.saxon.s9api.XPathSelector sel)
- Parameters:
xpath -
evaluateBoolean
public boolean evaluateBoolean(net.sf.saxon.s9api.XPathSelector sel)
throws XFValidationException
- Throws:
XFValidationException
Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa