public class DataElementBuilder extends Object
Constructor and Description |
---|
DataElementBuilder()
Creates a new data element.
|
Modifier and Type | Method and Description |
---|---|
void |
addToDataElement(Element subElement)
Adds an element to the data section.
|
Element |
addToDataElement(String elementName)
Adds an element to the data section.
|
Element |
createElement(String elementName)
Creates a new element intented to be included in the data section.
|
Element |
getDataElement()
Gets the data element.
|
Document |
getDocument()
Gets the document used to create the data section.
|
String |
toString()
Creates the String representation of the data section.
|
public Element createElement(String elementName)
elementName
- the name of the element, cannot be null
.null
.public void addToDataElement(Element subElement)
subElement
- the element to add, cannot be null
.public Element addToDataElement(String elementName)
elementName
- the name of the element to add, cannot be null
.null
public Document getDocument()
null
.public Element getDataElement()
null
.See http://www.xins.org/.