public class XMLTopologyBuilder extends XMLBuilder
Builder for topologies
objects.
This class is used, mainly, through methods inherited from XMLBuilder
. The class method
buildTopologyElement(org.w3c.dom.Document, io.jbotsim.core.Topology)
can be invoked to build the element that stores an entire
Topology
.
XMLBuilder.BuilderException
DEFAULT_VERSION
Constructor and Description |
---|
XMLTopologyBuilder(Topology tp)
|
Modifier and Type | Method and Description |
---|---|
static Element |
buildTopologyElement(Document doc,
Topology tp)
Method that builds the actual element (and subtrees) that stores the givent
Topology tp . |
getDocument, writeToString
public XMLTopologyBuilder(Topology tp) throws XMLBuilder.BuilderException
document
the topology
element that
stores the topology
.tp
- the Topology
for which the Document
is built.BuilderException
- is raised if an error occurs during the construction of the document.XMLBuilder.BuilderException