| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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 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. namespaceURI, String The local name of the elements to match on. The
special value "*" matches all local names. localName)Implements org. NodeList of all the descendant
Elements with a given local name and namespace URI in
document order.
|
| public TypeInfo | getSchemaTypeInfo()
Implements org. |
| public String | |
| 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 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 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. makeId)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. at, boolean Whether the attribute is a of type ID. makeId)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. makeId)Implements org. isId is true, this method
declares the specified attribute to be a user-determined ID attribute
.
|
| DefaultElement | back to summary |
|---|---|
| public DefaultElement() | |
| DefaultElement | back to summary |
|---|---|
| public DefaultElement(String prefix, String localpart, String rawname, String uri, short nodeType) | |
| getAttribute | back to summary |
|---|---|
| public String getAttribute(String name) Implements org. Doc from org. Retrieves an attribute value by name. | |
| getAttributeNode | back to summary |
|---|---|
| public Attr getAttributeNode(String name) Implements org. Doc from org. Retrieves an attribute node by name.
| |
| getAttributeNodeNS | back to summary |
|---|---|
| public Attr getAttributeNodeNS(String namespaceURI, String localName) Implements org. Doc from org. Retrieves an | |
| getAttributeNS | back to summary |
|---|---|
| public String getAttributeNS(String namespaceURI, String localName) Implements org. Doc from org. Retrieves an attribute value by local name and namespace URI.
| |
| getElementsByTagName | back to summary |
|---|---|
| public NodeList getElementsByTagName(String name) Implements org. Doc from org. Returns a | |
| getElementsByTagNameNS | back to summary |
|---|---|
| public NodeList getElementsByTagNameNS(String namespaceURI, String localName) Implements org. Doc from org. Returns a
| |
| getSchemaTypeInfo | back to summary |
|---|---|
| public TypeInfo getSchemaTypeInfo() Implements org. Doc from org. The type information associated with this element. | |
| getTagName | back to summary |
|---|---|
| public String getTagName() Implements org. Doc from org. The name of the element. If <elementExample id="demo"> ... </elementExample> , tagName has the value
"elementExample". Note that this is case-preserving in
XML, as are all of the operations of the DOM. The HTML DOM returns
the tagName of an HTML element in the canonical
uppercase form, regardless of the case in the source HTML document.
| |
| hasAttribute | back to summary |
|---|---|
| public boolean hasAttribute(String name) Implements org. Doc from org. Returns
| |
| hasAttributeNS | back to summary |
|---|---|
| public boolean hasAttributeNS(String namespaceURI, String localName) Implements org. Doc from org. Returns | |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String name) throws DOMException Implements org. Doc from org. Removes an attribute by name. If a default value for the removed
attribute is defined in the DTD, a new attribute immediately appears
with the default value as well as the corresponding namespace URI,
local name, and prefix when applicable. The implementation may handle
default values from other schemas similarly but applications should
use
| |
| removeAttributeNode | back to summary |
|---|---|
| public Attr removeAttributeNode(Attr oldAttr) throws DOMException Implements org. Doc from org. Removes the specified attribute node. If a default value for the
removed
| |
| removeAttributeNS | back to summary |
|---|---|
| public void removeAttributeNS(String namespaceURI, String localName) throws DOMException Implements org. Doc from org. Removes an attribute by local name and namespace URI. If a default
value for the removed attribute is defined in the DTD, a new
attribute immediately appears with the default value as well as the
corresponding namespace URI, local name, and prefix when applicable.
The implementation may handle default values from other schemas
similarly but applications should use
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, String value) throws DOMException Implements org. Doc from org. Adds a new attribute. If an attribute with that name is already present
in the element, its value is changed to be that of the value
parameter. This value is a simple string; it is not parsed as it is
being set. So any markup (such as syntax to be recognized as an
entity reference) is treated as literal text, and needs to be
appropriately escaped by the implementation when it is written out.
In order to assign an attribute value that contains entity
references, the user must create an
| |
| setAttributeNode | back to summary |
|---|---|
| public Attr setAttributeNode(Attr newAttr) throws DOMException Implements org. Doc from org. Adds a new attribute node. If an attribute with that name (
| |
| setAttributeNodeNS | back to summary |
|---|---|
| public Attr setAttributeNodeNS(Attr newAttr) throws DOMException Implements org. Doc from org. Adds a new attribute. If an attribute with that local name and that
namespace URI is already present in the element, it is replaced by
the new one. Replacing an attribute node by itself has no effect.
| |
| setAttributeNS | back to summary |
|---|---|
| public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException Implements org. Doc from org. Adds a new attribute. If an attribute with the same local name and
namespace URI is already present on the element, its prefix is
changed to be the prefix part of the
| |
| setIdAttribute | back to summary |
|---|---|
| public void setIdAttribute(String name, boolean makeId) throws DOMException Implements org. Doc from org. If the parameter
| |
| setIdAttributeNode | back to summary |
|---|---|
| public void setIdAttributeNode(Attr at, boolean makeId) throws DOMException Implements org. Doc from org. If the parameter
| |
| setIdAttributeNS | back to summary |
|---|---|
| public void setIdAttributeNS(String namespaceURI, String localName, boolean makeId) throws DOMException Implements org. Doc from org. If the parameter
| |