org.omegahat.DataStructures.Trees
Class BasicTree

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--org.omegahat.DataStructures.Trees.BasicTree
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable, Tree

public class BasicTree
extends java.util.Vector
implements Tree

See Also:
Serialized Form

Field Summary
protected  java.lang.Object data
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BasicTree(java.lang.Object entry)
           
 
Method Summary
 int getChildCount()
          Get the number of children currently contained in this node.
 java.util.List getChildren()
          Return the entire collection of children.
 java.lang.Object getData()
          Accessor for data field
 java.lang.Object setData(java.lang.Object value)
          Accessor for setting data field
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omegahat.DataStructures.Trees.Tree
add, get, remove
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

data

protected java.lang.Object data
Constructor Detail

BasicTree

public BasicTree(java.lang.Object entry)
Method Detail

getChildCount

public int getChildCount()
Description copied from interface: Tree
Get the number of children currently contained in this node.
Specified by:
getChildCount in interface Tree

getChildren

public java.util.List getChildren()
Description copied from interface: Tree
Return the entire collection of children.
Specified by:
getChildren in interface Tree

getData

public java.lang.Object getData()
Accessor for data field

setData

public java.lang.Object setData(java.lang.Object value)
Accessor for setting data field