public class DimensionalInstanceExplorer extends InstanceExplorerAbstract
ACUM_Q1Q3, ALL, DAYS, FOREVER, HALVES, HOURS, INSTANT, MINUTES, MONTHS, NONSTANDARD, notesOrderer, QUARTERS, sDays, SECONDS, sForever, sHalves, sHours, sMinutes, sMonths, sNonstandard, sQuarters, sSeconds, sWeeks, sYears, unkownUnit, WEEKS, YEARS| Constructor and Description |
|---|
DimensionalInstanceExplorer(LangsProvider lp,
HasBoySupport hb,
HasDimensionsTableHeaderItem hdth,
HasAccessSelectedRole instanceDocumentPane,
DefaultUnitProviderInterface defaultUnitProvider,
HandleInstantMode him)
Instantiates a new dimensional instance explorer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContext(XBRLContext newContext)
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()
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)
Fact changed unit.
|
XBRLFactItem |
findFact(java.util.ArrayList<Member<?>> allMembers)
if the allMembers contains LineTitleMember elements, we need to resolve the hierarchy resolution
before calling this method.
|
java.util.Iterator<XBRLContext> |
getCompatibleContexts(XBRLFactItem fact)
Returns an iterator over compatible contexts for this fact.
|
Dimension<?> |
getDimensionFromQName(javax.xml.namespace.QName name)
Gets the dimension from the "name" parameter that applies for the selected primary item.
|
XBRLInstance |
getInstance()
Access to the XBRLInstance in the instance explorer.
|
java.util.Collection<ClsPackQNameContainer> |
getItemDimensions(XMLElementDefinition item,
XBRLRoleType role)
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()
Reset duplicates dimension.
|
void |
resetTypedDimensions()
Clear typed dimension members.
|
void |
setInstance(XBRLInstance instance)
Sets the instance.
|
void |
setXDTProcessors(XDTProcessor xdt,
XDTInfosetConsumer xdtInfo)
When the DTS change these variables must be updated too.
|
void |
update()
Update.
|
addInstanceExplorerListener, getCompanyKeys, getFactNotes, getInstanceExplorerListeners, getNumberOfCompanies, getNumTokens, getStringOfDateStep, getStringOfPeriod, getSuggestedUnit, getSuggestedUnits, getVNotes, hasDataForCompany, indexOfDateStepCode, instanceEvent, intTokenToString, removeInstanceExplorerListener, sendEvent, setSuggestedUnit, stepsCodeForIndex, stringTokenToIntpublic DimensionalInstanceExplorer(LangsProvider lp, HasBoySupport hb, HasDimensionsTableHeaderItem hdth, HasAccessSelectedRole instanceDocumentPane, DefaultUnitProviderInterface defaultUnitProvider, HandleInstantMode him)
lp - the lphb - the hbhdth - the hdthinstanceDocumentPane - the instance document panedefaultUnitProvider - the default unit providerhim - the himpublic void setXDTProcessors(XDTProcessor xdt, XDTInfosetConsumer xdtInfo)
xdt - the xdtxdtInfo - the xdt infopublic void setInstance(XBRLInstance instance)
instance - the new instancepublic void resetDuplicatesDimension()
public void resetTypedDimensions()
public void update()
public XDTProcessor getXDTProc()
public XDTInfosetConsumer getXDTInfosetConsumer()
public void clear()
InstanceExplorerInterfaceclear in interface InstanceExplorerInterfaceclear in class InstanceExplorerAbstractpublic void addContext(XBRLContext newContext)
ContextProvidernewContext - XBRLContext to addpublic void factChangedContext(XBRLFactItem fact, XBRLContext oldContext, XBRLContext newContext)
ContextProviderfact - the factoldContext - the old contextnewContext - the new contextpublic java.util.Iterator<XBRLContext> getCompatibleContexts(XBRLFactItem fact)
ContextProviderfact - the factpublic void factChangedUnit(XBRLFactNumeric fact, XBRLUnit oldUnit, XBRLUnit newUnit)
UnitsProviderfact - the factoldUnit - the old unitnewUnit - the new unitpublic XBRLFactItem findFact(java.util.ArrayList<Member<?>> allMembers)
InstanceExplorerInterfaceallMembers - the all memberspublic java.util.Collection<ClsPackQNameContainer> getItemDimensions(XMLElementDefinition item, XBRLRoleType role)
item - the itemrole - the rolepublic Dimension<?> getDimensionFromQName(javax.xml.namespace.QName name)
How this method works:
name - the nameHasDimensionsTableHeaderItem,
HasAccessSelectedRolepublic void addFact(XBRLFact fact)
InstanceExplorerInterfacefact - the factpublic 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.
fact - the factparent - the parentpublic void addFragmentMember(XMLFragmentMember frMem, java.lang.String text)
frMem - the fr memtext - String text representation for fm or nullpublic XBRLInstance getInstance()
InstanceExplorerInterface