public class XBRLVariableFact extends XBRLVariableResource
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
XBRLValidation.Direction
Modifier and Type | Field and Description |
---|---|
static javax.xml.namespace.QName |
fallbackValue
The Constant fallbackValue.
|
static javax.xml.namespace.QName |
matches
The Constant matches.
|
static javax.xml.namespace.QName |
nils
The Constant nils.
|
static javax.xml.namespace.QName |
resourceName
The Constant resourceName.
|
as, bindAsSequence, name, order
nullResource
actuate, ARC, arcrole, ETITLE, EXTENDED, from, href, label, LOCATOR, RESOURCE, role, show, SIMPLE, title, to, X_ACTUATE, X_ARCROLE, X_FROM, X_HREF, X_LABEL, X_ROLE, X_SHOW, X_TITLE, X_TO, X_TYPE, XLINKPREFIX
ADD_NAMESPACE_INHERIT, baseQName, CONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, FACT_VALUE, HIDE_COMMON_ACCURACY, idQName, langQName, nil, NO_POSITION, OrderComparator, OrderComparator2, OrderComparatorReverse, PERIOD_BOP, PERIOD_TYPE, PERIOD_VALUE, RELATIONSHIP_TYPE, RESOURCE_TYPE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER
Constructor and Description |
---|
XBRLVariableFact(XBRLFormulaProcessor formulaProcessor,
XBRLResource res)
Instantiates a new XBRL variable fact.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bindAsEmpty(XBRLVariablesHolder set)
Bind as empty.
|
boolean |
checkVariable(XBRLVariablesHolder set,
javax.xml.namespace.QName name,
java.util.Collection<net.sf.saxon.s9api.QName> resolved)
Check variable.
|
void |
clear()
Clear.
|
Evaluation |
evaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars,
XBRLVariableSetResource set)
Evaluate value.
|
net.sf.saxon.s9api.XdmValue |
fallbackValue(XBRLVariablesHolder set)
Return the fallbackValue or null if no fallback value is possible on this variable.
|
java.util.Set<Aspect> |
getCoveredAspects(XBRLVariablesHolder set)
Gets the uncovered aspects.
|
java.lang.String |
getExpression()
Gets the expression.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
int |
getNumberOfChildren() |
java.util.Collection<? extends net.sf.saxon.value.QNameValue> |
getUncoveredDimensionalAspects()
Gets the uncovered dimensional aspects.
|
java.util.Collection<? extends net.sf.saxon.value.StringValue> |
getUncoveredNonDimensionalAspects(XBRLVariableSetResource set)
Gets the uncovered non dimensional aspects.
|
java.util.Collection<javax.xml.namespace.QName> |
getVariablesRequired(XBRLVariablesHolder set)
Gets the variables required.
|
XMLFragment |
getXMLFragment()
Gets the XML fragment.
|
boolean |
hasChildNodes() |
boolean |
isBindAsSequence()
Checks if is bind as sequence.
|
boolean |
isCoveredAspect(Aspect aspect)
Checks if is covered aspect.
|
boolean |
isMatches()
Returns the explicit or default value of the matches attribute on the Fact Variable definition.
|
boolean |
isUncovered(Aspect aspect,
Aspect aspectDimension)
Returns true if the aspect indicated is uncovered on the variable.
|
boolean |
matcheable(net.sf.saxon.s9api.XdmValue value,
XBRLVariablesHolder.ModelType 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.
|
Evaluation |
rawEvaluateValue(XMLFragment evaluationContext,
java.util.Collection<XBRLVariableResourceUse> availableVars)
Raw evaluate value.
|
void |
reset()
Reset.
|
adjustValueAccordingToType, getAllAspectsFiltered, getFilters, getKeysAspectsFiltered, getUse, getVariableType, hasFilterAspect
addRequiredVariable, clearVariableSetDicoveredDuringExpressionCompilation, getProcessor, getRequiredVariableSetDiscoveredDuringExpressionCompilation, getResource
addChild, clone, clone, equals, generateNode, getAttributes, getCode, getDTSBase, getFriendlyName, getFriendlyName, getFriendlyName, getParentXBRL, getResourceIdentifier, getRoleType, getType, getValidationReport, getValueKey, hashCode, invalidate, invalidate, isComplexType, isHashDependsOnAtribute, isOnValidation, isSimpleType, setCode, setComplexType, setDTSBase, setId, setRawParentXBRL, setRole, setRoleType, setSimpleType, setValue, validate
getActuate, getArcrole, getFromTxt, getHRef, getHRefDocument, getHRefDocumentResolved, getHRefResolved, getLabel, getRawHRef, getReference, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setShow, setSType, setTitle, setTo, validateXPointer
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addChildArray, addChildAt, addChildNode, addChildNodeArray, addChildNodeAt, addChildNodeInBatch, addComment, addFromRelationship, addNamespace, addNamespace, addPropertyChangeListener, addToRelationship, changeBase, checkBase, childExists, commitBatch, copy, createComment, delAttribute, delAttribute, delete, equalXdmValues, findFirstNodeOfClass, findPosition, firePropertyChangeEvent, generateId, generateLocatorToNode, generatePrefix, getAllAttributes, getAttribute, getAttributeAtomicValue, getAttributeBooleanValue, getAttributeGroundedValue, getAttributeQNameValue, getAttributeValue, getBase, getBase, getBooleanValue, getChildren, getChildStringValue, getConfiguration, getContainer, getContainerDocumentURI, getDocument, getElement, getElement, getElements, getFirstChildNoComment, getFragment, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getId, getInScopeNamespaces, getLang, getLastChildNoComment, getNamePool, getNamespaceBinding, getNamespaceURI, getNextSiblingNoComment, getNodeName, getNthElement, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getParentDocument, getPrefix, getPrefixes, getPropertyChangeListeners, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPath, getXPathFromXPointer, getXPathNamespaceContext, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerXPath2Scheme, initialise, internalToString, isAttribute, isChangeHashEnabled, isDead, isEmpty, isNamespaceDefined, isNil, moveNamespacesUp, objEquals, objHashCode, reindex, removeChild, removeChildNode, removeFromRelationship, removeNamespace, removePropertyChangeListener, removeToRelationship, replace, replaceChild, replaceStringValue, resetElements, resolveHRef, s_equal2_xp2, s_equal2_xp2, s_equal2, s_equal2, s_equal2, s_equal2, setAttributeList, setAttributes, setBase, setChildrenClone, setDirty, setElements, setLang, setModified, setNamespaceDeclarations, setNamespaces, setNil, setNodeName, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, valueEquals, xEqual
addAttribute, addNamespace, generateId, getAttributeList, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDocumentRoot, getLineNumber, getNameCode, getNamespaceList, getNodeKind, getRoot, getSchemaType, getSystemId, getTypeAnnotation, getURIForPrefix, gsetAttributeCollection, isId, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeTypeAnnotation, rename, setLocation, setNameCode, setNamespaceList, setSystemId, setTypeAnnotation
atomize, compareOrder, comparePosition, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getSiblingPosition, getSuccessorElement, getURI, head, insertSiblings, isDeleted, isIdref, isSameNodeInfo, iterate, iterateAxis, iterateAxis, newBuilder, replace
getProcessor
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 XBRLVariableFact(XBRLFormulaProcessor formulaProcessor, XBRLResource res) throws XFValidationException
formulaProcessor
- the formula processorres
- the resXFValidationException
- the XF validation exceptionpublic boolean isBindAsSequence()
isBindAsSequence
in interface XBRLVariableFormulaEvaluable
isBindAsSequence
in class XBRLVariableResource
public boolean checkVariable(XBRLVariablesHolder set, javax.xml.namespace.QName name, java.util.Collection<net.sf.saxon.s9api.QName> resolved) throws XFValidationException
set
- the setname
- the nameresolved
- the resolvedXFValidationException
- the XF validation exceptionpublic boolean isMatches()
public Evaluation rawEvaluateValue(XMLFragment evaluationContext, java.util.Collection<XBRLVariableResourceUse> availableVars) throws XFValidationException
evaluationContext
- the evaluation contextavailableVars
- the available varsXFValidationException
- the XF validation exceptionpublic 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 exceptionXBRLVariableFormulaEvaluable.rawEvaluateValue(XMLFragment, Collection)
public void reset()
public void clear() throws java.lang.Throwable
clear
in interface XBRLVariableFormulaEvaluable
clear
in class XBRLVariableResource
java.lang.Throwable
- the throwablepublic net.sf.saxon.s9api.XdmValue fallbackValue(XBRLVariablesHolder set) throws XFValidationException
set
- the setXFValidationException
- the XF validation exceptionpublic boolean bindAsEmpty(XBRLVariablesHolder set) throws XFValidationException
set
- the setXFValidationException
- the XF validation exceptionpublic boolean isCoveredAspect(Aspect aspect)
aspect
- the aspectpublic java.util.Set<Aspect> getCoveredAspects(XBRLVariablesHolder set)
set
- the setpublic boolean isUncovered(Aspect aspect, Aspect aspectDimension)
aspect
- the aspect main. in case this is DIMENSION, the aspectDimension parameter
indicates the actual dimension aspect to check foraspectDimension
- the dimension name as an Aspect instancepublic java.util.Collection<javax.xml.namespace.QName> getVariablesRequired(XBRLVariablesHolder set)
set
- the setpublic java.util.Collection<? extends net.sf.saxon.value.QNameValue> getUncoveredDimensionalAspects()
public java.util.Collection<? extends net.sf.saxon.value.StringValue> getUncoveredNonDimensionalAspects(XBRLVariableSetResource set)
set
- the setpublic boolean matcheable(net.sf.saxon.s9api.XdmValue value, XBRLVariablesHolder.ModelType aspectModel) throws XFValidationException
value
- a sequence of 1 or more items that are values of a variable.aspectModel
- This is the variable set aspect modelXFValidationException
- the XF validation exceptionpublic java.lang.String getExpression()
getExpression
in class XBRLVariableResource
public XMLFragment getXMLFragment()
public final boolean hasChildNodes()
hasChildNodes
in interface net.sf.saxon.om.NodeInfo
hasChildNodes
in class net.sf.saxon.tree.linked.NodeImpl
public final int getNumberOfChildren()
public final net.sf.saxon.tree.linked.NodeImpl getFirstChild()
getFirstChild
in interface net.sf.saxon.tree.util.SteppingNode<net.sf.saxon.tree.linked.NodeImpl>
getFirstChild
in class net.sf.saxon.tree.linked.NodeImpl
public final net.sf.saxon.tree.linked.NodeImpl getLastChild()
getLastChild
in class net.sf.saxon.tree.linked.NodeImpl
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa