| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Visitor
is the visitor in the Visitor Pattern visitor)Implements org.
|
| public void | add(Attribute
is the attribute to be added attribute)Implements org. Attribute to this element.
|
| public void | add(CDATA
is the CDATA to be added cdata)Implements org. CDATA to this element.
|
| public void | add(Entity
is the entity to be added entity)Implements org. Entity to this element.
|
| public void | add(Text
is the text to be added text)Implements org. Text to this element.
|
| public void | add(Namespace
is the namespace to be added namespace)Implements org. Namespace to this element.
|
| public void | add(Node
is the given node to add node)Implements org. Node or throws IllegalAddException
if the given node is not of a valid type.
|
| public void | add(Comment
is the comment to be added comment)Implements org. Comment to this branch.
|
| public void | add(Element
is the element to be added element)Implements org. Element to this branch.
|
| public void | add(ProcessingInstruction
is the processing instruction to be added processingInstruction)Implements org. ProcessingInstruction to this branch.
|
| public Element | addAttribute(String
is the name of the attribute whose value is to be added or
updated attrName, String is the attribute's value text)Implements org. |
| public Element | addAttribute(QName
is the fully qualified name of the attribute whose value is to
be added or updated attrName, String is the attribute's value text)Implements org. |
| public Element | addCDATA(String
is the text for the text)CDATA node.Implements org. CDATA node with the given text to this element.
|
| public Element | addComment(String
is the text for the text)Comment node.Implements org. Comment node with the given text to this
element.
|
| public Element | addElement(String
is the name for the name)Element node.Implements org. Element node with the given name to this branch
and returns a reference to the new node.
|
| public Element | addElement(QName
is the qualified name for the qName)Element node.Implements org. Element node with the given QNameto
this branch and returns a reference to the new node.
|
| public Element | addElement(String
is the fully qualified name of the Element name, String is the URI of the namespace to use text)Implements org. Element node with the given qualified name and
namespace URI to this branch and returns a reference to the new node.
|
| public Element | addEntity(String
is the name for the name, String Entity node.is the text for the text)Entity node.Implements org. Entity node with the given name and text to
this element and returns a reference to the new node.
|
| public List | additionalNamespaces()
Implements org. getNamespace()method.
|
| public Element | addNamespace(String
is the prefix to use, which should not be null or blank prefix, String is the namespace URI uri)Implements org. |
| public Element | addProcessingInstruction(String
is the target of the processing instruction target, String is the textual data (key/value pairs) of the processing
instruction text)Implements org. |
| public Element | addProcessingInstruction(String
is the target of the processing instruction target, Map<K, V> is a Map of the key / value pairs of the processing
instruction data)Implements org. |
| public Element | addText(String
is the text for the text)Text node.Implements org. Text node with the given text to this element.
|
| public void | appendAttributes(Element
is the element whose attributes will be added to me. element)Implements org. |
| public void | appendContent(Branch
is the branch whose content will be added to me. branch)Implements org. |
| public String | |
| public Node | asXPathResult(Element
DOCUMENT ME! element)Implements org.
|
| public Attribute | attribute(int
DOCUMENT ME! i)Implements org. |
| public Attribute | attribute(String
DOCUMENT ME! name)Implements org. |
| public Attribute | attribute(QName
is the fully qualified name qName)Implements org. |
| public int | |
| public Iterator | |
| public List | attributes()
Implements org. Attributeinstances this element contains as a backed
Listso that the attributes may be modified directly using the
Listinterface.
|
| public String | attributeValue(String
is the name of the attribute value to be returned name)Implements org. |
| public String | attributeValue(String
is the name of the attribute value to be returned name, String is the default value to be returned if the attribute has no
value defined. defaultValue)Implements org. |
| public String | attributeValue(QName
is the fully qualified name qName)Implements org. |
| public String | attributeValue(QName
is the fully qualified name qName, String is the default value to be returned if the attribute has no
value defined. defaultValue)Implements org. |
| public void | clearContent()
Implements org. Node
instances this branch may contain.
|
| public Object | clone()
Overrides java. Implements org.
|
| public List | content()
Implements org. Listso that
the content of this branch may be modified directly using the
Listinterface.
|
| public Element | createCopy()
Implements org. |
| public Element | createCopy(String
DOCUMENT ME! name)Implements org. |
| public Element | createCopy(QName
DOCUMENT ME! qName)Implements org. |
| public XPath | createXPath(String
is the XPath expression to be evaluated xpath)Implements org.
|
| public List | declaredNamespaces()
Implements org. |
| public Node | |
| public Element | element(String
DOCUMENT ME! name)Implements org. |
| public Element | element(QName
is the fully qualified name to search for qName)Implements org. |
| public Element | elementByID(String
DOCUMENT ME! id)Implements org. |
| public Iterator | elementIterator()
Implements org. |
| public Iterator | elementIterator(String
DOCUMENT ME! name)Implements org. |
| public Iterator | elementIterator(QName
is the fully qualified name to search for qName)Implements org. |
| public List | |
| public List | elements(String
DOCUMENT ME! name)Implements org. |
| public List | elements(QName
is the fully qualified name to search for qName)Implements org. |
| public String | |
| public String | |
| public String | |
| public String | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public Object | getData()
Implements org. getText
|
| public Document | getDocument()
Implements org.
|
| public Element | |
| public String | |
| public Namespace | getNamespace()
Implements org. Namespace of this element if one exists
otherwise Namespace.NO_NAMESPACE is returned.
|
| public Namespace | getNamespaceForPrefix(String
DOCUMENT ME! s)Implements org. Namespace which is mapped to the given prefix
or null if it could not be found.
|
| public Namespace | getNamespaceForURI(String
DOCUMENT ME! s)Implements org. Namespace which is mapped to the given URI or
null if it could not be found.
|
| public String | getNamespacePrefix()
Implements org. String is returned.
|
| public List | getNamespacesForURI(String
DOCUMENT ME! s)Implements org. |
| public String | getNamespaceURI()
Implements org. String is returned.
|
| public short | |
| public String | |
| public Element | getParent()
Implements org.
|
| public String | getPath()
Implements org. Returns the XPath expression which will return a node set containing the given node such as /a/b/@c. |
| public String | getPath(Element
is the parent context from which the relative path should
start. If the context is null or the context is not an
ancestor of this node then the path will be absolute and start
from the document and so begin with the '/' character. element)Implements org. |
| public QName | getQName()
Implements org. QName of this element which represents the
local name, the qualified name and the Namespace.
|
| public QName | getQName(String
DOCUMENT ME! s)Implements org. QName for the given qualified name, using the
namespace URI in scope for the given prefix of the qualified name or the
default namespace if the qualified name has no prefix.
|
| public String | getQualifiedName()
Implements org. |
| public String | getStringValue()
Implements org. |
| public String | getText()
Implements org. |
| public String | |
| public String | getUniquePath()
Implements org. Returns the XPath expression which will return a nodeset of one node which is the current node. |
| public String | getUniquePath(Element
is the parent context from which the path should start. If the
context is null or the context is not an ancestor of this node
then the path will start from the document and so begin with
the '/' character. element)Implements org. Returns the relative unique XPath expression from the given context which will return a nodeset of one node which is the current node. |
| public Node | getXPathResult(int
DOCUMENT ME! i)Implements org. |
| public boolean | hasContent()
Implements org.
|
| public int | |
| public boolean | hasMixedContent()
Implements org. Element has mixed content.
|
| public int | indexOf(Node
the content child node to find. node)Implements org. |
| public boolean | isReadOnly()
Implements org.
|
| public boolean | |
| public boolean | isTextOnly()
Implements org. Element has text only content.
|
| public boolean | matches(String
is an XPath expression xpath)Implements org.
|
| public Node | node(int
the index of the node to return. i)Implements org. Node at the specified index position.
|
| public int | nodeCount()
Implements org. Node instances that this branch
contains.
|
| public Iterator | nodeIterator()
Implements org. |
| public void | normalize()
Implements org. Text nodes in the full depth of the sub-tree
underneath this Node, including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments, processing
instructions, CDATA sections, and entity references) separates
Text nodes, i.e., there are neither adjacent
Text nodes nor empty Text nodes.
|
| public Number | numberValueOf(String
is the XPath expression to be evaluated xpath)Implements org.
|
| public ProcessingInstruction | processingInstruction(String
DOCUMENT ME! name)Implements org. |
| public List | processingInstructions()
Implements org. |
| public List | processingInstructions(String
DOCUMENT ME! name)Implements org. |
| public boolean | remove(Attribute
is the attribute to be removed attribute)Implements org. Attribute from this element.
|
| public boolean | remove(CDATA
is the CDATA to be removed cdata)Implements org. CDATA if the node is an immediate child
of this element.
|
| public boolean | remove(Entity
is the entity to be removed entity)Implements org. Entity if the node is an immediate child
of this element.
|
| public boolean | remove(Namespace
is the namespace to be removed namespace)Implements org. Namespace if the node is an immediate
child of this element.
|
| public boolean | remove(Text
is the text to be removed text)Implements org. Text if the node is an immediate child
of this element.
|
| public boolean | remove(Node
is the given node to be removed node)Implements org. Node if the node is an immediate child
of this branch.
|
| public boolean | remove(Comment
is the comment to be removed comment)Implements org. Comment if the node is an immediate
child of this branch.
|
| public boolean | remove(Element
is the element to be removed element)Implements org. Element if the node is an immediate
child of this branch.
|
| public boolean | remove(ProcessingInstruction
is the processing instruction to be removed processingInstruction)Implements org. ProcessingInstruction if the node is an
immediate child of this branch.
|
| public boolean | removeProcessingInstruction(String
DOCUMENT ME! name)Implements org. |
| public List | selectNodes(String
is the XPath expression to be evaluated xpath)Implements org.
|
| public List | selectNodes(String
is the XPath expression to be evaluated xpath, String is the XPath expression used to compare the results by for
sorting comparison)Implements org.
|
| public List | selectNodes(String
is the XPath expression to be evaluated xpath, String is the XPath expression used to compare the results by for
sorting comparison, boolean if this parameter is true then duplicate values (using the
comparisonXPathExpression) are removed from the result List. removeDups)Implements org.
|
| public Object | selectObject(String
is the XPath expression to be evaluated xpath)Implements org.
|
| public Node | selectSingleNode(String
is the XPath expression to be evaluated xpath)Implements org.
|
| public void | setAttributes(List<E>
DOCUMENT ME! list)Implements org. |
| public void | setAttributeValue(String
is the name of the attribute whose value is to be added or
updated name, String is the attribute's value value)Implements org.
Deprecated
Sets the attribute value of the given local name.
|
| public void | setAttributeValue(QName
is the fully qualified name of the attribute whose value is to
be added or updated qName, String is the attribute's value value)Implements org.
Deprecated
Sets the attribute value of the given fully qualified name.
|
| public void | setContent(List<E>
is the list of nodes to use as the content for this branch. list)Implements org. List of
Node instances.
|
| public void | setData(Object
DOCUMENT ME! data)Implements org. setTextif it doesn't
|
| public void | setDocument(Document
is the new document of this node. document)Implements org.
|
| public void | setName(String
is the new name of this node name)Implements org.
Sets the text data of this node or this method will throw an
|
| public void | setParent(Element
is the new parent of this node. parent)Implements org.
|
| public void | setProcessingInstructions(List<E>
DOCUMENT ME! list)Implements org. |
| public void | setQName(QName
is the qName)QName to be associated with this elementImplements org. QName of this element which represents the local
name, the qualified name and the Namespace.
|
| public void | setText(String
is the new textual value of this node text)Implements org.
Sets the text data of this node or this method will throw an
|
| public boolean | supportsParent()
Implements org.
|
| public String | |
| public String | valueOf(String
is the XPath expression to be evaluated xpath)Implements org.
|
| public void | write(Writer
is the writer)Writer to output the XML toImplements org.
|