public abstract class InstanceExplorerAbstract extends java.lang.Object implements InstanceExplorerInterface, InstanceExplorerListener
Modifier and Type | Field and Description |
---|---|
static int |
ACUM_Q1Q3
The Constant ACUM_Q1Q3.
|
static int |
ALL
The Constant ALL.
|
static int |
DAYS
The Constant DAYS.
|
static int |
FREE
The Constant FOREVER.
|
static int |
HALVES
The Constant HALVES.
|
static int |
HOURS
The Constant HOURS.
|
static int |
INSTANT
The Constant INSTANT.
|
static int |
MINUTES
The Constant MINUTES.
|
static int |
MONTHS
The Constant MONTHS.
|
static int |
NONSTANDARD
The Constant NONSTANDARD.
|
static com.ihr.xbrl.dts.InstanceExplorerAbstract.ClsNotesOrderer |
notesOrderer
The notes orderer.
|
static int |
QUARTERS
The Constant QUARTERS (three months: trimester).
|
static int |
QUARTERS4
The Constant QUARTERS4 (four months).
|
static java.lang.String |
sAcumQ1Q3
The Constant sAcumQ1Q3.
|
static java.lang.String |
sDays
The Constant sDays.
|
static int |
SECONDS
The Constant SECONDS.
|
static java.lang.String |
sForever
The Constant sForever.
|
static java.lang.String |
sHalves
The Constant sHalves.
|
static java.lang.String |
sHours
The Constant sHours.
|
static java.lang.String |
sMinutes
The Constant sMinutes.
|
static java.lang.String |
sMonths
The Constant sMonths.
|
static java.lang.String |
sNonstandard
The Constant sNonstandard.
|
static java.lang.String |
sQuarters
The Constant sQuarters.
|
static java.lang.String |
sSeconds
The Constant sSeconds.
|
static java.lang.String |
sWeeks
The Constant sWeeks.
|
static java.lang.String |
sYears
The Constant sYears.
|
static javax.xml.namespace.QName |
unknownUnit
The Constant unknownUnit.
|
static int |
WEEKS
The Constant WEEKS.
|
static int |
YEARS
The Constant YEARS.
|
Modifier and Type | Method and Description |
---|---|
static void |
addInstanceExplorerListener(InstanceExplorerListener l)
Adds the instance explorer listener.
|
void |
clear()
Clear.
|
java.util.Iterator<CompanyKey> |
getCompanyKeys()
Access to an iterator over the keys for company data.
|
VNotes |
getFactNotes(XBRLFact fact)
Gets the fact notes.
|
static InstanceExplorerListener[] |
getInstanceExplorerListeners()
Gets the instance explorer listeners.
|
int |
getNumberOfCompanies()
Access to the number of different companies this instance have stored information .
|
static int |
getNumTokens()
Returns the number of tokens that represents column types by
the column range.
|
static java.lang.String |
getStringOfDateStep(java.util.GregorianCalendar dateStart,
java.util.GregorianCalendar dateEnd,
int dateStep)
Gets the string representation of two dates and a standard amount of time indicated
by the dateStep parameter.
|
static java.lang.String |
getStringOfPeriod(XBRLPeriod period)
Gets the string of period.
|
static java.lang.String |
getStringOfPeriod(XBRLPeriod period,
int use)
Gets the string of period.
|
XBRLUnit |
getSuggestedUnit(CompanyKey ck,
XBRLItem itm)
Returns a suggested unit for a numeric concept definition.
|
java.util.Iterator<XBRLUnit> |
getSuggestedUnits(XBRLItem itm)
Implementation of the UnitsProvider interface
The algorithm considers other units in this report and put first the
"suggested unit" for this fact item.
|
java.util.Iterator<VNotes> |
getVNotes()
Gets the v notes.
|
boolean |
hasDataForCompany(CompanyKey ck)
Checks for data for company.
|
static int |
indexOfDateStepCode(int dateStep)
Return the index of the dateStep code in the internally ordered array of dateStep codes.
|
void |
instanceEvent(InstanceExplorerEvent e)
Instance event.
|
static java.lang.String |
intTokenToString(int dateStep)
Converts an integer value into the string representation
See:
intTokenToString(int) for more information. |
static void |
removeInstanceExplorerListener(InstanceExplorerListener l)
Removes the instance explorer listener.
|
static void |
sendEvent(InstanceExplorerEvent event)
Send event.
|
void |
setSuggestedUnit(XBRLItem item,
CompanyKey ck,
XBRLUnit unit)
Sets the suggested unit.
|
static int |
stepsCodeForIndex(int index)
Access to the dateStep code corresponding to the index in the sequence.
|
static int |
stringTokenToInt(java.lang.String dateStep)
Transform a string representation of a token for a period into
the corresponding integer value.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFact, delFact, findFact, findFact, getInstance, setInstance, setNewColumns
addContext, factChangedContext, getCompatibleContexts
factChangedUnit
public static final int FREE
public static final int YEARS
public static final int HALVES
public static final int QUARTERS
public static final int QUARTERS4
public static final int MONTHS
public static final int WEEKS
public static final int DAYS
public static final int HOURS
public static final int MINUTES
public static final int SECONDS
public static final int NONSTANDARD
public static final int INSTANT
public static final int ALL
public static final int ACUM_Q1Q3
public static final java.lang.String sForever
public static final java.lang.String sYears
public static final java.lang.String sAcumQ1Q3
public static final java.lang.String sHalves
public static final java.lang.String sQuarters
public static final java.lang.String sMonths
public static final java.lang.String sWeeks
public static final java.lang.String sDays
public static final java.lang.String sHours
public static final java.lang.String sMinutes
public static final java.lang.String sSeconds
public static final java.lang.String sNonstandard
public static final javax.xml.namespace.QName unknownUnit
public static com.ihr.xbrl.dts.InstanceExplorerAbstract.ClsNotesOrderer notesOrderer
public void instanceEvent(InstanceExplorerEvent e)
instanceEvent
in interface InstanceExplorerListener
e
- the epublic static int indexOfDateStepCode(int dateStep)
dateStep
- the date steppublic static int stepsCodeForIndex(int index)
index
- the indexpublic static int stringTokenToInt(java.lang.String dateStep)
The integer value is an index over a tale of dateSteps ordered by duration.
dateStep
- String like "years", "halves", "quarters", "months", "weeks", "days", "hours", "minutes", "seconds"public static java.lang.String intTokenToString(int dateStep)
intTokenToString(int)
for more information.dateStep
- integerpublic static int getNumTokens()
public int getNumberOfCompanies()
public java.util.Iterator<CompanyKey> getCompanyKeys()
getCompanyKeys
in interface InstanceExplorerInterface
public static java.lang.String getStringOfPeriod(XBRLPeriod period, int use)
period
- the perioduse
- FactUseItem.BEGINING, FactUseItem.END or FactUse.NORMALpublic static java.lang.String getStringOfPeriod(XBRLPeriod period)
period
- the periodpublic static java.lang.String getStringOfDateStep(java.util.GregorianCalendar dateStart, java.util.GregorianCalendar dateEnd, int dateStep)
dateStart
- start date o the perioddateEnd
- end date of the perioddateStep
- the date steppublic static void addInstanceExplorerListener(InstanceExplorerListener l)
l
- the lpublic static void removeInstanceExplorerListener(InstanceExplorerListener l)
l
- the lpublic static InstanceExplorerListener[] getInstanceExplorerListeners()
public static void sendEvent(InstanceExplorerEvent event)
event
- the eventpublic void clear()
clear
in interface InstanceExplorerInterface
public java.util.Iterator<VNotes> getVNotes()
public VNotes getFactNotes(XBRLFact fact)
fact
- the factpublic java.util.Iterator<XBRLUnit> getSuggestedUnits(XBRLItem itm)
getSuggestedUnits
in interface UnitsProvider
itm
- the itmpublic XBRLUnit getSuggestedUnit(CompanyKey ck, XBRLItem itm)
Returns a suggested unit for a numeric concept definition. The answer will be based on existing information in the instance. If the instance already has a fact item for the same concept definition the same unit will be suggested.
If there are no results like this then the Local Country ISO is returned for monetary item types, xbrli:pure is returned for pure item types and xbrli:shares is returned for shares item types. In any other case the QName {http://www.reportingstandard.com/userDefinedUnits}unknownUnit is returned
getSuggestedUnit
in interface InstanceExplorerInterface
ck
- the ckitm
- the itmpublic void setSuggestedUnit(XBRLItem item, CompanyKey ck, XBRLUnit unit)
item
- the itemck
- the ckunit
- the unitpublic boolean hasDataForCompany(CompanyKey ck)
hasDataForCompany
in interface InstanceExplorerInterface
ck
- the ckCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa