| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAttribute(String name)
Implements org. Retrieves an attribute value by name. |
| public Attr | getAttributeNode(String name)
Implements org. Retrieves an attribute node by name. |
| public Attr | getAttributeNodeNS(String namespaceURI, String localName)
Implements org. Retrieves an |
| public String | getAttributeNS(String namespaceURI, String localName)
Implements org. Retrieves an attribute value by local name and namespace URI. |
| public NodeList | getElementsByTagName(String name)
Implements org. Returns a |
| public NodeList | getElementsByTagNameNS(String namespaceURI, String localName)
Implements org. Returns a |
| public TypeInfo | getSchemaTypeInfo()
Implements org. The type information associated with this element. |
| public String | |
| public boolean | hasAttribute(String name)
Implements org. Returns |
| public boolean | hasAttributeNS(String namespaceURI, String localName)
Implements org. Returns |
| public void | removeAttribute(String name)
Implements org. Removes an attribute by name. |
| public Attr | removeAttributeNode(Attr oldAttr)
Implements org. Removes the specified attribute node. |
| public void | removeAttributeNS(String namespaceURI, String localName)
Implements org. Removes an attribute by local name and namespace URI. |
| public void | setAttribute(String name, String value)
Implements org. Adds a new attribute. |
| public Attr | setAttributeNode(Attr newAttr)
Implements org. Adds a new attribute node. |
| public Attr | setAttributeNodeNS(Attr newAttr)
Implements org. Adds a new attribute. |
| public void | setAttributeNS(String namespaceURI, String qualifiedName, String value)
Implements org. Adds a new attribute. |
| public void | setIdAttribute(String name, boolean makeId)
Implements org. If the parameter |
| public void | setIdAttributeNode(Attr at, boolean makeId)
Implements org. If the parameter |
| public void | setIdAttributeNS(String namespaceURI, String localName, boolean makeId)
Implements org. If the parameter |
| 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
| |