public class XFDimensionsTestController extends java.lang.Object implements XFAspectTestInterface
| Constructor and Description |
|---|
XFDimensionsTestController(XBRLFormulaProcessor formulaProcessor,
XMLFragment res)
Instantiates a new XF dimensions test controller.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
bResultsCacheable()
Returns true if the results can be obtained from the aspects cache or can be sent to the aspects cache
after evaluation.
|
boolean |
equivaletValues(net.sf.saxon.s9api.XdmValue fact1,
net.sf.saxon.s9api.XdmValue fact2)
Two facts have equivalent values for a given aspect if the aspect test for that aspect evaluates to true.
|
java.util.HashSet<com.ihr.xbrl.om.formula.aspects.tests.XFDimensionsTestController.CacheKeyDimensionAndValue> |
getCacheVal1()
In case bResultsCacheable returns true, this must return the Object that will be stored into
the cache for the first variable to test aspects from.
|
java.util.HashSet<com.ihr.xbrl.om.formula.aspects.tests.XFDimensionsTestController.CacheKeyDimensionAndValue> |
getCacheVal2()
In case bResultsCacheable returns true, this must return the Object that will be stored into
the cache for the second variable to test aspects from.
|
void |
setDimensionsToTest(java.util.Collection<javax.xml.namespace.QName> dimensionsToTestA)
Call this method in order to set the set of dimensions to tests between two variables.
|
void |
setDimensionsToTest(net.sf.saxon.s9api.XdmNode fact1,
net.sf.saxon.s9api.XdmNode fact2)
Sets the dimensions to test.
|
public XFDimensionsTestController(XBRLFormulaProcessor formulaProcessor, XMLFragment res)
formulaProcessor - the formula processorres - the resource that will be used for namespace context and resolution of xml:basepublic boolean equivaletValues(net.sf.saxon.s9api.XdmValue fact1,
net.sf.saxon.s9api.XdmValue fact2)
throws XFValidationException
XFAspectTestInterfaceThis interface MUST be implemented by classes dealing with different aspects
equivaletValues in interface XFAspectTestInterfacefact1 - This one of the facts to comparefact2 - This is the fact to compare toXFValidationException - in case of errors in the XPath expression definitions (custom attribute in the typed dimensions and multiple typed dimensions defined)public void setDimensionsToTest(java.util.Collection<javax.xml.namespace.QName> dimensionsToTestA)
dimensionsToTestA - the new dimensions to testpublic void setDimensionsToTest(net.sf.saxon.s9api.XdmNode fact1,
net.sf.saxon.s9api.XdmNode fact2)
fact1 - the fact1fact2 - the fact2public boolean bResultsCacheable()
XFAspectTestInterfacebResultsCacheable in interface XFAspectTestInterfacepublic java.util.HashSet<com.ihr.xbrl.om.formula.aspects.tests.XFDimensionsTestController.CacheKeyDimensionAndValue> getCacheVal1()
XFAspectTestInterfacegetCacheVal1 in interface XFAspectTestInterfacepublic java.util.HashSet<com.ihr.xbrl.om.formula.aspects.tests.XFDimensionsTestController.CacheKeyDimensionAndValue> getCacheVal2()
XFAspectTestInterfacegetCacheVal2 in interface XFAspectTestInterface