public abstract class InstanceExplorerAbstract extends java.lang.Object implements InstanceExplorerInterface, InstanceExplorerListener
| Modifier and Type | Field and Description | 
|---|---|
| static int | ACUM_Q1Q3The Constant ACUM_Q1Q3. | 
| static int | ALLThe Constant ALL. | 
| static int | DAYSThe Constant DAYS. | 
| static int | FREEThe Constant FOREVER. | 
| static int | HALVESThe Constant HALVES. | 
| static int | HOURSThe Constant HOURS. | 
| static int | INSTANTThe Constant INSTANT. | 
| static int | MINUTESThe Constant MINUTES. | 
| static int | MONTHSThe Constant MONTHS. | 
| static int | NONSTANDARDThe Constant NONSTANDARD. | 
| static com.ihr.xbrl.dts.InstanceExplorerAbstract.ClsNotesOrderer | notesOrdererThe notes orderer. | 
| static int | QUARTERSThe Constant QUARTERS (three months: trimester). | 
| static int | QUARTERS4The Constant QUARTERS4 (four months). | 
| static java.lang.String | sAcumQ1Q3The Constant sAcumQ1Q3. | 
| static java.lang.String | sDaysThe Constant sDays. | 
| static int | SECONDSThe Constant SECONDS. | 
| static java.lang.String | sForeverThe Constant sForever. | 
| static java.lang.String | sHalvesThe Constant sHalves. | 
| static java.lang.String | sHoursThe Constant sHours. | 
| static java.lang.String | sMinutesThe Constant sMinutes. | 
| static java.lang.String | sMonthsThe Constant sMonths. | 
| static java.lang.String | sNonstandardThe Constant sNonstandard. | 
| static java.lang.String | sQuartersThe Constant sQuarters. | 
| static java.lang.String | sSecondsThe Constant sSeconds. | 
| static java.lang.String | sWeeksThe Constant sWeeks. | 
| static java.lang.String | sYearsThe Constant sYears. | 
| static javax.xml.namespace.QName | unknownUnitThe Constant unknownUnit. | 
| static int | WEEKSThe Constant WEEKS. | 
| static int | YEARSThe 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, waitaddFact, delFact, findFact, findFact, getInstance, setInstance, setNewColumnsaddContext, factChangedContext, getCompatibleContextsfactChangedUnitpublic 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 InstanceExplorerListenere - 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 InstanceExplorerInterfacepublic 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 InstanceExplorerInterfacepublic java.util.Iterator<VNotes> getVNotes()
public VNotes getFactNotes(XBRLFact fact)
fact - the factpublic java.util.Iterator<XBRLUnit> getSuggestedUnits(XBRLItem itm)
getSuggestedUnits in interface UnitsProvideritm - 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 InstanceExplorerInterfaceck - 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 InstanceExplorerInterfaceck - the ckCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa