com.ihr.xbrl.om.formula.util
Class XPathHelper

java.lang.Object
  extended by com.ihr.xbrl.om.formula.util.XPathHelper

public class XPathHelper
extends java.lang.Object

Author:
Ignacio

Constructor Summary
XPathHelper(net.sf.saxon.s9api.XPathCompiler compiler, XBRLVariableSetResource set, java.util.Collection<javax.xml.namespace.QName> declaredVariables, XMLEvaluationContextProvider contextProvider)
           
 
Method Summary
 boolean evaluateBoolean(net.sf.saxon.s9api.XPathSelector sel)
           
 net.sf.saxon.s9api.XdmValue evaluateList(java.lang.String expression)
           
 net.sf.saxon.s9api.XdmValue evaluateList(net.sf.saxon.s9api.XPathSelector sel)
           
 net.sf.saxon.s9api.XdmItem evaluateNode(java.lang.String expression)
           
 net.sf.saxon.s9api.XdmItem evaluateNode(net.sf.saxon.s9api.XPathSelector sel)
           
 java.lang.String evaluateString(java.lang.String expression)
           
 net.sf.saxon.s9api.XPathCompiler getCompiler()
           
 DTSContainer getContainer()
           
 XMLEvaluationContextProvider getContextProvider()
           
 net.sf.saxon.s9api.XPathSelector getSelector(java.lang.String expression)
           
 XBRLVariableSetResource getSet()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 expressions
contextProvider - the context provider for the evaluation of XPath Expressions
instance - This is the instance document the is being constructed
Method Detail

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