public class XBRLFormulaProcessor extends java.lang.Object implements XBRLCompilableProcessor
Modifier and Type | Class and Description |
---|---|
static class |
XBRLFormulaProcessor.FormulaResourceSG
This enumeration contains an entry for each element definition that might
have XML nodes in its substitution group.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
assertion_satisfied_message_URI
http://xbrl.org/arcrole/2010/assertion-satisfied-message
|
static java.lang.String |
assertion_set_arcrole_URI
http://xbrl.org/arcrole/2008/assertion-set
|
static java.lang.String |
assertion_unsatisfied_message_URI
http://xbrl.org/arcrole/2010/assertion-unsatisfied-message
|
static java.lang.String |
boolean_filter_arcrole_URI
http://xbrl.org/arcrole/2008/boolean-filter
|
static java.lang.String |
consistency_assertion_formula_URI
http://xbrl.org/arcrole/2008/consistency-assertion-formula
|
static java.lang.String |
consistency_assertion_parameter_URI
http://xbrl.org/arcrole/2008/consistency-assertion-parameter
|
static java.lang.String |
equality_definition_arcrole_URI
http://xbrl.org/arcrole/2008/equality-definition
|
static java.lang.String |
function_implementation_URI
http://xbrl.org/arcrole/2010/function-implementation
|
static java.lang.String |
PROCESSORNAME
The Constant PROCESSORNAME.
|
static javax.xml.namespace.QName |
qError
The q error.
|
static java.lang.String |
variable_filter_arcrole_URI
http://xbrl.org/arcrole/2008/variable-filter
|
static java.lang.String |
variable_set_arcrole_URI
http://xbrl.org/arcrole/2008/variable-set
|
static java.lang.String |
variable_set_filter_arcrole_URI
http://xbrl.org/arcrole/2008/variable-set-filter
|
static java.lang.String |
variable_set_precondition_arcrole_URI
http://xbrl.org/arcrole/2008/variable-set-precondition
|
Modifier and Type | Method and Description |
---|---|
void |
addAssertion(XBRLAssertion assertion)
Adds the assertion.
|
void |
addCompiledXPathExecutable(net.sf.saxon.s9api.XPathExecutable executable)
Adds the compiled X path executable.
|
void |
addConsistencyAssertion(XBRLConsistencyAssertion consistencyAssertion)
Adds the consistency assertion.
|
void |
addCustomFunctionDeclaration(XBRLCustomFunction customFunction)
Adds the custom function declaration.
|
void |
addCustomFunctionLibrary(XBRLRSCustomFunctionLibrary fl)
Adds a Function Library to the set of function libraries available to the
processor.
|
void |
addCustomLibraries(net.sf.saxon.sxpath.IndependentContext ic)
Adds the custom libraries.
|
void |
addFormula(XBRLFormula formula)
Adds the formula.
|
void |
addInScopeInstance(XBRLInstance doc)
Adds the in scope instance.
|
void |
addNode(net.sf.saxon.om.NodeInfo ni,
XBRLFormulaProcessor.FormulaResourceSG resourceCode)
Adds the node.
|
void |
addRSLibrary(net.sf.saxon.sxpath.IndependentContext ic)
Adds the rs library.
|
void |
addVariableParameter(XBRLVariableParameter variableParameter)
Adds the variable parameter.
|
void |
addXFFLibrary(net.sf.saxon.expr.StaticContext sc)
Adds the xff library.
|
void |
addXFILibrary(net.sf.saxon.expr.StaticContext sc)
Adds the xfi library.
|
void |
addXFMLibrary(net.sf.saxon.expr.StaticContext sc)
Adds the xfm library.
|
static java.lang.String |
cleanFormulaExpression(java.lang.String expression)
Helper function that cleans up the content of an XPath expression so it can
be used as a text string in a GUI.
|
void |
clear()
Clear.
|
void |
collectVariables(java.util.Collection<javax.xml.namespace.QName> hsVars)
Add parameter variables to the collection received as a parameter This method
can add only global variables available to all formulas.
|
static net.sf.saxon.s9api.XPathExecutable |
compileExpressionAndCollectRequiredVariables(java.lang.String selectExpression,
java.util.Collection<javax.xml.namespace.QName> requiredVariables,
java.util.Collection<net.sf.saxon.s9api.QName> preDefinedVariables,
net.sf.saxon.om.NamespaceResolver nsResolver,
XBRLFormulaResource fragment)
Compile expression and collect required variables.
|
XBRLValidationReport |
compileResources()
Compile resources.
|
void |
configure(java.util.Properties properties)
Configure.
|
static XBRLFormulaProcessor |
create(DTSContainer dts)
Creates the formula processor.
|
static void |
declareNamespaces(XBRLResource resource,
net.sf.saxon.s9api.XPathCompiler compiler)
Helper method to declare all namespaces in the resource indicated as a
parameter in the XPath compiler received as a parameter.
|
XBRLValidationReport |
evaluate(XBRLResource resource,
XBRLInstance instance)
Evaluates one resource and returns an XBRLValidationReport instance. the
parameter must be an already compiled XBRL formula resource of the following
types: XBRLFormula, XBRLAssertion, XBRLConsistencyAssertion
This method is used by the GUI of the FormulaTT class.
|
void |
evaluateFormulaSet(java.util.Collection<XBRLFormula> formulas,
XBRLValidationReport valReport,
XBRLInstance doc,
ExecutionTargetType targetType)
Evaluates a collection of formulas and put the result inside the validation
report passed in as parameter valReport.
|
void |
freeUnnecessary()
Removes all resources and allows to call compileResources() again This method
is called in the last step of the DTS loading process and specially when load
is called multiple times.
|
java.util.Collection<? extends javax.xml.namespace.QName> |
getAllDimensions(XBRLFact fact)
Gets the all dimensions.
|
AspectsCache |
getAspectsCache()
The aspects cache is used internally by the processor in order to accelerate
implicit filtering.
|
java.util.Set<Aspect> |
getAspectsUniverse(Aspect key)
Returns all aspects collected in the instance document under evaluation.
|
java.util.Collection<XBRLAssertion> |
getAssertions()
Access to all value assertions and existence assertions defined in the DTS
and loaded from the linkbases.
|
XBRLArcroleType |
getAssertionSatisfiedMessageArcroleType()
Gets the assertion satisfied message arcrole type.
|
XBRLArcroleType |
getAssertionUnsatisfiedMessageArcroleType()
Gets the assertion unsatisfied message arcrole type.
|
XBRLArcroleType |
getAssetionSetArcroleType()
Gets the assetion set arcrole type.
|
XBRLArcroleType |
getBooleanFilterArcroleType()
Gets the boolean filter arcrole type.
|
XBRLFact |
getCacheFact(net.sf.saxon.s9api.XdmNode factNode)
Deprecated.
|
XFIFactExplicitDimensionValueCache |
getCacheXFIFactExplicitDimension()
Gets the cache XFI fact explicit dimension.
|
XBRLArcroleType |
getConsistencyAssertionFormulaArcroleType()
Gets the consistency assertion formula arcrole type.
|
XBRLArcroleType |
getConsistencyAssertionParameterArcroleType()
Gets the consistency assertion parameter arcrole type.
|
java.util.Collection<XBRLConsistencyAssertion> |
getConsistencyAssertions()
Access to all consistency assertions defined in the DTS and loaded from the
linkbases.
|
DTSContainer |
getContainer()
Gets the container.
|
XBRLContext |
getContextById(java.lang.String id,
java.net.URI documentURI)
Gets the context by id.
|
XBRLCustomFunctionsLibraryList |
getCustomFunctionsLibraryList()
Access to the library list that contains custom function implementations.
|
java.lang.String |
getDescription()
Gets the description.
|
static java.lang.String |
getDescriptionStatic()
Gets the description static.
|
XMLFragment |
getElementById(java.lang.String id,
java.net.URI documentURI)
Gets the element by id.
|
XBRLArcroleType |
getEqualityDefinitionArcroleType()
Gets the equality definition arcrole type.
|
FactHasExplicitDimensionValueCache |
getFactHasExplicitDimensionValueCache()
Gets the fact has explicit dimension value cache.
|
FactsListClassifier |
getFactsSelector(XBRLInstanceRootNode instanceRootNode)
Gets the facts selector.
|
FilterMemberCache |
getFilterMemberCache()
Gets the filter member cache.
|
XBRLFilterOrderTool |
getFilterOrderInstance()
The formula specification is not defining the order in which filters shall be
arranged to create the XPath evaluation expression.
|
java.util.Collection<XBRLFormula> |
getFormulas()
Access to all formula resources loaded from the linkbases and compiled as
XBRLFormula instances.
|
net.sf.saxon.s9api.XPathCompiler |
getFPXPathCompiler(net.sf.saxon.om.NamespaceResolver namespaceResolver,
XMLFragment fragment,
boolean schemaAware)
Always return a new XPathCompiler object with the IndependentContext
namespace Resolver set to the namespaceResolver supplied as a parameter.
|
XFExplicitDimensionAspectTest |
getFromCacheExplicit(javax.xml.namespace.QName dimension)
Gets the from cache explicit.
|
XFTypedDimensionAspectTest |
getFromCacheTyped(javax.xml.namespace.QName dimension)
Gets the from cache typed.
|
XBRLArcroleType |
getFunctionImplementarionArcroleType()
Gets the function implementarion arcrole type.
|
java.lang.String |
getName()
Gets the name.
|
XBRLVariableResourceUse |
getParameterForBinding(javax.xml.namespace.QName var)
Access to the XBRLVariableParameter using the parameter name (which is also
the variable name on XPath expressions).
|
XBRLFormulaParametersResolver |
getParameterResolver()
Gets the parameter resolver.
|
java.util.List<XBRLVariableResourceUse> |
getParametersForBinding()
Creates a new Vector of XBRLVariableResourceUse and returns it to the calling
application.
|
FormulaProcessorStatus |
getStatus()
Normally called from another thread, this method returns an instance of a
FormulaProcessorStatus class that provides information about the number of
formulas, number of assertions, number of consistency assertions. number of
running threads, maximum time of a thread and what every thread is doing.
|
XBRLFormulaResource |
getUnderCompilationFormulaResource()
Obtains the resource that is being compiled by the XPath compiler.
|
HasFallbackValueResolver |
getUnderEvaluationHasFallbackValue()
Access to the value of the instance of the class that will resolve values for
the xff:uncovered-aspect function.
|
java.lang.String |
getUnderEvaluationResourceId()
This method returns the formula or assertion resource id that is being
evaluated.
|
HasUncoveredAspectValueResolver |
getUnderEvaluationUncoveredAspectValue()
Access to the value of the instance of the class that will resolve values for
the xff:uncovered-aspect function.
|
HasUncoveredDimensionalAspectsResolver |
getUnderEvaluationUncoveredDimensionalAspects()
Access to the value of the instance of the class that will resolve values for
the xff:uncovered-aspect function.
|
HasUncoveredNonDimensionalAspectsResolver |
getUnderEvaluationUncoveredNonDimensionalAspects()
Access to the value of the instance of the class that will resolve values for
the xff:uncovered-aspect function.
|
javax.xml.namespace.QName |
getUnderEvaluationVariableName()
During the evaluation of an XPath expression in order to set the value of a
variable name, the variable name of the variable that is being evaluated can
be obtained by a call to this method.
|
XBRLVariablesHolder |
getUnderEvaluationVariableSet()
This method returns the formula that is being evaluated.
|
XBRLUnit |
getUnitById(java.lang.String id,
java.net.URI documentURI)
Gets the unit by id.
|
XBRLValidationReport |
getValidationReport()
Access to the validation report that is active during formula validation.
|
XBRLArcroleType |
getVariableFilterArcroleType()
Gets the variable filter arcrole type.
|
XBRLArcroleType |
getVariableSetArcroleType()
Gets the variable set arcrole type.
|
XBRLArcroleType |
getVariableSetFilterArcroleType()
Gets the variable set filter arcrole type.
|
XBRLArcroleType |
getVariableSetPreconditionArcroleType()
Gets the variable set precondition arcrole type.
|
XPathHelper |
getXPathHelper()
Access the XPathHelper instance registered for current evaluation thread.
|
void |
informEnd(EvaluableAssertion ae,
long elapsedTime)
Called from other threads once execution ends.
|
boolean |
isHidden()
Checks if is hidden.
|
boolean |
isStrictXPath()
Convenient method to obtain the value of the
DTSContainer.FORMULA_PROCESSOR_USE_STRICT_SPECIFICATION_XPATH property
|
boolean |
matcheable(XBRLFact fact1,
XBRLFact fact2,
XBRLVariablesHolder.ModelType aspectModel,
XMLFragment context)
Computes if two facts are aspect-matched input facts as defined in the
Formula specification.
|
void |
putInCacheExplicit(javax.xml.namespace.QName dimension,
XFExplicitDimensionAspectTest xfExp)
Put in cache explicit.
|
void |
putInCacheTyped(javax.xml.namespace.QName dimension,
XFTypedDimensionAspectTest xfTyp)
Put in cache typed.
|
static void |
registerProcessorStatic()
Register processor static.
|
void |
removeFormula(XBRLFormula xbrlFormula)
Marks a formula to be removed from the formula list.
|
void |
removeInScopeInstance(XBRLInstance doc)
Removes the in scope instance.
|
void |
setBarMessage(java.lang.String message,
java.lang.String toolTip)
Shall be used by assertions to allow consistent display of the assertions executed.
|
void |
setParametersResolver(XBRLFormulaParametersResolver pResolver)
Sets the external parameters resolver to the instance of the class indicated
by the parameter.
|
HasFallbackValueResolver |
setUnderEvaluationHasFallbackValue(HasFallbackValueResolver resolver)
Sets the value for the resolver of the xff:has-fallback-value function.
|
void |
setUnderEvaluationResourceId(java.lang.String id)
This method sets the value of the formula or assertion identifier that is
being evaluated.
|
HasUncoveredAspectValueResolver |
setUnderEvaluationUncoveredAspectValue(HasUncoveredAspectValueResolver resolver)
Sets the value for the resolver of the xff:uncovered-aspect function.
|
HasUncoveredDimensionalAspectsResolver |
setUnderEvaluationUncoveredDimensionalAspects(HasUncoveredDimensionalAspectsResolver resolver)
Sets the value for the resolver of the xff:has-fallback-value function.
|
HasUncoveredNonDimensionalAspectsResolver |
setUnderEvaluationUncoveredNonDimensionalAspects(HasUncoveredNonDimensionalAspectsResolver resolver)
Sets the value for the resolver of the xff:has-fallback-value function.
|
void |
setUnderEvaluationVariable(javax.xml.namespace.QName variableName)
Sets the under evaluation variable.
|
void |
setUnderEvaluationVariableSet(XBRLVariablesHolder formula)
This method sets the value of the formula that is being evaluated.
|
void |
setXPathHelper(XPathHelper xph)
Register an instance of XPathHelper to be used for the current execution
thread.
|
XBRLValidationReport |
validate()
Validate.
|
XBRLValidationReport |
validate(XBRLDocument doc)
Validate.
|
XBRLValidationReport |
validate(XBRLInstance doc)
This method validates an instance document (doc) against the content of the
formula linkbase.
|
public static javax.xml.namespace.QName qError
public static final java.lang.String PROCESSORNAME
public static final java.lang.String variable_set_arcrole_URI
public static final java.lang.String variable_filter_arcrole_URI
public static final java.lang.String variable_set_filter_arcrole_URI
public static final java.lang.String variable_set_precondition_arcrole_URI
public static final java.lang.String equality_definition_arcrole_URI
public static final java.lang.String consistency_assertion_formula_URI
public static final java.lang.String consistency_assertion_parameter_URI
public static final java.lang.String assertion_satisfied_message_URI
public static final java.lang.String assertion_unsatisfied_message_URI
public static final java.lang.String boolean_filter_arcrole_URI
public static final java.lang.String assertion_set_arcrole_URI
public static final java.lang.String function_implementation_URI
public static void registerProcessorStatic()
public void configure(java.util.Properties properties)
configure
in interface XBRLPlugInProcessor
properties
- the propertiespublic void addXFILibrary(net.sf.saxon.expr.StaticContext sc)
sc
- the scpublic void addXFFLibrary(net.sf.saxon.expr.StaticContext sc)
sc
- the scpublic void addXFMLibrary(net.sf.saxon.expr.StaticContext sc)
sc
- the scpublic void addCustomLibraries(net.sf.saxon.sxpath.IndependentContext ic)
ic
- the icpublic void addRSLibrary(net.sf.saxon.sxpath.IndependentContext ic)
ic
- the icpublic static XBRLFormulaProcessor create(DTSContainer dts) throws com.rs.lic.LicenseVerificationException, XBRLValidationException
dts
- the dtscom.rs.lic.LicenseVerificationException
- the license verification exceptionXBRLValidationException
- the XBRL validation exceptionpublic XBRLArcroleType getVariableSetArcroleType()
public XBRLArcroleType getVariableFilterArcroleType()
public XBRLArcroleType getVariableSetFilterArcroleType()
public XBRLArcroleType getVariableSetPreconditionArcroleType()
public XBRLArcroleType getEqualityDefinitionArcroleType()
public XBRLArcroleType getConsistencyAssertionParameterArcroleType()
public XBRLArcroleType getConsistencyAssertionFormulaArcroleType()
public XBRLArcroleType getFunctionImplementarionArcroleType()
public XBRLArcroleType getAssertionSatisfiedMessageArcroleType()
public XBRLArcroleType getAssertionUnsatisfiedMessageArcroleType()
public XBRLArcroleType getBooleanFilterArcroleType()
public XBRLArcroleType getAssetionSetArcroleType()
public XBRLValidationReport validate()
validate
in interface XBRLPlugInProcessor
public XBRLValidationReport validate(XBRLDocument doc)
validate
in interface XBRLPlugInProcessor
doc
- the docpublic XBRLValidationReport validate(XBRLInstance doc)
doc
- input instance documentpublic void setBarMessage(java.lang.String message, java.lang.String toolTip)
message
- the messagetoolTip
- (can be null)public XBRLCustomFunctionsLibraryList getCustomFunctionsLibraryList()
public java.util.Set<Aspect> getAspectsUniverse(Aspect key)
key
- the keypublic AspectsCache getAspectsCache()
For internal use only.
public FilterMemberCache getFilterMemberCache()
public FactHasExplicitDimensionValueCache getFactHasExplicitDimensionValueCache()
public boolean isStrictXPath()
public void informEnd(EvaluableAssertion ae, long elapsedTime)
ae
- the aeelapsedTime
- the elapsed timepublic void removeInScopeInstance(XBRLInstance doc)
doc
- the docpublic void addInScopeInstance(XBRLInstance doc)
doc
- the docpublic void setUnderEvaluationResourceId(java.lang.String id)
id
- the assertion or formula id or null to unset the value after
execution is finishedgetUnderEvaluationResourceId()
public java.lang.String getUnderEvaluationResourceId()
public void setUnderEvaluationVariableSet(XBRLVariablesHolder formula)
formula
- instance of an XBRLFormula or null to unset the value after
formula execution is finishedgetUnderEvaluationVariableSet()
public XBRLVariablesHolder getUnderEvaluationVariableSet()
public void evaluateFormulaSet(java.util.Collection<XBRLFormula> formulas, XBRLValidationReport valReport, XBRLInstance doc, ExecutionTargetType targetType)
This method is called from the processor in order to evaluate the formula set and from assertions that contains dependant formulas before the assertion is evaluated.
formulas
- the collection of formulas to evaluatevalReport
- the validation report where the results will be placed. The
returned instance document will he here too.doc
- the contextual information for the formulas to evaluate.targetType
- the target typepublic XBRLValidationReport getValidationReport()
This method is used internally by the API in order to add warning messages generated by the evaluation of filters and other areas of the formula processor.
public DTSContainer getContainer()
getContainer
in interface HasDTSContainer
public XBRLValidationReport compileResources()
compileResources
in interface XBRLCompilableProcessor
public void addNode(net.sf.saxon.om.NodeInfo ni, XBRLFormulaProcessor.FormulaResourceSG resourceCode)
ni
- the niresourceCode
- the resource codepublic java.util.Collection<XBRLFormula> getFormulas()
public java.util.Collection<XBRLAssertion> getAssertions()
public java.util.Collection<XBRLConsistencyAssertion> getConsistencyAssertions()
public void addVariableParameter(XBRLVariableParameter variableParameter) throws XFxbrlveParameterNameClash
variableParameter
- the variable parameterXFxbrlveParameterNameClash
- the x fxbrlve parameter name clashpublic void addCustomFunctionLibrary(XBRLRSCustomFunctionLibrary fl)
fl
- the new FunctionLibrary instancepublic void addFormula(XBRLFormula formula)
formula
- the formulapublic static void declareNamespaces(XBRLResource resource, net.sf.saxon.s9api.XPathCompiler compiler)
resource
- the source element where the namespaces are declaredcompiler
- the target XPath compiler where namespaces will be copied topublic net.sf.saxon.s9api.XPathCompiler getFPXPathCompiler(net.sf.saxon.om.NamespaceResolver namespaceResolver, XMLFragment fragment, boolean schemaAware)
namespaceResolver
- the namespace resolverfragment
- XMLFragment used to obtain the Base URI for the XPathCompilerschemaAware
- if true, the new XPathCompiler will be Schema Aware. All schemas
currently loaded will be in the scope schemas for XPath
compilation. It is safe to always put 'true' here.public void collectVariables(java.util.Collection<javax.xml.namespace.QName> hsVars)
hsVars
- the hs varspublic java.util.List<XBRLVariableResourceUse> getParametersForBinding()
When a parameter is found during the compilation phase it is stored in the XBRLFormulaProcessor instance as an instance of a XBRLVariableParameter. When this function is called, a new Vector of XBRLVariableResourceUse is created so the parameter can be evaluated by multiple threads in parallel.
The class XBRLVariableParameter contains information about the parameter that can be shared across threads. the class XBRLVariableResourceUse is associated with the running thread.
public XBRLVariableResourceUse getParameterForBinding(javax.xml.namespace.QName var)
var
- the variable or parameter namepublic void setParametersResolver(XBRLFormulaParametersResolver pResolver)
pResolver
- the new parameters resolverpublic XBRLFormulaParametersResolver getParameterResolver()
public void removeFormula(XBRLFormula xbrlFormula)
The function does nothing if the formula is already removed.
xbrlFormula
- the xbrl formulapublic java.lang.String getDescription()
getDescription
in interface XBRLPlugInProcessor
public java.lang.String getName()
getName
in interface XBRLPlugInProcessor
public static java.lang.String getDescriptionStatic()
public void addAssertion(XBRLAssertion assertion)
assertion
- the assertionpublic void addCustomFunctionDeclaration(XBRLCustomFunction customFunction)
customFunction
- the custom functionpublic void addConsistencyAssertion(XBRLConsistencyAssertion consistencyAssertion)
consistencyAssertion
- the consistency assertionpublic boolean matcheable(XBRLFact fact1, XBRLFact fact2, XBRLVariablesHolder.ModelType aspectModel, XMLFragment context)
fact1
- the fact1fact2
- the fact2aspectModel
- the aspect modelcontext
- the context@Deprecated public XBRLFact getCacheFact(net.sf.saxon.s9api.XdmNode factNode)
factNode
- the fact nodepublic XBRLUnit getUnitById(java.lang.String id, java.net.URI documentURI)
id
- the iddocumentURI
- the document uripublic XMLFragment getElementById(java.lang.String id, java.net.URI documentURI)
id
- the iddocumentURI
- the document uripublic XBRLContext getContextById(java.lang.String id, java.net.URI documentURI)
id
- the iddocumentURI
- the document uripublic static net.sf.saxon.s9api.XPathExecutable compileExpressionAndCollectRequiredVariables(java.lang.String selectExpression, java.util.Collection<javax.xml.namespace.QName> requiredVariables, java.util.Collection<net.sf.saxon.s9api.QName> preDefinedVariables, net.sf.saxon.om.NamespaceResolver nsResolver, XBRLFormulaResource fragment) throws XFValidationException
selectExpression
- the select expressionrequiredVariables
- (OUT) the required variables. from the preDefinedVariables.preDefinedVariables
- (IN) the complete set of variables available. Only variables
required by the expression will be moved from here to the
requiredVariables parameter.nsResolver
- the ns resolverfragment
- instance of XBRLFormulaResourceXFValidationException
- the XF validation exceptionpublic XBRLFormulaResource getUnderCompilationFormulaResource()
public FormulaProcessorStatus getStatus()
public void setUnderEvaluationVariable(javax.xml.namespace.QName variableName)
variableName
- the new under evaluation variablepublic javax.xml.namespace.QName getUnderEvaluationVariableName()
The method will return null if there are no variable being evaluated. extension functions may access this method in order to access to the variable resource use and examine filters as is the case of the relative filter.
public HasUncoveredAspectValueResolver setUnderEvaluationUncoveredAspectValue(HasUncoveredAspectValueResolver resolver)
resolver
- the new under evaluation uncovered aspect valuepublic HasUncoveredAspectValueResolver getUnderEvaluationUncoveredAspectValue()
public HasFallbackValueResolver setUnderEvaluationHasFallbackValue(HasFallbackValueResolver resolver)
resolver
- the new under evaluation uncovered aspect valuepublic HasFallbackValueResolver getUnderEvaluationHasFallbackValue()
public HasUncoveredDimensionalAspectsResolver setUnderEvaluationUncoveredDimensionalAspects(HasUncoveredDimensionalAspectsResolver resolver)
resolver
- the new under evaluation uncovered aspect valuepublic HasUncoveredDimensionalAspectsResolver getUnderEvaluationUncoveredDimensionalAspects()
public HasUncoveredNonDimensionalAspectsResolver setUnderEvaluationUncoveredNonDimensionalAspects(HasUncoveredNonDimensionalAspectsResolver resolver)
resolver
- the new under evaluation uncovered aspect valuepublic HasUncoveredNonDimensionalAspectsResolver getUnderEvaluationUncoveredNonDimensionalAspects()
public XBRLValidationReport evaluate(XBRLResource resource, XBRLInstance instance)
This method is used by the GUI of the FormulaTT class.
resource
- the resourceinstance
- the instancepublic static java.lang.String cleanFormulaExpression(java.lang.String expression)
The method trims the expression and then replaces cr by spaces.
expression
- string XPath expressionpublic XBRLFilterOrderTool getFilterOrderInstance()
Starting with version 2.8.1 it is possible to define other classes implementing the XBRLFilterOrderTool interface by providing the class name in the http://www.reportingstandard.com/FormulaProcessor/FilterOrderClass property. For convenience, that property is defined in the DTSContainer.FORMULA_PROCESSOR_FILTER_ORDER_CLASS constant.
public void freeUnnecessary() throws com.rs.lic.LicenseVerificationException, XBRLValidationException
freeUnnecessary
in interface XBRLCompilableProcessor
com.rs.lic.LicenseVerificationException
- the license verification exceptionXBRLValidationException
- the XBRL validation exceptionpublic void clear()
clear
in interface XBRLPlugInProcessor
public boolean isHidden()
isHidden
in interface XBRLPlugInProcessor
public XFIFactExplicitDimensionValueCache getCacheXFIFactExplicitDimension()
public java.util.Collection<? extends javax.xml.namespace.QName> getAllDimensions(XBRLFact fact)
fact
- the factpublic void putInCacheTyped(javax.xml.namespace.QName dimension, XFTypedDimensionAspectTest xfTyp)
dimension
- the dimensionxfTyp
- the xf typpublic XFTypedDimensionAspectTest getFromCacheTyped(javax.xml.namespace.QName dimension)
dimension
- the dimensionpublic XFExplicitDimensionAspectTest getFromCacheExplicit(javax.xml.namespace.QName dimension)
dimension
- the dimensionpublic void putInCacheExplicit(javax.xml.namespace.QName dimension, XFExplicitDimensionAspectTest xfExp)
dimension
- the dimensionxfExp
- the xf exppublic void addCompiledXPathExecutable(net.sf.saxon.s9api.XPathExecutable executable)
executable
- the executablepublic FactsListClassifier getFactsSelector(XBRLInstanceRootNode instanceRootNode)
instanceRootNode
- the instance root nodepublic void setXPathHelper(XPathHelper xph)
xph
- the XPathHelper to register or null to unregister current registered
XPathHelpergetXPathHelper()
public XPathHelper getXPathHelper()
setXPathHelper(XPathHelper)
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa