theseus.api
Class RelationList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--theseus.api.RelationList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class RelationList
extends java.util.ArrayList

RelationList contains a list of tuples.

See Also:
Serialized Form

Constructor Summary
RelationList()
          Constructs new list.
RelationList(java.util.Collection a_c)
          Constructs new list from existing collection.
 
Method Summary
 boolean addRelation(theseus.api.Relation a_rel)
          Add relation to the list.
 theseus.api.Relation getRelation(int a_pos)
          Get relation from the list.
static theseus.api.RelationList load(java.io.Reader a_rdr)
           
 theseus.api.Relation[] toRelationArray()
           
 java.lang.String toString()
          Returns string form of relation.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

RelationList

public RelationList()
Constructs new list.


RelationList

public RelationList(java.util.Collection a_c)
Constructs new list from existing collection.

Method Detail

addRelation

public boolean addRelation(theseus.api.Relation a_rel)
Add relation to the list.


getRelation

public theseus.api.Relation getRelation(int a_pos)
Get relation from the list.


toString

public java.lang.String toString()
Returns string form of relation.

Overrides:
toString in class java.util.AbstractCollection

load

public static theseus.api.RelationList load(java.io.Reader a_rdr)
                                     throws theseus.api.DataImportException
theseus.api.DataImportException

toRelationArray

public theseus.api.Relation[] toRelationArray()