API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom. Element View Source
Author(s)
Since
Version
Serial
Hierarchy
 Node
      Element
Subinterfaces
Description
public interface Element
  The Element interface represents an element in an HTML or XML document.
See also:   
Methods
Hide/Show inherited methods
public String getAttribute (String name)
  Retrieves an attribute value by name.
public Attr getAttributeNode (String name)
  Retrieves an attribute node by name.
public Attr getAttributeNodeNS (String namespaceURI, String localName) throws DOMException
  Retrieves an Attr node by local name and namespace URI.
public String getAttributeNS (String namespaceURI, String localName) throws DOMException
  Retrieves an attribute value by local name and namespace URI.
public NodeList getElementsByTagName (String name)
  Returns a NodeList of all descendant Elements with a given tag name, in document order.
public NodeList getElementsByTagNameNS (String namespaceURI, String localName) throws DOMException
  Returns a NodeList of all the descendant Elements with a given local name and namespace URI in document order.
public TypeInfo getSchemaTypeInfo ()
  The type information associated with this element.
public String getTagName ()
  The name of the element.
public boolean hasAttribute (String name)
  Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.
public boolean hasAttributeNS (String namespaceURI, String localName) throws DOMException
  Returns 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 name) throws DOMException
  Removes an attribute by name.
public Attr removeAttributeNode (Attr oldAttr) throws DOMException
  Removes the specified attribute node.
public void removeAttributeNS (String namespaceURI, String localName) throws DOMException
  Removes an attribute by local name and namespace URI.
public void setAttribute (String name, String value) throws DOMException
  Adds a new attribute.
public Attr setAttributeNode (Attr newAttr) throws DOMException
  Adds a new attribute node.
public Attr setAttributeNodeNS (Attr newAttr) throws DOMException
  Adds a new attribute.
public void setAttributeNS (String namespaceURI, String qualifiedName, String value) throws DOMException
  Adds a new attribute.
public void setIdAttribute (String name, boolean isId) throws DOMException
  If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
public void setIdAttributeNode (Attr idAttr, boolean isId) throws DOMException
  If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
public void setIdAttributeNS (String namespaceURI, String localName, boolean isId) throws DOMException
  If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
Fields
Hide/Show inherited fields
publicfinalstatic short ATTRIBUTE_NODE = "2" [Inherited From Node]
The node is an Attr.
publicfinalstatic short CDATA_SECTION_NODE = "4" [Inherited From Node]
The node is a CDATASection.
publicfinalstatic short COMMENT_NODE = "8" [Inherited From Node]
The node is a Comment.
publicfinalstatic short DOCUMENT_FRAGMENT_NODE = "11" [Inherited From Node]
The node is a DocumentFragment.
publicfinalstatic short DOCUMENT_NODE = "9" [Inherited From Node]
The node is a Document.
publicfinalstatic short DOCUMENT_POSITION_CONTAINED_BY = "16" [Inherited From Node]
  The node is contained by the reference node.
publicfinalstatic short DOCUMENT_POSITION_CONTAINS = "8" [Inherited From Node]
  The node contains the reference node.
publicfinalstatic short DOCUMENT_POSITION_DISCONNECTED = "1" [Inherited From Node]
  The two nodes are disconnected.
publicfinalstatic short DOCUMENT_POSITION_FOLLOWING = "4" [Inherited From Node]
The node follows the reference node.
publicfinalstatic short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = "32" [Inherited From Node]
The determination of preceding versus following is implementation-specific.
publicfinalstatic short DOCUMENT_POSITION_PRECEDING = "2" [Inherited From Node]
The second node precedes the reference node.
publicfinalstatic short DOCUMENT_TYPE_NODE = "10" [Inherited From Node]
The node is a DocumentType.
publicfinalstatic short ELEMENT_NODE = "1" [Inherited From Node]
The node is an Element.
publicfinalstatic short ENTITY_NODE = "6" [Inherited From Node]
The node is an Entity.
publicfinalstatic short ENTITY_REFERENCE_NODE = "5" [Inherited From Node]
The node is an EntityReference.
publicfinalstatic short NOTATION_NODE = "12" [Inherited From Node]
The node is a Notation.
publicfinalstatic short PROCESSING_INSTRUCTION_NODE = "7" [Inherited From Node]
The node is a ProcessingInstruction.
publicfinalstatic short TEXT_NODE = "3" [Inherited From Node]
The node is a Text node.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar