com.ihr.xbrl.formula
Class FlVariableResolver

java.lang.Object
  extended by com.ihr.xbrl.formula.FlVariableResolver
All Implemented Interfaces:
XBRLVariableResolver, javax.xml.xpath.XPathVariableResolver

public class FlVariableResolver
extends java.lang.Object
implements XBRLVariableResolver


Field Summary
 java.util.logging.Logger logger
           
 
Constructor Summary
FlVariableResolver(FlFormulaProcessor fp)
           
 
Method Summary
 void bindVariableValues(net.sf.saxon.s9api.XPathSelector xpathExpression)
          Bind real variable values to the variables defined previously
 void checkVariablesFrom(XBRLVariableResolver res)
          Check variable declarations in res and existing variable declarations Add only new variables and update values for existing variables
 void clear()
           
 void declareVariables(net.sf.saxon.s9api.XPathCompiler compiler)
          Declares all variables into the compiler object
 java.util.Iterator<javax.xml.namespace.QName> getVariableNames()
          Returns an iterator over all variables defined
 void put(javax.xml.namespace.QName name, java.lang.Object value)
           
 java.lang.Object resolveVariable(javax.xml.namespace.QName variableName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public java.util.logging.Logger logger
Constructor Detail

FlVariableResolver

public FlVariableResolver(FlFormulaProcessor fp)
Method Detail

resolveVariable

public java.lang.Object resolveVariable(javax.xml.namespace.QName variableName)
Specified by:
resolveVariable in interface javax.xml.xpath.XPathVariableResolver

clear

public void clear()

put

public void put(javax.xml.namespace.QName name,
                java.lang.Object value)

declareVariables

public void declareVariables(net.sf.saxon.s9api.XPathCompiler compiler)
Description copied from interface: XBRLVariableResolver
Declares all variables into the compiler object

Specified by:
declareVariables in interface XBRLVariableResolver

bindVariableValues

public void bindVariableValues(net.sf.saxon.s9api.XPathSelector xpathExpression)
Description copied from interface: XBRLVariableResolver
Bind real variable values to the variables defined previously

Specified by:
bindVariableValues in interface XBRLVariableResolver
Parameters:
xpathExpression -

checkVariablesFrom

public void checkVariablesFrom(XBRLVariableResolver res)
Description copied from interface: XBRLVariableResolver
Check variable declarations in res and existing variable declarations Add only new variables and update values for existing variables

Specified by:
checkVariablesFrom in interface XBRLVariableResolver

getVariableNames

public java.util.Iterator<javax.xml.namespace.QName> getVariableNames()
Description copied from interface: XBRLVariableResolver
Returns an iterator over all variables defined

Specified by:
getVariableNames in interface XBRLVariableResolver
Returns:
Iterator<QName>


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa