Package evo.search.io.entities
Interface XmlEntity<T>
-
- Type Parameters:
T
- return type of the parsedElement
- All Known Implementing Classes:
Configuration
,DiscreteChromosome
,DiscreteGene
,IndexEntry
,Project
,Workspace
public interface XmlEntity<T>
Entity interface for objects which can be parsed from and converted to xml.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
parse(org.dom4j.Element element)
Parse aElement
and return the entity.org.dom4j.Element
serialize()
Serialize the entity into aElement
.
-
-
-
Method Detail
-
serialize
org.dom4j.Element serialize()
Serialize the entity into aElement
.- Returns:
- serialized document
-
parse
T parse(org.dom4j.Element element)
Parse aElement
and return the entity.- Parameters:
element
- element to parse- Returns:
- parsed entity
-
-