com.ihr.xbrl.dts
Class FactsColumn

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<FactUseItem,XBRLFactItem>
          extended by com.ihr.xbrl.dts.FactsColumn
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<FactUseItem,XBRLFactItem>

public class FactsColumn
extends java.util.Hashtable<FactUseItem,XBRLFactItem>

This is a class representing all facts in a logical column

Author:
Ignacio
See Also:
Serialized Form

Constructor Summary
FactsColumn(ColumnPeriod period)
           
 
Method Summary
 void addContext(XBRLContext ctx, int use)
          Adds a context to this FactsColumn.
 void delContext(XBRLContext ctx)
           
 XBRLFactItem get(java.lang.Object key)
           
 java.util.Collection<XBRLContext> getContexts(boolean bIncludeEmpty)
           
 XBRLContext getContexts(XBRLItem.PeriodType periodType, int use)
          Returns the most used XBRLContext object in this column filtered by the period type and FactUse
 ColumnPeriod getPeriod()
           
 FactUseItem getRowKey(XBRLFactItem fact)
          For a fact item added to this FactsColumn this method returns the assigned row number
 int getRowNumber(XBRLFactItem fact)
          For a fact item added to this FactsColumn this method returns the assigned row number
 XBRLFactItem put(FactUseItem key, XBRLFactItem value)
           
 XBRLFactItem remove(java.lang.Object key)
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactsColumn

public FactsColumn(ColumnPeriod period)
Method Detail

getPeriod

public ColumnPeriod getPeriod()

getContexts

public java.util.Collection<XBRLContext> getContexts(boolean bIncludeEmpty)

getContexts

public XBRLContext getContexts(XBRLItem.PeriodType periodType,
                               int use)
Returns the most used XBRLContext object in this column filtered by the period type and FactUse

Parameters:
periodType - int XBRLItem.DURATION or XBRLItem.INSTANT
use - constant indicating beginning of period, end of period or normal usage.
cp - ColumnPeriod to match for duration period types
Returns:
XBRLContext

put

public XBRLFactItem put(FactUseItem key,
                        XBRLFactItem value)
Specified by:
put in interface java.util.Map<FactUseItem,XBRLFactItem>
Overrides:
put in class java.util.Hashtable<FactUseItem,XBRLFactItem>

getRowNumber

public int getRowNumber(XBRLFactItem fact)
For a fact item added to this FactsColumn this method returns the assigned row number

Parameters:
fact -
Returns:

getRowKey

public FactUseItem getRowKey(XBRLFactItem fact)
For a fact item added to this FactsColumn this method returns the assigned row number

Parameters:
fact -
Returns:

addContext

public void addContext(XBRLContext ctx,
                       int use)
Adds a context to this FactsColumn. Normally, when a fact item is associated with the FactColumn the context is added to the FactsColumn automatically. This method is for the special cases where a context is created before an item is created.

Parameters:
ctx -

delContext

public void delContext(XBRLContext ctx)
Parameters:
ctx -

get

public XBRLFactItem get(java.lang.Object key)
Specified by:
get in interface java.util.Map<FactUseItem,XBRLFactItem>
Overrides:
get in class java.util.Hashtable<FactUseItem,XBRLFactItem>

remove

public XBRLFactItem remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<FactUseItem,XBRLFactItem>
Overrides:
remove in class java.util.Hashtable<FactUseItem,XBRLFactItem>


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa