java.lang.Object | +--gnu.xml.dom.DomNode | +--gnu.xml.dom.DomNsNode | +--gnu.xml.dom.DomElementAll Implemented Interfaces:
DomElement(Document owner, java.lang.String namespaceURI, java.lang.String name) Constructs an Element node associated with the specified document. |
java.lang.Object | clone() Shallow clone of the element, except that associated attributes are (deep) cloned. |
java.lang.String | getAttribute(java.lang.String name) DOM L1 Returns the value of the specified attribute, or an empty string. |
getAttributeNode(java.lang.String name) DOM L1 Returns the appropriate attribute node; the name is the nodeName property of the attribute. | |
getAttributeNodeNS(java.lang.String namespace, java.lang.String localPart) DOM L2 Returns the appropriate attribute node; the name combines the namespace name and the local part. | |
java.lang.String | getAttributeNS(java.lang.String namespaceURI, java.lang.String local) DOM L2 Returns the value of the specified attribute, or an empty string. |
DOM L1 Returns the element's attributes | |
short | DOM L1 Returns the constant ELEMENT_NODE. |
java.lang.String | DOM L1 Returns the element name (same as getNodeName). |
boolean | hasAttribute(java.lang.String name) DOM L2 Returns true if the element has an attribute with the specified name (specified or DTD defaulted). |
boolean | hasAttributeNS(java.lang.String namespaceURI, java.lang.String local) DOM L2 Returns true if the element has an attribute with the specified name (specified or DTD defaulted). |
boolean | DOM L2> Returns true iff this is an element node with attributes. |
void | Marks this element, its children, and its associated attributes as readonly. |
void | removeAttribute(java.lang.String name) DOM L1 Removes the appropriate attribute node. |
removeAttributeNode(Attr node) DOM L1 Removes the appropriate attribute node; the name is the nodeName property of the attribute. | |
void | removeAttributeNS(java.lang.String namespace, java.lang.String localPart) DOM L2 Removes the appropriate attribute node; the name combines the namespace name and the local part. |
void | setAttribute(java.lang.String name, java.lang.String value) DOM L1 Modifies an existing attribute to have the specified value, or creates a new one with that value. |
setAttributeNode(Attr attr) DOM L1 Stores the specified attribute, optionally overwriting any existing one with that name. | |
setAttributeNodeNS(Attr attr) DOM L2 Stores the specified attribute, optionally overwriting any existing one with that name. | |
void | setAttributeNS(java.lang.String uri, java.lang.String aname, java.lang.String value) DOM L2 Modifies an existing attribute to have the specified value, or creates a new one with that value. |
protected DomElement(Document owner, java.lang.String namespaceURI, java.lang.String name)
public Object clone()
public String getAttribute(java.lang.String name)
public Attr getAttributeNode(java.lang.String name)
public Attr getAttributeNodeNS(java.lang.String namespace, java.lang.String localPart)
public String getAttributeNS(java.lang.String namespaceURI, java.lang.String local)
public NamedNodeMap getAttributes()
public final short getNodeType()
public final String getTagName()
public boolean hasAttribute(java.lang.String name)
public boolean hasAttributeNS(java.lang.String namespaceURI, java.lang.String local)
public boolean hasAttributes()
public void makeReadonly()
public void removeAttribute(java.lang.String name)
public Attr removeAttributeNode(Attr node)
public void removeAttributeNS(java.lang.String namespace, java.lang.String localPart)
public void setAttribute(java.lang.String name, java.lang.String value)
public Attr setAttributeNode(Attr attr)
public Attr setAttributeNodeNS(Attr attr)
public void setAttributeNS(java.lang.String uri, java.lang.String aname, java.lang.String value)