|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of XMLBuilder in com.jamesmurty.utils |
|---|
| Methods in com.jamesmurty.utils that return XMLBuilder | |
|---|---|
XMLBuilder |
XMLBuilder.a(String name,
String value)
Synonym for attribute(String, String). |
XMLBuilder |
XMLBuilder.attr(String name,
String value)
Synonym for attribute(String, String). |
XMLBuilder |
XMLBuilder.attribute(String name,
String value)
Add a named attribute value to the element represented by this builder node, and return the node representing the element to which the attribute was added (not the new attribute node). |
XMLBuilder |
XMLBuilder.c(String comment)
Synonym for comment(String). |
XMLBuilder |
XMLBuilder.cdata(byte[] data)
Add a CDATA node with Base64-encoded byte data content to the element represented by this builder node, and return the node representing the element to which the data was added (not the new CDATA node). |
XMLBuilder |
XMLBuilder.cdata(String data)
Add a CDATA node with String content to the element represented by this builder node, and return the node representing the element to which the data was added (not the new CDATA node). |
XMLBuilder |
XMLBuilder.cmnt(String comment)
Synonym for comment(String). |
XMLBuilder |
XMLBuilder.comment(String comment)
Add a comment to the element represented by this builder node, and return the node representing the element to which the comment was added (not the new comment node). |
static XMLBuilder |
XMLBuilder.create(String name)
Construct a builder for new XML document. |
static XMLBuilder |
XMLBuilder.create(String name,
String namespaceURI)
Construct a builder for new XML document with a default namespace. |
XMLBuilder |
XMLBuilder.d(byte[] data)
Synonym for cdata(byte[]). |
XMLBuilder |
XMLBuilder.d(String data)
Synonym for cdata(String). |
XMLBuilder |
XMLBuilder.data(byte[] data)
Synonym for cdata(byte[]). |
XMLBuilder |
XMLBuilder.data(String data)
Synonym for cdata(String). |
XMLBuilder |
XMLBuilder.document()
BEWARE: The builder returned by this method respresents a Document node, not an Element node as is usually the case, so attempts to use the attribute or namespace methods on this builder will likely fail. |
XMLBuilder |
XMLBuilder.e(String name)
Synonym for element(String). |
XMLBuilder |
XMLBuilder.elem(String name)
Synonym for element(String). |
XMLBuilder |
XMLBuilder.element(String name)
Add a named XML element to the document as a child of this builder node, and return the builder node representing the new child. |
XMLBuilder |
XMLBuilder.element(String name,
String namespaceURI)
Add a named and namespaced XML element to the document as a child of this builder node, and return the builder node representing the new child. |
XMLBuilder |
XMLBuilder.elementBefore(String name)
Add a named XML element to the document as a sibling element that precedes the position of this builder node, and return the builder node representing the new child. |
XMLBuilder |
XMLBuilder.elementBefore(String name,
String namespaceURI)
Add a named and namespaced XML element to the document as a sibling element that precedes the position of this builder node, and return the builder node representing the new child. |
XMLBuilder |
XMLBuilder.i(String target,
String data)
Synonym for instruction(String, String). |
XMLBuilder |
XMLBuilder.importXMLBuilder(XMLBuilder builder)
Imports another XMLBuilder document into this document at the current position. |
XMLBuilder |
XMLBuilder.insertInstruction(String target,
String data)
Insert an instruction before the element represented by this builder node, and return the node representing that same element (not the new instruction node). |
XMLBuilder |
XMLBuilder.inst(String target,
String data)
Synonym for instruction(String, String). |
XMLBuilder |
XMLBuilder.instruction(String target,
String data)
Add an instruction to the element represented by this builder node, and return the node representing the element to which the instruction was added (not the new instruction node). |
XMLBuilder |
XMLBuilder.namespace(String namespaceURI)
Add an XML namespace attribute to this builder's element node without a prefix. |
XMLBuilder |
XMLBuilder.namespace(String prefix,
String namespaceURI)
Add an XML namespace attribute to this builder's element node. |
XMLBuilder |
XMLBuilder.ns(String namespaceURI)
Synonym for namespace(String). |
XMLBuilder |
XMLBuilder.ns(String prefix,
String namespaceURI)
Synonym for namespace(String, String). |
static XMLBuilder |
XMLBuilder.parse(InputSource inputSource)
Construct a builder from an existing XML document. |
XMLBuilder |
XMLBuilder.r(String name)
Synonym for reference(String). |
XMLBuilder |
XMLBuilder.ref(String name)
Synonym for reference(String). |
XMLBuilder |
XMLBuilder.reference(String name)
Add a reference to the element represented by this builder node, and return the node representing the element to which the reference was added (not the new reference node). |
XMLBuilder |
XMLBuilder.root()
|
XMLBuilder |
XMLBuilder.t(String value)
Synonym for text(String). |
XMLBuilder |
XMLBuilder.text(String value)
Add a text value to the element represented by this builder node, and return the node representing the element to which the text was added (not the new text node). |
XMLBuilder |
XMLBuilder.text(String value,
boolean replaceText)
Add or replace the text value of an element represented by this builder node, and return the node representing the element to which the text was added (not the new text node). |
XMLBuilder |
XMLBuilder.up()
Return the builder node representing the parent of the current node. |
XMLBuilder |
XMLBuilder.up(int steps)
Return the builder node representing the nth ancestor element of this node, or the root node if n exceeds the document's depth. |
XMLBuilder |
XMLBuilder.xpathFind(String xpath)
Find the first element in the builder's DOM matching the given XPath expression. |
XMLBuilder |
XMLBuilder.xpathFind(String xpath,
NamespaceContext nsContext)
Find the first element in the builder's DOM matching the given XPath expression, where the expression may include namespaces if a NamespaceContext is provided. |
| Methods in com.jamesmurty.utils with parameters of type XMLBuilder | |
|---|---|
XMLBuilder |
XMLBuilder.importXMLBuilder(XMLBuilder builder)
Imports another XMLBuilder document into this document at the current position. |
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||