org.jgap.xml
Class XMLDocumentBuilder

java.lang.Object
  extended byorg.jgap.data.DocumentBuilderBase
      extended byorg.jgap.xml.XMLDocumentBuilder

public class XMLDocumentBuilder
extends DocumentBuilderBase

Class building an XML file. Can be used to persiste objects like Genotype, Chromosome or Gene (or a list of them) to an XML file.

Since:
2.0
Author:
Klaus Meffert

Constructor Summary
XMLDocumentBuilder()
           
 
Method Summary
 java.lang.Object buildDocument(IDataCreators a_document)
          Convenience method to build an XML document from a generic input structure (of type IDataCreators)
 
Methods inherited from class org.jgap.data.DocumentBuilderBase
buildDocument
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDocumentBuilder

public XMLDocumentBuilder()
Method Detail

buildDocument

public java.lang.Object buildDocument(IDataCreators a_document)
                               throws java.lang.Exception
Convenience method to build an XML document from a generic input structure (of type IDataCreators)

Parameters:
a_document - IDataCreators the input structure holding the data to be represented as XML document
Returns:
Object the XML document
Throws:
java.lang.Exception
Since:
2.0