public abstract class XBRLVariableSetResource extends XBRLFormulaResource implements XBRLVariablesHolder, HasUncoveredAspectValueResolver
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
aspectModel
The Constant aspectModel.
|
static javax.xml.namespace.QName |
implicitFiltering
The Constant implicitFiltering.
|
static org.apache.log4j.Logger |
log
The log.
|
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, XPOINTERMODEL_DIMENSIONAL, MODEL_NON_DIMENSIONAL| Constructor and Description |
|---|
XBRLVariableSetResource(XBRLFormulaProcessor proc,
XBRLExtendedLink parent,
net.sf.saxon.s9api.XdmNode resNode)
Instantiates a new XBRL variable set resource.
|
XBRLVariableSetResource(XBRLFormulaProcessor proc,
XBRLResource other)
Instantiates a new XBRL variable set resource.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<? extends javax.xml.namespace.QName> |
allDimensions(XBRLFact xFact)
All dimensions.
|
boolean |
bindCycle(XPathHelper xph)
Bind cycle.
|
TraceVariablesBind |
bindLastEvaluatedVariableValues(net.sf.saxon.s9api.XPathSelector xpathExpression,
java.util.Collection<javax.xml.namespace.QName> requiredVariables)
This method should be called when there is no need to advance to the next values in the sequence.
|
void |
bindParameters(net.sf.saxon.s9api.XPathSelector xpathExpression,
java.util.Collection<javax.xml.namespace.QName> requiredVariables)
Bind parameters.
|
void |
bindVariableValue(net.sf.saxon.s9api.QName varName,
net.sf.saxon.s9api.XPathSelector sel)
Bind variable value.
|
void |
checkCyclicDependencies(javax.xml.namespace.QName source)
Starting variable to check cycles from.
|
void |
compileFilters()
Compile filters.
|
net.sf.saxon.s9api.XPathExecutable |
compileFormulaExpression(java.lang.String expression,
boolean namespaces,
boolean variables)
Compile formula expression.
|
java.util.Collection<javax.xml.namespace.QName> |
declareVariables(net.sf.saxon.s9api.XPathCompiler compiler,
boolean bNamespaces,
boolean bVariables,
javax.xml.namespace.QName name)
Declare variables.
|
int |
getAspectModel()
Returns either XBRLVariablesHolder.MODEL_DIMENSIONAL or XBRLVariablesHolder.MODEL_NON_DIMENSIONAL
|
java.util.Collection<net.sf.saxon.s9api.QName> |
getBindableVariableNames()
Access to a collection of QNames (Saxon s9api QNames) of all variables
that are defined in this XBRLVariablesHolder
|
java.util.Collection<XBRLFilterUse> |
getFilters()
Returns a collection of XBRLFilterUse instance representing the use of filters associated to
this XBRLVariablesHolder.
|
int |
getNumberOfVariables()
Gets the number of variables.
|
XFIImplicitFilterOptimizer |
getOptimizer()
Returns the optimizer for the set. this may be null
|
static int |
getUncoveredAspectsSet(java.util.Collection<XBRLVariableResourceUse> variableUses,
XBRLVariablesHolder set)
Computes uncovered aspects in common in all variables in the set.
|
net.sf.saxon.s9api.XdmValue |
getUncoveredAspectValue(int aspect,
javax.xml.namespace.QName dimName)
Used only for the implementation of the xff.uncovered-aspect(aspect, dimName) XPath function
|
XBRLVariableFormulaEvaluable |
getVariableResource(javax.xml.namespace.QName variableName)
Access to the variable resource by its variable name.
|
java.util.Collection<XBRLVariableResourceUse> |
getVariableResourceUses()
Access to variables linked with this variable set.
|
XBRLVariableResourceUse |
getVariableUse(javax.xml.namespace.QName variableName)
Obtains the instance of the XBRLVariableResourceUse on this variable set using the
variable name.
|
net.sf.saxon.s9api.XdmValue |
getVariableValue(javax.xml.namespace.QName variableName)
Access to the variable value using the variable name.
|
net.sf.saxon.s9api.XdmValue |
getVariableValue(javax.xml.namespace.QName variableName,
int aspect,
javax.xml.namespace.QName dimName)
Access to the variable value using the variable name.
|
XFIImplicitFilterOptimizer |
getXFIImplicitFilterOptimizer()
Returns or creates the instance of the fact variable optimizer when the
fact variable is used with implicit filtering in a set with more than 2
variables.
|
boolean |
isCovered(javax.xml.namespace.QName source,
int aspect)
Returns true when the variable used in the source parameter is covered.
|
boolean |
isImplicitFilter()
Returns the value of the implicitfiltering attribute for this variableSet.
|
getProcessoraddChild, clear, 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, xEqualgetProcessoraddFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationshippublic static org.apache.log4j.Logger log
public static final javax.xml.namespace.QName implicitFiltering
public static final javax.xml.namespace.QName aspectModel
public XBRLVariableSetResource(XBRLFormulaProcessor proc, XBRLExtendedLink parent, net.sf.saxon.s9api.XdmNode resNode) throws XFValidationException
proc - the procparent - the parentresNode - the res nodeXFValidationException - the XF validation exceptionpublic XBRLVariableSetResource(XBRLFormulaProcessor proc, XBRLResource other) throws XFValidationException
proc - the procother - the otherXFValidationException - the XF validation exceptionpublic int getAspectModel()
XBRLVariablesHoldergetAspectModel in interface XBRLVariablesHolderpublic boolean isImplicitFilter()
isImplicitFilter in interface HasUncoveredAspectValueResolverisImplicitFilter in interface XBRLVariablesHolderpublic boolean bindCycle(XPathHelper xph) throws XFValidationException
xph - the xphXFValidationException - the XF validation exceptionpublic java.util.Collection<XBRLVariableResourceUse> getVariableResourceUses()
public static java.util.Collection<? extends javax.xml.namespace.QName> allDimensions(XBRLFact xFact)
xFact - the x factpublic TraceVariablesBind bindLastEvaluatedVariableValues(net.sf.saxon.s9api.XPathSelector xpathExpression, java.util.Collection<javax.xml.namespace.QName> requiredVariables)
xpathExpression - the xpath expressionrequiredVariables - the required variablespublic void bindParameters(net.sf.saxon.s9api.XPathSelector xpathExpression,
java.util.Collection<javax.xml.namespace.QName> requiredVariables)
xpathExpression - the xpath expressionrequiredVariables - the required variablespublic java.util.Collection<javax.xml.namespace.QName> declareVariables(net.sf.saxon.s9api.XPathCompiler compiler,
boolean bNamespaces,
boolean bVariables,
javax.xml.namespace.QName name)
throws XFValidationException
compiler - the compilerbNamespaces - the b namespacesbVariables - the b variablesname - the nameXFValidationException - the XF validation exceptionpublic void checkCyclicDependencies(javax.xml.namespace.QName source)
throws XFValidationException
source - QNameXFValidationException - the XF validation exceptionpublic XBRLVariableResourceUse getVariableUse(javax.xml.namespace.QName variableName)
The constructor of the XBRLVariableSetResource already calls readVariables so it is almost impossible this method raises XFRuntimeException
variableName - the variable namepublic XBRLVariableFormulaEvaluable getVariableResource(javax.xml.namespace.QName variableName)
XBRLVariablesHoldergetVariableResource in interface XBRLVariablesHoldervariableName - the q varpublic net.sf.saxon.s9api.XdmValue getVariableValue(javax.xml.namespace.QName variableName)
throws XFValidationException
XBRLVariablesHoldergetVariableValue in interface XBRLVariablesHoldervariableName - javax.xml.namespace.QNameXFValidationException - the XF validation exceptionpublic net.sf.saxon.s9api.XdmValue getVariableValue(javax.xml.namespace.QName variableName,
int aspect,
javax.xml.namespace.QName dimName)
throws XFValidationException
This function is able to deal with the formula:uncovered variable name and obtains the SAV according to the specification.
variableName - the variable nameaspect - the aspectdimName - Optional, dimension name. Used only when aspect is DIMENSIONXFValidationException - the XF validation exceptionpublic net.sf.saxon.s9api.XdmValue getUncoveredAspectValue(int aspect,
javax.xml.namespace.QName dimName)
throws XFValidationException
HasUncoveredAspectValueResolvergetUncoveredAspectValue in interface HasUncoveredAspectValueResolveraspect - the aspectdimName - the dim nameXFValidationException - the XF validation exceptionpublic void compileFilters()
throws XFValidationException
XFValidationException - the XF validation exceptionpublic java.util.Collection<XBRLFilterUse> getFilters()
XBRLVariablesHoldergetFilters in interface XBRLVariablesHolderpublic net.sf.saxon.s9api.XPathExecutable compileFormulaExpression(java.lang.String expression,
boolean namespaces,
boolean variables)
throws XFValidationException
expression - the expressionnamespaces - the namespacesvariables - the variablesXFValidationException - the XF validation exceptionpublic java.util.Collection<net.sf.saxon.s9api.QName> getBindableVariableNames()
XBRLVariablesHoldergetBindableVariableNames in interface XBRLVariablesHolderpublic void bindVariableValue(net.sf.saxon.s9api.QName varName,
net.sf.saxon.s9api.XPathSelector sel)
varName - the var namesel - the selpublic int getNumberOfVariables()
public boolean isCovered(javax.xml.namespace.QName source,
int aspect)
source - the sourceaspect - the aspectpublic XFIImplicitFilterOptimizer getXFIImplicitFilterOptimizer()
XBRLVariablesHoldergetXFIImplicitFilterOptimizer in interface XBRLVariablesHolderpublic XFIImplicitFilterOptimizer getOptimizer()
public static int getUncoveredAspectsSet(java.util.Collection<XBRLVariableResourceUse> variableUses, XBRLVariablesHolder set)
variableUses - the variable usesset - the set