1 10 package org.jgap.data; 11 12 19 public class DataElementsDocument 20 implements IDataCreators { 21 22 private final static String CVS_REVISION = "$Revision: 1.5 $"; 23 24 private IDataElementList m_tree; 25 26 27 public void setTree(final IDataElementList a_tree) { 28 m_tree = a_tree; 29 } 30 31 37 public IDataElementList getTree() { 38 return m_tree; 39 } 40 41 public DataElementsDocument() 42 throws Exception { 43 m_tree = new DataElementList(); 44 } 45 46 public IDataCreators newDocument() 47 throws Exception { 48 return new DataElementsDocument(); 49 } 50 51 59 public void appendChild(final IDataElement a_newChild) 60 throws Exception { 61 m_tree.add(a_newChild); 62 } 63 } 64 | Popular Tags |