|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.XMLFragment
com.ihr.xbrl.om.exLinks.XLinkElement
com.ihr.xbrl.om.exLinks.XBRLPointerOfARelationship
com.ihr.xbrl.om.exLinks.XBRLResource
com.ihr.xbrl.om.formula.XBRLFormulaResource
com.ihr.xbrl.om.formula.XBRLVariableResource
com.ihr.xbrl.om.formula.XBRLVariableFact
public class XBRLVariableFact
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.ihr.xbrl.om.XBRLValidation |
|---|
XBRLValidation.Direction |
| Field Summary | |
|---|---|
XFCompleteScenarioAspectTest |
completeScenarioTest
|
XFCompleteSegmentAspectTest |
completeSegmentTest
|
XFConceptAspectTest |
conceptTest
|
XFDimensionsTestController |
dimensionsTest
|
XFEntityAspectTest |
entityTest
|
static javax.xml.namespace.QName |
fallbackValue
|
XFLocationAspectTest |
locationTest
|
static javax.xml.namespace.QName |
matches
|
static javax.xml.namespace.QName |
nils
|
XFNonXDTScenarioAspectTest |
nonXDTScenarioTest
|
XFNonXDTSegmentAspectTest |
nonXDTSegmentTest
|
XFPeriodAspectTest |
periodTest
|
static javax.xml.namespace.QName |
resourceName
|
XFUnitAspectTest |
unitTest
|
| Fields inherited from class com.ihr.xbrl.om.formula.XBRLVariableResource |
|---|
as, bindAsSequence, name, order |
| Fields inherited from class com.ihr.xbrl.om.exLinks.XBRLResource |
|---|
nullResource |
| Fields inherited from class com.ihr.xbrl.om.exLinks.XLinkElement |
|---|
actuate, ACTUATE, ARC, arcrole, ARCROLE, ETITLE, EXTENDED, from, FROM, href, HREF, label, LABEL, LOCATOR, RESOURCE, role, ROLE, show, SHOW, SIMPLE, title, TITLE, to, TO, TYPE |
| Fields inherited from class com.ihr.xbrl.om.XMLFragment |
|---|
CONCEPT_LABEL, CONCEPT_QNAME, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, idQName, NO_POSITION, OrderComparator, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER |
| Constructor Summary | |
|---|---|
XBRLVariableFact(XBRLFormulaProcessor formulaProcessor,
XBRLResource res)
|
|
| Method Summary | |
|---|---|
boolean |
bindAsEmpty(XBRLVariablesHolder set)
|
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. |
void |
clear()
Removes all referneces to this resource in the DTS |
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. |
net.sf.saxon.s9api.XdmValue |
fallbackValue(XBRLVariablesHolder set)
Return the fallbackValue or null if no fallback value is possible on this variable |
java.lang.String |
getExpression()
Used only for debug purposes. |
int |
getUncoveredAspects(XBRLVariablesHolder set)
|
java.util.Collection<javax.xml.namespace.QName> |
getVariablesRequired(XBRLVariablesHolder set)
Returns a collection of variables required for the evaluation of this variable |
boolean |
hasFilterAspect(int aspect,
javax.xml.namespace.QName dimName)
|
boolean |
isCoveredAspect(int aspect,
javax.xml.namespace.QName dimName)
|
boolean |
matcheable(net.sf.saxon.s9api.XdmValue value,
int aspectModel)
Calculates if the sequence passed in as a parameter satisfy requirements to be split into sub-sequences by the VariablesLoopController who is the only one class that should call this method. |
boolean |
matches()
Returns the explicit or default value of the matches attribute on the Fact Variable definition |
Evaluation |
rawEvaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars)
Evaluates the resource internal XPath expression and returns the sequence. |
| Methods inherited from class com.ihr.xbrl.om.formula.XBRLVariableResource |
|---|
adjustValueAccordingToType, getAllAspectsFiltered, getFilters, getKeysAspectsFiltered, getUse, getVariableType |
| Methods inherited from class com.ihr.xbrl.om.formula.XBRLFormulaResource |
|---|
getProcessor |
| Methods inherited from class com.ihr.xbrl.om.exLinks.XBRLResource |
|---|
addChild, equals, generateLocatorToNode, generateNode, getAttributes, getDTSBase, getFriendlyName, getFriendlyName, getParent, getRoleType, getType, getValidationReport, getValueKey, hashCode, invalidate, invalidate, isComplexType, isOnValidation, isSimpleType, setComplexType, setDTSBase, setId, setParent, setRole, setRoleType, setSimpleType, setValue, validate |
| Methods inherited from class com.ihr.xbrl.om.exLinks.XLinkElement |
|---|
getActuate, getArcrole, getFromTxt, getHRef, getLabel, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setShow, setSType, setTitle, setTo |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ihr.xbrl.om.formula.XBRLVariableFormulaEvaluable |
|---|
getProcessor |
| Methods inherited from interface com.ihr.xbrl.om.exLinks.XBRLRelationshipPoint |
|---|
addFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationship |
| Field Detail |
|---|
public static final javax.xml.namespace.QName resourceName
public static final javax.xml.namespace.QName nils
public static final javax.xml.namespace.QName matches
public static final javax.xml.namespace.QName fallbackValue
public XFUnitAspectTest unitTest
public XFLocationAspectTest locationTest
public XFConceptAspectTest conceptTest
public XFEntityAspectTest entityTest
public XFPeriodAspectTest periodTest
public XFCompleteSegmentAspectTest completeSegmentTest
public XFCompleteScenarioAspectTest completeScenarioTest
public XFNonXDTScenarioAspectTest nonXDTScenarioTest
public XFNonXDTSegmentAspectTest nonXDTSegmentTest
public XFDimensionsTestController dimensionsTest
| Constructor Detail |
|---|
public XBRLVariableFact(XBRLFormulaProcessor formulaProcessor,
XBRLResource res)
throws XFValidationException
formulaProcessor - res -
XFValidationException| Method Detail |
|---|
public boolean bindAsSequence()
XBRLVariableFormulaEvaluableIn other cases relays on the implementation
bindAsSequence in interface XBRLVariableFormulaEvaluablebindAsSequence in class XBRLVariableResource
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
XFValidationExceptionpublic boolean matches()
public Evaluation rawEvaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars)
throws XFValidationException
XBRLVariableFormulaEvaluableXBRLVariableFormulaEvaluable.evaluateValue(XMLFragment, Collection, XBRLVariableSetResource) method.
XFValidationException
public Evaluation evaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars,
XBRLVariableSetResource set)
throws XFValidationException
XBRLVariableFormulaEvaluable#rawEvaluateValue(XMLFragment, Collection, XBRLVariableSetResource) call.
XFValidationExceptionpublic void clear()
XBRLResource
clear in interface XBRLVariableFormulaEvaluableclear in class XBRLVariableResource
public net.sf.saxon.s9api.XdmValue fallbackValue(XBRLVariablesHolder set)
throws XFValidationException
XFValidationException
public boolean bindAsEmpty(XBRLVariablesHolder set)
throws XFValidationException
XFValidationException
public boolean isCoveredAspect(int aspect,
javax.xml.namespace.QName dimName)
public int getUncoveredAspects(XBRLVariablesHolder set)
public boolean hasFilterAspect(int aspect,
javax.xml.namespace.QName dimName)
hasFilterAspect in interface XBRLVariableFormulaEvaluablehasFilterAspect in class XBRLVariableResourcedimName - if aspect is DIMENSION then dimName is the dimension name
public java.util.Collection<javax.xml.namespace.QName> getVariablesRequired(XBRLVariablesHolder set)
XBRLVariableFormulaEvaluable
public boolean matcheable(net.sf.saxon.s9api.XdmValue value,
int aspectModel)
throws XFValidationException
value - a sequence of 1 or more items that are values of a variable.aspectModel - This is the variable set aspect model
XFValidationExceptionpublic java.lang.String getExpression()
XBRLVariableResourceReturns the XPath expression used to evaluate this variable
getExpression in class XBRLVariableResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||