org.jgap.data
Class DataElementsDocument

java.lang.Object
  extended byorg.jgap.data.DataElementsDocument
All Implemented Interfaces:
IDataCreators

public class DataElementsDocument
extends java.lang.Object
implements IDataCreators

The IDataCreators interface represents an entity comparable to org.w3c.dom.Document

Since:
2.0
Author:
Klaus Meffert

Constructor Summary
DataElementsDocument()
           
 
Method Summary
 void appendChild(IDataElement newChild)
          Appends a child element to the tree
 IDataElementList getTree()
           
 IDataCreators newDocument()
           
 void setTree(IDataElementList a_tree)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataElementsDocument

public DataElementsDocument()
                     throws java.lang.Exception
Method Detail

setTree

public void setTree(IDataElementList a_tree)
Specified by:
setTree in interface IDataCreators

getTree

public IDataElementList getTree()
Specified by:
getTree in interface IDataCreators
Returns:
the tree (of elements) held by this class
Since:
2.0

newDocument

public IDataCreators newDocument()
                          throws java.lang.Exception
Specified by:
newDocument in interface IDataCreators
Throws:
java.lang.Exception

appendChild

public void appendChild(IDataElement newChild)
                 throws java.lang.Exception
Appends a child element to the tree

Specified by:
appendChild in interface IDataCreators
Parameters:
newChild - the child to be added to the tree
Throws:
java.lang.Exception
Since:
2.0