XMLBuilder
|
addAttribute(String name, String value, boolean singleQuot)
Adds an attribute to the current element.
|
final
XMLBuilder
|
addAttribute(String name, String value)
Adds an attribute to the current element.
|
XMLBuilder
|
addAttribute(String name, int value)
A shortcut method to add integer attributes.
|
XMLBuilder
|
addAttributeCond(String name, int value)
A shortcut method to add integer attributes.
|
XMLBuilder
|
addBoolAttribute(String name, boolean value)
A shortcut method to add boolean attributes.
|
XMLBuilder
|
addBoolAttribute(String name)
A shortcut method to add boolean attributes.
|
XMLBuilder
|
addChild(String tagName)
Adds a child element to the current element.
|
XMLBuilder
|
addChildMixed(String tagName)
Adds a child element to the current element.
|
XMLBuilder
|
addChildTo(String parentName, String tagName)
Adds a child element to the specified element.
|
final
XMLBuilder
|
addRawAttribute(String name, String value)
Use this "fast" method instead of addAttribute(String, String) when you are sure
that the attribute value does not contain special characters '"' and '&'.
|
XMLBuilder
|
addRawAttribute(String name, String value, boolean singleQuot)
Use this "fast" method instead of addAttribute(String, String, boolean) when you are sure
that the attribute value does not contain special character '&' and single
or double quotes depending on the singleCode value.
|
XMLBuilder
|
addRawText(String text)
Use this "fast" method instead of addText when you are sure
that the text does not contain special characters '<', '>', and '&'.
|
XMLBuilder
|
addRawTextMixed(String text)
Use this "fast" method instead of addText when you are sure
that the text does not contain special characters '<', '>', and '&'.
|
XMLBuilder
|
addRawXML(String text)
Use this method to append arbitrary text to the buffer.
|
XMLBuilder
|
addRawXML(StringBuffer text)
|
XMLBuilder
|
addRequiredBoolAttribute(String name, boolean value)
A shortcut method to add a required boolean attributes.
|
XMLBuilder
|
addSibling(String tagName)
Adds a sibling element to the current element.
|
XMLBuilder
|
addSiblingTo(String name, String tagName)
Adds a sibling element to the specified element.
|
XMLBuilder
|
addText(String text)
Adds text to the current element.
|
XMLBuilder
|
addTextMixed(String text)
Adds text to the current element.
|
XMLBuilder
|
addValueTag(String tag, float value)
|
XMLBuilder
|
addValueTag(String tag, boolean value)
|
XMLBuilder
|
addValueTag(String tag, int value)
Adds an integer element of format value
|
XMLBuilder
|
addValueTag(String tag, String value)
Adds element of format value
|
XMLBuilder
|
append(XMLBuilder builder)
|
XMLBuilder
|
closeAll()
Closes all elements in the stack.
|
XMLBuilder
|
closeElement()
Closes the current element (adds element closing tag) and removes it from
the stack.
|
XMLBuilder
|
closeElements(String name, boolean inclusive)
Closes all elements in the stack up to the specified element.
|
void
|
closeTag()
|
StringBuffer
|
getBuffer()
Checks if XML building is complete, then returns the XML string buffer.
|
StringBuffer
|
getRawBuffer()
Returns the XML string buffer in the current state.
|
StringBuffer
|
getRawBufferInternal()
Check to see if the internal buffer has been allocated.
|
void
|
init(String _buf)
Resets the builder and copies the _buf content in the builder's buffer
|
void
|
init(StringBuffer _buf)
|
boolean
|
isEncode()
Returns true if encode flag is true
|
void
|
printBuffer()
Prints current buffer context (for debugging purposes).
|
void
|
reset()
Cleanups the buffer and the stack so the builder can be reused for
building another XML.
|
String
|
toString()
Returns the string representation of this object.
|