org.jgap.data
Class DataElementsDocument
java.lang.Object
org.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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataElementsDocument
public DataElementsDocument()
throws java.lang.Exception
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