|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.formula.XBRLVariableInternal
public class XBRLVariableInternal
This allows for creating a XBRLVariableResourceUse derived from something the extension of the formula processor can use.
This class implements the XBRLVariableFormulaEvaluable interface
| Constructor Summary | |
|---|---|
XBRLVariableInternal(XBRLFormulaProcessor proc,
net.sf.saxon.s9api.XdmValue value)
|
|
XBRLVariableInternal(XBRLFormulaProcessor proc,
net.sf.saxon.s9api.XdmValue value,
boolean bindAsSequence)
|
|
| Method Summary | |
|---|---|
net.sf.saxon.s9api.XdmValue |
adjustValueAccordingToType(net.sf.saxon.s9api.XdmValue val,
net.sf.saxon.s9api.XdmItem item)
Checks if the variable has a "as" attribute and: * if it exist; the value in the item parameter is converted to the type indicated * if it does not exist; the value of the val parameter is returned |
boolean |
bindAsSequence()
In the case of resource based variables this reads the surrounding syntax and returns the value of the bindAsSequence. |
boolean |
checkVariable(XBRLVariablesHolder set,
javax.xml.namespace.QName name,
java.util.Collection<net.sf.saxon.s9api.QName> resolved)
Called for variables that are also resources during the static compilation phase of the formula preparation. |
Evaluation |
evaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars,
XBRLVariableSetResource set)
Evaluates the resource internal XPath expression and returns either the returned value from the XPath expression or the fall back value in the case of variables that may have a fall back value and the rawEvaluation of the XPath expression results in the empty sequence. |
java.util.List<XBRLFilterUse> |
getFilters(int aspect)
|
XBRLFormulaProcessor |
getProcessor()
Returns an instance of the XBRLFormulaProcessor this variable has been created under |
java.util.Collection<javax.xml.namespace.QName> |
getVariablesRequired(XBRLVariablesHolder set)
Returns a collection of variables required for the evaluation of this variable |
XBRLVariableType |
getVariableType()
|
boolean |
hasFilterAspect(int aspect,
javax.xml.namespace.QName dimName)
|
Evaluation |
rawEvaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars)
Evaluates the resource internal XPath expression and returns the sequence. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XBRLVariableInternal(XBRLFormulaProcessor proc,
net.sf.saxon.s9api.XdmValue value)
public XBRLVariableInternal(XBRLFormulaProcessor proc,
net.sf.saxon.s9api.XdmValue value,
boolean bindAsSequence)
| Method Detail |
|---|
public Evaluation evaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars,
XBRLVariableSetResource set)
throws XFValidationException
XBRLVariableFormulaEvaluable#rawEvaluateValue(XMLFragment, Collection, XBRLVariableSetResource) call.
evaluateValue in interface XBRLVariableFormulaEvaluableXFValidationException
public Evaluation rawEvaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars)
throws XFValidationException
XBRLVariableFormulaEvaluableXBRLVariableFormulaEvaluable.evaluateValue(XMLFragment, Collection, XBRLVariableSetResource) method.
rawEvaluateValue in interface XBRLVariableFormulaEvaluableXFValidationExceptionpublic boolean bindAsSequence()
XBRLVariableFormulaEvaluableIn other cases relays on the implementation
bindAsSequence in interface XBRLVariableFormulaEvaluable
public boolean checkVariable(XBRLVariablesHolder set,
javax.xml.namespace.QName name,
java.util.Collection<net.sf.saxon.s9api.QName> resolved)
throws XFValidationException
XBRLVariableFormulaEvaluablethrows exceptions according to the validation rules.
shall return true on success
checkVariable in interface XBRLVariableFormulaEvaluableXFValidationExceptionpublic java.util.Collection<javax.xml.namespace.QName> getVariablesRequired(XBRLVariablesHolder set)
XBRLVariableFormulaEvaluable
getVariablesRequired in interface XBRLVariableFormulaEvaluablepublic XBRLFormulaProcessor getProcessor()
XBRLVariableFormulaEvaluable
getProcessor in interface XBRLVariableFormulaEvaluablepublic java.util.List<XBRLFilterUse> getFilters(int aspect)
getFilters in interface XBRLVariableFormulaEvaluable
public boolean hasFilterAspect(int aspect,
javax.xml.namespace.QName dimName)
hasFilterAspect in interface XBRLVariableFormulaEvaluabledimName - if aspect is DIMENSION then dimName is the dimension name
public XBRLVariableType getVariableType()
getVariableType in interface XBRLVariableFormulaEvaluable
public net.sf.saxon.s9api.XdmValue adjustValueAccordingToType(net.sf.saxon.s9api.XdmValue val,
net.sf.saxon.s9api.XdmItem item)
throws XFValidationException
XBRLVariableFormulaEvaluable
adjustValueAccordingToType in interface XBRLVariableFormulaEvaluableval - value to be returned when no "as" attribute exist on variableitem - the value that must be converted to the type indicated in the as attribute
XFValidationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||