public class XBRLVariableTree
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
The log.
|
Constructor and Description |
---|
XBRLVariableTree(XBRLVariableSetResource set)
Instantiates a new XBRL variable tree.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bindCycle(XMLEvaluationContextProvider evalProvider,
java.util.List<XBRLVariableResourceUse> evaluatedVars)
Bind variables in this level.
|
void |
clear()
Reset all memory assigned to evaluation caches of variables in this variable tree.
|
java.util.Set<javax.xml.namespace.QName> |
getDependants(javax.xml.namespace.QName thisVarName)
Obtains a set of variables that depends down on the evaluation of this variable.
|
VariablesLoopController.ClsVariableSetCombinationsIterator |
getImplicitFilterController(XBRLVariableSetResource xbrlVariableSetResource)
Gets the implicit filter controller.
|
java.util.Set<javax.xml.namespace.QName> |
getRequired(javax.xml.namespace.QName thisVarName)
Obtain variable dependencies of
thisVarName . |
com.ihr.xbrl.om.formula.util.VariableType |
getVariableDependencyType(javax.xml.namespace.QName qName)
Gets the variable dependency type.
|
boolean |
hasActiveSubPartitioning()
Checks for active sub partitioning.
|
boolean |
hasNext()
Checks for next.
|
boolean |
initialize(XMLEvaluationContextProvider evalProvider,
java.util.List<XBRLVariableResourceUse> evaluatedVars)
Initialize the tree and returns true if there is at least one binding or
false if there are no bindings.
|
boolean |
isLastVarWithDependency(javax.xml.namespace.QName var,
javax.xml.namespace.QName dependent)
Returns true if there are no other variable with
a dependency of
dependent variable that will
be evaluated after var . |
void |
reset()
Reset all memory assigned to evaluation caches of variables in this variable tree.
|
public XBRLVariableTree(XBRLVariableSetResource set) throws XFValidationException
set
- the variable setXFValidationException
- the XF validation exceptionpublic boolean bindCycle(XMLEvaluationContextProvider evalProvider, java.util.List<XBRLVariableResourceUse> evaluatedVars) throws XFValidationException
evalProvider
- the eval providerevaluatedVars
- the evaluated varsXFValidationException
- the XF validation exceptionpublic boolean hasNext()
public boolean hasActiveSubPartitioning()
public VariablesLoopController.ClsVariableSetCombinationsIterator getImplicitFilterController(XBRLVariableSetResource xbrlVariableSetResource)
xbrlVariableSetResource
- the xbrl variable set resourcepublic java.util.Set<javax.xml.namespace.QName> getDependants(javax.xml.namespace.QName thisVarName)
thisVarName
- the variable name for which dependent variables will be obtainedthisVarName
public com.ihr.xbrl.om.formula.util.VariableType getVariableDependencyType(javax.xml.namespace.QName qName)
qName
- the q namepublic boolean initialize(XMLEvaluationContextProvider evalProvider, java.util.List<XBRLVariableResourceUse> evaluatedVars) throws XFValidationException
evalProvider
- the eval providerevaluatedVars
- the evaluated varsXFValidationException
- the XF validation exceptionpublic void reset()
public void clear()
public boolean isLastVarWithDependency(javax.xml.namespace.QName var, javax.xml.namespace.QName dependent)
dependent
variable that will
be evaluated after var
.var
- the vardependent
- the dependentvar
is the last variable with
a dependency of dependent
public java.util.Set<javax.xml.namespace.QName> getRequired(javax.xml.namespace.QName thisVarName)
thisVarName
.thisVarName
- is the variable that cannot be evaluated without
values bind to the dependent variablesthisVarName
depends onCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa