public abstract class XMLBuilder
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected Element |
prototype
Prototype element for creating the tree.
|
protected Element |
root
The root element of the parsed XML tree.
|
protected java.util.Stack<Element> |
stack
This stack contains the current element and its parents.
|
Constructor and Description |
---|
XMLBuilder()
Creates the builder.
|
XMLBuilder(Element prototype)
Creates the builder.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Cleans up the object when it's destroyed.
|
abstract java.lang.Object |
getResult()
Returns the result of the building process.
|
protected java.util.Stack<Element> stack
protected Element root
protected Element prototype
public XMLBuilder()
public XMLBuilder(Element prototype)
prototype
- the prototype to use when building the tree.