com.ihr.xbrl.om.instance
Class XBRLFactsContainer

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<XBRLFact>
              extended by com.ihr.xbrl.om.instance.XBRLFactsContainer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<XBRLFact>, java.util.Collection<XBRLFact>, java.util.List<XBRLFact>, java.util.RandomAccess

public class XBRLFactsContainer
extends java.util.Vector<XBRLFact>

a tuple and an instance document are derived classes of this class

Author:
Ignacio
See Also:
Serialized Form

Constructor Summary
XBRLFactsContainer(XBRLFactsList parent)
          Creates a facts container and sets the parent doc to the parent Instance
 
Method Summary
 void add(int index, XBRLFact fact)
           
 boolean add(XBRLFact fact)
           
 void clear()
           
 void clearFacts()
          The clear method removes all facts form the container and also sets the parent to null.
 boolean equals(java.lang.Object obj)
           
 DTSContainer getContainer()
           
 XBRLInstance getInstance()
           
 java.util.Iterator<java.util.Vector<XBRLFactItem>> getItems()
           
 java.util.Iterator<XBRLFactItem> getItems(XBRLItem itemFrom)
           
 java.util.Iterator<XBRLFactItem> getItemsSg(XBRLItem itemFrom)
           
 int getNumberOfTuples()
           
 XBRLFactsList getParent()
           
 java.util.Iterator<java.util.Vector<XBRLFactTuple>> getTuples()
           
 java.util.Iterator<XBRLFactTuple> getTuples(XBRLTuple tupleFrom)
           
 java.util.Iterator<XBRLFactTuple> getTuplesSg(XBRLTuple tupleFrom)
           
 int hashCode()
           
 java.util.Iterator<XBRLFact> iterator()
           
 boolean remove(XBRLFact fact)
           
 void setParent(XBRLFactsList parent)
           
 
Methods inherited from class java.util.Vector
addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
listIterator, listIterator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
listIterator, listIterator
 

Constructor Detail

XBRLFactsContainer

public XBRLFactsContainer(XBRLFactsList parent)
Creates a facts container and sets the parent doc to the parent Instance

Parameters:
parent - the parent instance
Method Detail

getParent

public XBRLFactsList getParent()

setParent

public void setParent(XBRLFactsList parent)

add

public boolean add(XBRLFact fact)
Specified by:
add in interface java.util.Collection<XBRLFact>
Specified by:
add in interface java.util.List<XBRLFact>
Overrides:
add in class java.util.Vector<XBRLFact>

add

public void add(int index,
                XBRLFact fact)
Specified by:
add in interface java.util.List<XBRLFact>
Overrides:
add in class java.util.Vector<XBRLFact>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<XBRLFact>
Specified by:
clear in interface java.util.List<XBRLFact>
Overrides:
clear in class java.util.Vector<XBRLFact>

remove

public boolean remove(XBRLFact fact)

getInstance

public XBRLInstance getInstance()

iterator

public java.util.Iterator<XBRLFact> iterator()
Specified by:
iterator in interface java.lang.Iterable<XBRLFact>
Specified by:
iterator in interface java.util.Collection<XBRLFact>
Specified by:
iterator in interface java.util.List<XBRLFact>
Overrides:
iterator in class java.util.AbstractList<XBRLFact>

getItems

public java.util.Iterator<java.util.Vector<XBRLFactItem>> getItems()

getItems

public java.util.Iterator<XBRLFactItem> getItems(XBRLItem itemFrom)

getItemsSg

public java.util.Iterator<XBRLFactItem> getItemsSg(XBRLItem itemFrom)
Parameters:
itemFrom -
Returns:

getTuplesSg

public java.util.Iterator<XBRLFactTuple> getTuplesSg(XBRLTuple tupleFrom)
Parameters:
tupleFrom -
Returns:

getTuples

public java.util.Iterator<java.util.Vector<XBRLFactTuple>> getTuples()

getTuples

public java.util.Iterator<XBRLFactTuple> getTuples(XBRLTuple tupleFrom)

getNumberOfTuples

public int getNumberOfTuples()
Returns:

getContainer

public DTSContainer getContainer()

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<XBRLFact>
Specified by:
hashCode in interface java.util.List<XBRLFact>
Overrides:
hashCode in class java.util.Vector<XBRLFact>

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Collection<XBRLFact>
Specified by:
equals in interface java.util.List<XBRLFact>
Overrides:
equals in class java.util.Vector<XBRLFact>

clearFacts

public void clearFacts()
The clear method removes all facts form the container and also sets the parent to null. This call only removes all facts but does not sets the parent to null.

Since:
2.7.4


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