DOMElement implements an XML element which supports the W3C
DOM API.
| Modifier and Type | Field and Description |
|---|---|
| private static final DocumentFactory | DOCUMENT_FACTORY
Hides org. DocumentFactory instance used by default
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Node | appendChild(Node
The node to add.If it is a
newChild)DocumentFragment object, the entire contents of the
document fragment are moved into the child list of this nodeImplements org. newChild to the end of the list of children
of this node.
|
| protected Attribute | |
| protected Attribute | |
| private void | |
| public Node | cloneNode(boolean
If deep)true, recursively clone the subtree under
the specified node; if false, clone only the node
itself (and its attributes, if it is an Element).Implements org. |
| public short | compareDocumentPosition(Node
The node to compare against the reference node. other)Implements org. |
| protected Attribute | |
| public String | getAttribute(String
The name of the attribute to retrieve. name)Implements org. |
| public Attr | getAttributeNode(String
The name ( name)nodeName) of the attribute to
retrieve.Implements org. |
| public Attr | getAttributeNodeNS(String
The namespace URI of the attribute to retrieve. namespaceURI, String The local name of the attribute to retrieve. localName)Implements org. Attr node by local name and namespace URI.
|
| public String | getAttributeNS(String
The namespace URI of the attribute to retrieve. namespaceURI, String The local name of the attribute to retrieve. localName)Implements org. |
| public NamedNodeMap | getAttributes()
Implements org. NamedNodeMap containing the attributes of this node (if
it is an Element) or null otherwise.
|
| public String | getBaseURI()
Implements org. null if the
implementation wasn't able to obtain an absolute URI.
|
| public NodeList | getChildNodes()
Implements org. NodeList that contains all children of this node.
|
| protected DocumentFactory | |
| public NodeList | getElementsByTagName(String
The name of the tag to match on. The special value "*"
matches all tags. name)Implements org. NodeList of all descendant Elements
with a given tag name, in document order.
|
| public NodeList | getElementsByTagNameNS(String
The namespace URI of the elements to match on. The
special value "*" matches all namespaces. namespace, String The local name of the elements to match on. The
special value "*" matches all local names. lName)Implements org. NodeList of all the descendant
Elements with a given local name and namespace URI in
document order.
|
| public Object | getFeature(String
The name of the feature requested. Note that any plus
sign "+" prepended to the name of the feature will be ignored since
it is not significant in the context of this method. feature, String This is the version number of the feature to test. version)Implements org. |
| public Node | |
| public Node | |
| public String | getLocalName()
Implements org. |
| public String | getNamespaceURI()
Overrides org. Implements org. null if it is
unspecified (see ).
|
| public Node | getNextSibling()
Implements org. |
| public String | getNodeName()
Implements org. |
| public String | getNodeValue()
Implements org. |
| public Document | getOwnerDocument()
Implements org. Document object associated with this node.
|
| public Node | |
| public String | getPrefix()
Implements org. null if it is
unspecified.
|
| public Node | getPreviousSibling()
Implements org. |
| protected QName | |
| public TypeInfo | getSchemaTypeInfo()
Implements org. |
| public String | |
| public String | getTextContent()
Implements org. |
| public Object | getUserData(String
The key the object is associated to. key)Implements org. |
| public boolean | hasAttribute(String
The name of the attribute to look for. name)Implements org. true when an attribute with a given name is
specified on this element or has a default value, false
otherwise.
|
| public boolean | hasAttributeNS(String
The namespace URI of the attribute to look for. namespaceURI, String The local name of the attribute to look for. localName)Implements org. true when an attribute with a given local name and
namespace URI is specified on this element or has a default value,
false otherwise.
|
| public boolean | hasAttributes()
Implements org. |
| public boolean | hasChildNodes()
Implements org. |
| public Node | insertBefore(Node
The node to insert. newChild, Node The reference node, i.e., the node before which the
new node must be inserted. refChild)Implements org. newChild before the existing child node
refChild.
|
| public boolean | isDefaultNamespace(String
The namespace URI to look for. namespaceURI)Implements org. namespaceURI is the
default namespace or not.
|
| public boolean | isEqualNode(Node
The node to compare equality with. other)Implements org. |
| public boolean | isSameNode(Node
The node to test against. other)Implements org. |
| public boolean | isSupported(String
The name of the feature to test. feature, String This is the version number of the feature to test. version)Implements org. |
| public String | lookupNamespaceURI(String
The prefix to look for. If this parameter is
prefix)null, the method will return the default namespace URI
if any.Implements org. |
| public String | lookupPrefix(String
The namespace URI to look for. namespaceURI)Implements org. |
| public void | removeAttribute(String
The name of the attribute to remove. name)Implements org. |
| public Attr | removeAttributeNode(Attr
The oldAttr)Attr node to remove from the attribute
list.Implements org. |
| public void | removeAttributeNS(String
The namespace URI of the attribute to remove. namespaceURI, String The local name of the attribute to remove. localName)Implements org. |
| public Node | removeChild(Node
The node being removed. oldChild)Implements org. oldChild from the list
of children, and returns it.
|
| public Node | replaceChild(Node
The new node to put in the child list. newChild, Node The node being replaced in the list. oldChild)Implements org. oldChild with newChild
in the list of children, and returns the oldChild node.
|
| public void | setAttribute(String
The name of the attribute to create or alter. name, String Value to set in string form. value)Implements org. |
| public Attr | setAttributeNode(Attr
The newAttr)Attr node to add to the attribute list.Implements org. |
| public Attr | setAttributeNodeNS(Attr
The newAttr)Attr node to add to the attribute list.Implements org. |
| public void | setAttributeNS(String
The namespace URI of the attribute to create or
alter. namespaceURI, String The qualified name of the attribute to create or
alter. qualifiedName, String The value to set in string form. value)Implements org. |
| public void | setIdAttribute(String
The name of the attribute. name, boolean Whether the attribute is a of type ID. isId)Implements org. isId is true, this method
declares the specified attribute to be a user-determined ID attribute
.
|
| public void | setIdAttributeNode(Attr
The attribute node. idAttr, boolean Whether the attribute is a of type ID. isId)Implements org. isId is true, this method
declares the specified attribute to be a user-determined ID attribute
.
|
| public void | setIdAttributeNS(String
The namespace URI of the attribute. namespaceURI, String The local name of the attribute. localName, boolean Whether the attribute is a of type ID. isId)Implements org. isId is true, this method
declares the specified attribute to be a user-determined ID attribute
.
|
| public void | setNodeValue(String nodeValue)
Implements org. |
| public void | setPrefix(String prefix)
Implements org. null if it is
unspecified.
|
| public void | setTextContent(String textContent)
Implements org. |
| public Object | setUserData(String
The key to associate the object to. key, Object The object to associate to the given key, or
data, UserDataHandler null to remove any existing association to that key.The handler to associate to that key, or
handler)null.Implements org. |
| public boolean |