public interface XBRLVariableFormulaEvaluable
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
void |
clear()
Used to clean up.
|
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(Aspect aspect)
Gets the filters.
|
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()
Gets the variable type.
|
XMLFragment |
getXMLFragment()
Returns the surrounding XML Fragment this resource comes from.
|
boolean |
isBindAsSequence()
In the case of resource based variables this reads the surrounding syntax and returns the value
of the bindAsSequence.
|
Evaluation |
rawEvaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars)
Evaluates the resource internal XPath expression and returns the sequence.
|
void |
reset()
Used to reset evaluation caches.
|
Evaluation evaluateValue(XMLFragment evaluationContext, java.util.Collection<XBRLVariableResourceUse> availableVars, XBRLVariableSetResource set) throws XFValidationException
evaluationContext
- the evaluation contextavailableVars
- the available varsset
- the setXFValidationException
- the XF validation exceptionrawEvaluateValue(XMLFragment, Collection)
Evaluation rawEvaluateValue(XMLFragment evaluationContext, java.util.Collection<XBRLVariableResourceUse> availableVars) throws XFValidationException
evaluateValue(XMLFragment, Collection, XBRLVariableSetResource)
method.evaluationContext
- the evaluation contextavailableVars
- the available varsXFValidationException
- the XF validation exceptionboolean isBindAsSequence()
In other cases relays on the implementation
boolean checkVariable(XBRLVariablesHolder set, javax.xml.namespace.QName name, java.util.Collection<net.sf.saxon.s9api.QName> resolved) throws XFValidationException
throws exceptions according to the validation rules.
shall return true on success
set
- the setname
- the nameresolved
- the resolvedXFValidationException
- the XF validation exceptionjava.util.Collection<javax.xml.namespace.QName> getVariablesRequired(XBRLVariablesHolder set)
set
- the variable for which the required variables will be obtainedXBRLFormulaProcessor getProcessor()
java.util.List<XBRLFilterUse> getFilters(Aspect aspect)
aspect
- the aspectXBRLVariableType getVariableType()
net.sf.saxon.s9api.XdmValue adjustValueAccordingToType(net.sf.saxon.s9api.XdmValue val, net.sf.saxon.s9api.XdmItem item) throws XFValidationException
val
- value to be returned when no "as" attribute exist on variableitem
- the value that must be converted to the type indicated in the as attributeXFValidationException
- the XF validation exceptionvoid clear() throws java.lang.Throwable
java.lang.Throwable
- the throwableXMLFragment getXMLFragment()
void reset() throws java.lang.Throwable
java.lang.Throwable
- the throwableCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa