|
||||||||||
| 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.XBRLVariableSetResource
public abstract class XBRLVariableSetResource
| Field Summary | |
|---|---|
static javax.xml.namespace.QName |
aspectModel
|
static javax.xml.namespace.QName |
implicitFiltering
|
static org.apache.log4j.Logger |
log
|
| 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 |
| Fields inherited from interface com.ihr.xbrl.om.formula.XBRLVariablesHolder |
|---|
MODEL_DIMENSIONAL, MODEL_NON_DIMENSIONAL |
| Constructor Summary | |
|---|---|
XBRLVariableSetResource(XBRLFormulaProcessor proc,
XBRLExtendedLink parent,
net.sf.saxon.s9api.XdmNode resNode)
|
|
XBRLVariableSetResource(XBRLFormulaProcessor proc,
XBRLResource other)
|
|
| Method Summary | |
|---|---|
static java.util.Collection<? extends javax.xml.namespace.QName> |
allDimensions(XBRLFact xFact)
|
boolean |
bindCycle(XPathHelper xph)
|
void |
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)
|
void |
bindVariableValue(net.sf.saxon.s9api.QName varName,
net.sf.saxon.s9api.XPathSelector sel)
|
void |
checkCyclicDependencies(javax.xml.namespace.QName source)
Starting variable to check cycles from |
void |
compileFilters()
|
net.sf.saxon.s9api.XPathExecutable |
compileFormulaExpression(java.lang.String expression,
boolean namespaces,
boolean variables)
|
java.util.Collection<javax.xml.namespace.QName> |
declareVariables(net.sf.saxon.s9api.XPathCompiler compiler,
boolean bNamespaces,
boolean bVariables,
javax.xml.namespace.QName name)
|
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()
|
XBRLVariableFormulaEvaluable |
getVariableResource(javax.xml.namespace.QName variableName)
Access to the variable resource by its variable name |
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. |
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 |
| Methods inherited from class com.ihr.xbrl.om.formula.XBRLFormulaResource |
|---|
getProcessor |
| Methods inherited from class com.ihr.xbrl.om.exLinks.XBRLResource |
|---|
addChild, clear, equals, generateLocatorToNode, generateNode, getAttributes, getDTSBase, getFriendlyName, getFriendlyName, getParent, getRoleType, getType, getValueKey, hashCode, isComplexType, isSimpleType, setComplexType, setDTSBase, setId, setParent, setRole, setRoleType, setSimpleType, setValue |
| 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.HasFormulaProcessor |
|---|
getProcessor |
| Methods inherited from interface com.ihr.xbrl.om.exLinks.XBRLRelationshipPoint |
|---|
addFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationship |
| Field Detail |
|---|
public static org.apache.log4j.Logger log
public static final javax.xml.namespace.QName implicitFiltering
public static final javax.xml.namespace.QName aspectModel
| Constructor Detail |
|---|
public XBRLVariableSetResource(XBRLFormulaProcessor proc,
XBRLExtendedLink parent,
net.sf.saxon.s9api.XdmNode resNode)
throws XFValidationException
parent - resNode -
XFValidationException
public XBRLVariableSetResource(XBRLFormulaProcessor proc,
XBRLResource other)
throws XFValidationException
other -
XFValidationException| Method Detail |
|---|
public int getAspectModel()
XBRLVariablesHolder
getAspectModel in interface XBRLVariablesHolderpublic boolean isImplicitFilter()
public boolean bindCycle(XPathHelper xph)
throws XFValidationException
XFValidationExceptionpublic static java.util.Collection<? extends javax.xml.namespace.QName> allDimensions(XBRLFact xFact)
xFact1 -
public void bindLastEvaluatedVariableValues(net.sf.saxon.s9api.XPathSelector xpathExpression,
java.util.Collection<javax.xml.namespace.QName> requiredVariables)
xpathExpression - requiredVariables - evalProvider -
public void bindParameters(net.sf.saxon.s9api.XPathSelector xpathExpression,
java.util.Collection<javax.xml.namespace.QName> requiredVariables)
public 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
XFValidationException
public void checkCyclicDependencies(javax.xml.namespace.QName source)
throws XFValidationException
source - QName
XFValidationExceptionpublic 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 -
XFRuntimeException - encapsulating a XFValidationException produced if this is the first time this function is called for the variable set and variables are read from the linkbasepublic XBRLVariableFormulaEvaluable getVariableResource(javax.xml.namespace.QName variableName)
XBRLVariablesHolder
getVariableResource in interface XBRLVariablesHolder
public net.sf.saxon.s9api.XdmValue getVariableValue(javax.xml.namespace.QName variableName)
throws XFValidationException
XBRLVariablesHolder
getVariableValue in interface XBRLVariablesHoldervariableName - javax.xml.namespace.QName
XFValidationException
public 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 - dimName - Optional, dimension name. Used only when aspect is DIMENSION
XFValidationException
public void compileFilters()
throws XFValidationException
xbrlFormula -
XFValidationExceptionpublic java.util.Collection<XBRLFilterUse> getFilters()
XBRLVariablesHolder
getFilters in interface XBRLVariablesHolder
public net.sf.saxon.s9api.XPathExecutable compileFormulaExpression(java.lang.String expression,
boolean namespaces,
boolean variables)
throws XFValidationException
XFValidationExceptionpublic java.util.Collection<net.sf.saxon.s9api.QName> getBindableVariableNames()
XBRLVariablesHolder
getBindableVariableNames in interface XBRLVariablesHolder
public void bindVariableValue(net.sf.saxon.s9api.QName varName,
net.sf.saxon.s9api.XPathSelector sel)
varName - sel - public int getNumberOfVariables()
public boolean isCovered(javax.xml.namespace.QName source,
int aspect)
source - aspect -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||