public abstract class XBRLVariableResource extends XBRLFormulaResource implements XBRLVariableFormulaEvaluable
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
as
The Constant as.
|
static javax.xml.namespace.QName |
bindAsSequence
The Constant bindAsSequence.
|
static org.apache.log4j.Logger |
log
The log.
|
static javax.xml.namespace.QName |
name
The Constant name.
|
static javax.xml.namespace.QName |
order
The Constant order.
|
nullResourceactuate, ACTUATE, ARC, arcrole, ARCROLE, ETITLE, EXTENDED, from, FROM, href, HREF, label, LABEL, LOCATOR, RESOURCE, role, ROLE, show, SHOW, SIMPLE, title, TITLE, to, TO, TYPECONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, HIDE_COMMON_ACCURACY, idQName, NO_POSITION, OrderComparator, OrderComparator2, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER| Constructor and Description |
|---|
XBRLVariableResource(XBRLFormulaProcessor proc,
XBRLExtendedLink parent,
net.sf.saxon.s9api.XdmNode resNode)
Instantiates a new XBRL variable resource.
|
XBRLVariableResource(XBRLFormulaProcessor proc,
XBRLResource res)
Instantiates a new XBRL variable resource.
|
XBRLVariableResource(XBRLFormulaResource other)
Instantiates a new XBRL variable resource.
|
| 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 |
bindAsSequence()
In the case of resource based variables this reads the surrounding syntax and returns the value
of the bindAsSequence.
|
void |
clear()
Removes all referneces to this resource in the DTS.
|
int |
getAllAspectsFiltered()
Access to all aspects filtered as an integer constant.
|
abstract java.lang.String |
getExpression()
Used only for debug purposes.
|
java.util.List<XBRLFilterUse> |
getFilters(int aspect)
Gets the filters.
|
java.util.Set<java.lang.Integer> |
getKeysAspectsFiltered()
Gets the keys aspects filtered.
|
XBRLVariableResourceUse |
getUse(XBRLRelationship rel,
XBRLVariablesHolder set)
Creates a new XBRLVariableResourceUse instance for this variable resource in the
variable resource set.
|
XBRLVariableType |
getVariableType()
Gets the variable type.
|
boolean |
hasFilterAspect(int aspect,
javax.xml.namespace.QName dimName)
Checks for filter aspect.
|
getProcessoraddChild, equals, generateLocatorToNode, generateNode, getAttributes, getDTSBase, getFriendlyName, getFriendlyName, getParent, getResourceIdentifier, getRoleType, getType, getValidationReport, getValueKey, hashCode, invalidate, invalidate, isComplexType, isOnValidation, isSimpleType, setComplexType, setDTSBase, setId, setParent, setRole, setRoleType, setSimpleType, setValue, validategetActuate, getArcrole, getFromTxt, getHRef, getLabel, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setShow, setSType, setTitle, setToaddAttribute, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, clone, clone, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, getElements, getElementsHashCode, getFragment, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getGenericLabelText, getId, getLang, getNamespaceURI, getNodeName, getNumberOfAttributes, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getPrefix, getPrefixes, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticContext, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPathExecutable, getXPathNamespaceContext, getXPathToNode, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerToNode, isDead, isNamespaceDefined, isXdmDocumentAttached, objEquals, objHashCode, qNameToString, removeAttribute, removeChild, removeChild, removeFromRelationship, removeToRelationship, removeXMLChild, resetElements, resetHash, resolve_equal2, resolveHRef, resolveHRef, s_equal2, s_equal2, s_equal2, setAttributes, setBase, setDocument, setDocumentAndReload, setElements, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualcheckVariable, evaluateValue, getProcessor, getVariablesRequired, getXMLFragment, rawEvaluateValueaddFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationshippublic static org.apache.log4j.Logger log
public static final javax.xml.namespace.QName name
public static final javax.xml.namespace.QName order
public static final javax.xml.namespace.QName bindAsSequence
public static final javax.xml.namespace.QName as
public XBRLVariableResource(XBRLFormulaProcessor proc, XBRLExtendedLink parent, net.sf.saxon.s9api.XdmNode resNode)
proc - the procparent - the parentresNode - the res nodepublic XBRLVariableResource(XBRLFormulaProcessor proc, XBRLResource res)
proc - the procres - the respublic XBRLVariableResource(XBRLFormulaResource other)
other - the otherpublic XBRLVariableResourceUse getUse(XBRLRelationship rel, XBRLVariablesHolder set) throws XFValidationException
rel - Relationship that links the set with the variableset - the XBRLVariableSetResource that contains this variable useXFValidationException - in the form of a XFxbrlveVariableNameResolutionFailurepublic boolean bindAsSequence()
XBRLVariableFormulaEvaluableIn other cases relays on the implementation
bindAsSequence in interface XBRLVariableFormulaEvaluablepublic java.util.List<XBRLFilterUse> getFilters(int aspect)
getFilters in interface XBRLVariableFormulaEvaluableaspect - the aspectpublic java.util.Set<java.lang.Integer> getKeysAspectsFiltered()
public int getAllAspectsFiltered()
CommonAspectRulepublic boolean hasFilterAspect(int aspect,
javax.xml.namespace.QName dimName)
hasFilterAspect in interface XBRLVariableFormulaEvaluableaspect - the aspectdimName - if aspect is DIMENSION then dimName is the dimension namepublic net.sf.saxon.s9api.XdmValue adjustValueAccordingToType(net.sf.saxon.s9api.XdmValue val,
net.sf.saxon.s9api.XdmItem item)
throws XFValidationException
adjustValueAccordingToType in interface XBRLVariableFormulaEvaluableval - 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 exceptionpublic XBRLVariableType getVariableType()
XBRLVariableFormulaEvaluablegetVariableType in interface XBRLVariableFormulaEvaluablepublic abstract java.lang.String getExpression()
Returns the XPath expression used to evaluate this variable
public void clear()
XBRLResourceclear in interface XBRLVariableFormulaEvaluableclear in class XBRLResource