Package VASSAL.build
Class Builder
java.lang.Object
VASSAL.build.Builder
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
General building algorithm.static Buildable
static Buildable
Create an instance of a class from an XML element and build it.static Document
Read an XML document from an InputStreamstatic Document
Create a new XML documentstatic String
static void
static String
static void
writeDocument
(Document doc, Writer writer) Write an XML document to a Writer
-
Method Details
-
build
General building algorithm. For each sub-element of the build Element, this method creates an instance of the class (which must implement Buildable) whose name matches the XML element tag name, builds that instance with the sub-element, and adds it to the parent Buildable This algorithm calls a component'sBuildable.build(org.w3c.dom.Element)
method before calling itsBuildable.addTo(VASSAL.build.Buildable)
method- Parameters:
parent
- the parent Buildable instance
-
create
- Throws:
IllegalBuildException
-
create
Create an instance of a class from an XML element and build it. The.class
file for the named class may be either in the System's classpath or else within theDataArchive
of theGameModule
.- Throws:
IllegalBuildException
- if something goes wrong when loading the class or creating an instance of it
-
createDocument
Read an XML document from an InputStream- Returns:
- the XML document
- Throws:
IOException
-
createNewDocument
-
writeDocument
Write an XML document to a Writer- Parameters:
doc
- Document to be writtenwriter
- target XML Writer- Throws:
IOException
-
getText
-
toString
-
main
-