|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.formula.FContext
public class FContext
This is the Formula interpretation of the XBRL Segment or XBRL Scenario dimensions container of an XBRL context. This is different from the Dimensions model of the same information. This object holds the dimensional information and the non dimensional information nodes so the formula processor can work with them easily
| Constructor Summary | |
|---|---|
FContext(XMLElementDefinition el)
|
|
FContext(XMLElementDefinition el,
XBRLContext ctx)
|
|
| Method Summary | |
|---|---|
void |
add(XMLFragment fr,
int container,
boolean bIsOcc)
|
void |
clear()
Clears all dimensional and non dimensional information on this context. |
XMLFragment |
getDimension(javax.xml.namespace.QName dimName)
Returns the dimension value associated to the dimension passed in in the dimName parameter. |
int |
getDimensionContainer(javax.xml.namespace.QName dimName)
|
java.util.Collection<javax.xml.namespace.QName> |
getDimensions()
Returns a collection of QNames for of all XDT dimensions explicitly written in the context, either in the segment or the scenario containers. |
java.util.Collection<XMLFragment> |
getNonDimensionalInformation(int container)
Returns a collection of fragments with non dimensional information in the context container indicated in the parameter. |
XBRLDimensionsContainer |
getXBRLContext(int container)
Converts the internal structures back to an XBRLContext object. |
static boolean |
isExplicitDimensionContainer(XMLFragment fragment)
returns true if the XMLFragment passed in as a parameter is a container for explicit dimensions |
static boolean |
isTypedDimensionContainer(XMLFragment fragment)
returns true if the XMLFragment passed in as a parameter is a container for explicit dimensions |
void |
remove(XMLFragment fr,
int container,
boolean bIsOcc)
|
void |
removeDim(javax.xml.namespace.QName dimName)
|
void |
setDimension(javax.xml.namespace.QName dimName,
XMLFragment dimension,
int dimensionContainer)
Sets a value for the indicated dimension in the indicated dimension container. |
void |
setXBRLContext(XBRLContext context)
Stores the information form an XBRL context inside the internal structure |
void |
setXBRLScenario(XBRLScenario scenario)
|
void |
setXBRLSegment(XBRLSegment segment)
|
void |
unsetXBRLScenario(XBRLScenario scenario)
|
void |
unsetXBRLSegment(XBRLSegment segment)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FContext(XMLElementDefinition el)
public FContext(XMLElementDefinition el,
XBRLContext ctx)
| Method Detail |
|---|
public void setXBRLContext(XBRLContext context)
context - public void setXBRLSegment(XBRLSegment segment)
public void setXBRLScenario(XBRLScenario scenario)
public void add(XMLFragment fr,
int container,
boolean bIsOcc)
throws XFxbrlfeBadSubsequentOCCValue
fr - container - use -1 in the case of dimensions to NOT CHANGE original container. use XDTHypercubeUse.SEGMENT for segment and XDTHypercubeUse.SCENARIO for scenariobIsOcc -
XFxbrlfeBadSubsequentOCCValuepublic void unsetXBRLSegment(XBRLSegment segment)
public void unsetXBRLScenario(XBRLScenario scenario)
public void remove(XMLFragment fr,
int container,
boolean bIsOcc)
throws XFxbrlfeBadSubsequentOCCValue
XFxbrlfeBadSubsequentOCCValuepublic XBRLDimensionsContainer getXBRLContext(int container)
Note during the construction of this function, the time and entity is not stored so this class will not be able to generate a complete context. It can only generate the scenario container or the segment container as indicated in the parameters passed in.
container - use XDTHypercubeUse.SEGMENT for segment and XDTHypercubeUse.SCENARIO for scenario
public void clear()
public void removeDim(javax.xml.namespace.QName dimName)
dimName - public java.util.Collection<javax.xml.namespace.QName> getDimensions()
public XMLFragment getDimension(javax.xml.namespace.QName dimName)
The returned data is the XMLFragment including the explicit or implicit member container.
If the dimension has a default, the default is not reported in the context. This method only cares about explicitly written values in the context so the returned value will always be null when a dimension for which a default has been reported is passed in. Note that if, according with other interpretations of closed hypercubes, the dimension for which a default does not apply for the primary item, this method will also return when that dimension is used.
dimName -
public int getDimensionContainer(javax.xml.namespace.QName dimName)
dimName -
public void setDimension(javax.xml.namespace.QName dimName,
XMLFragment dimension,
int dimensionContainer)
in order to get the preferred dimension container for a dimension call the getDimensionContainer(QName) method.
the dimension value must contain all elements including the xbrli:explicitMember or xbrli:typedMember element and all required attributes.
dimName - dimension - dimensionContainer - XDTHypercubeUse.SEGMENT for segment and XDTHypercubeUse.SCENARIO for scenariogetDimensionContainer(QName)public java.util.Collection<XMLFragment> getNonDimensionalInformation(int container)
container - either XDTHypercubeUse.SCENARIO or XDTHypercubeUse.SEGMENT
public static boolean isExplicitDimensionContainer(XMLFragment fragment)
frDimValue -
public static boolean isTypedDimensionContainer(XMLFragment fragment)
frDimValue -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||