|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.dts.InstanceExplorerAbstract
com.ihr.xbrl.dts.DimensionalInstanceExplorer
public class DimensionalInstanceExplorer
This class provides methods to investigate the content of an XBRL instance document from a high level point of view so the development of tools reading the content of instance document will be much easier
| Field Summary |
|---|
| Fields inherited from class com.ihr.xbrl.dts.InstanceExplorerAbstract |
|---|
DAYS, HALVES, HOURS, MINUTES, MONTHS, notesOrderer, QUARTERS, sDays, SECONDS, sHalves, sHours, sMinutes, sMonths, sQuarters, sSeconds, sWeeks, sYears, unkownUnit, WEEKS, YEARS |
| Constructor Summary | |
|---|---|
DimensionalInstanceExplorer(LangsProvider lp,
HasBoySupport hb,
HasFrame tool,
HandleDateStep hds,
HasDimensionsTableHeaderItem hdth,
HasAccessSelectedRole instanceDocumentPane,
DefaultUnitProviderInterface defaultUnitProvider)
|
|
| Method Summary | |
|---|---|
void |
addContext(XBRLContext newContext,
int dateStep)
Adds a new context to this context provider. |
void |
addFact(XBRLFact fact)
Received notification that a fact has been added |
void |
addFragmentMember(XMLFragmentMember frMem,
java.lang.String text)
Adds a member to a typed dimension Forwards messages accordingly |
void |
clear()
|
void |
delFact(XBRLFact fact,
XBRLFactsList parent)
Receives notification that a fact has been removed from the instance being explored. |
void |
factChangedContext(XBRLFactItem fact,
XBRLContext oldContext,
XBRLContext newContext)
Informs the Context provider that the fact has changed its context information. |
void |
factChangedUnit(XBRLFactNumeric fact,
XBRLUnit oldUnit,
XBRLUnit newUnit)
|
XBRLFactItem |
findFact(java.util.ArrayList<Member<?>> allMembers)
|
java.util.Iterator<XBRLContext> |
getCompatibleContexts(XBRLFactItem fact,
int dateStep)
Returns an iterator over compatible contexts for this fact. |
Dimension<?> |
getDimensionFromQName(javax.xml.namespace.QName name)
|
java.util.Collection<javax.xml.namespace.QName> |
getItemDimensions(XMLElementDefinition item)
Returns a collection of dimensions that are applicable for this primary item |
XDTInfosetConsumer |
getXDTInfosetConsumer()
Access to the XDTInfosetConsumer linked with this DimensionalIntanceExplorer |
XDTProcessor |
getXDTProc()
Access to the XDTProcessor linked with this DimensionalInstanceExplorer |
void |
resetDuplicatesDimension()
|
void |
setInstance(XBRLInstance instance)
|
void |
setXDTProcessors(XDTProcessor xdt,
XDTInfosetConsumer xdtInfo)
When the DTS change these variables must be updated too |
void |
update()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DimensionalInstanceExplorer(LangsProvider lp,
HasBoySupport hb,
HasFrame tool,
HandleDateStep hds,
HasDimensionsTableHeaderItem hdth,
HasAccessSelectedRole instanceDocumentPane,
DefaultUnitProviderInterface defaultUnitProvider)
| Method Detail |
|---|
public void setXDTProcessors(XDTProcessor xdt,
XDTInfosetConsumer xdtInfo)
xdt - xdtInfo - public void setInstance(XBRLInstance instance)
instance - public void resetDuplicatesDimension()
public void update()
role - item - public XDTProcessor getXDTProc()
public XDTInfosetConsumer getXDTInfosetConsumer()
public void clear()
clear in interface InstanceExplorerInterfaceclear in class InstanceExplorerAbstract
public void addContext(XBRLContext newContext,
int dateStep)
ContextProvider
newContext - XBRLContext to adddateStep - the value of the dateStep container for the new context
public void factChangedContext(XBRLFactItem fact,
XBRLContext oldContext,
XBRLContext newContext)
ContextProvider
public java.util.Iterator<XBRLContext> getCompatibleContexts(XBRLFactItem fact,
int dateStep)
ContextProvider
public void factChangedUnit(XBRLFactNumeric fact,
XBRLUnit oldUnit,
XBRLUnit newUnit)
public XBRLFactItem findFact(java.util.ArrayList<Member<?>> allMembers)
public java.util.Collection<javax.xml.namespace.QName> getItemDimensions(XMLElementDefinition item)
item -
public Dimension<?> getDimensionFromQName(javax.xml.namespace.QName name)
public void addFact(XBRLFact fact)
InstanceExplorerInterface
public void delFact(XBRLFact fact,
XBRLFactsList parent)
InstanceExplorerInterfaceNote: after removing a fact from its container the fact parent is set to null.
The fact has to be removed from the parent container prior to call this method and this is the reason this method has a second parameter that indicated what the parent container was.
public void addFragmentMember(XMLFragmentMember frMem,
java.lang.String text)
fm - XMLFragmentMembertext - String text representation for fm or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||