API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom. Node View Source
Author(s)
Since
Version
Serial
Hierarchy
 Node
Subinterfaces
Description
public interface Node
  The Node interface is the primary datatype for the entire Document Object Model.
See also:   
Methods
Hide/Show inherited methods
public Node appendChild (Node newChild) throws DOMException
  Adds the node newChild to the end of the list of children of this node.
public Node cloneNode (boolean deep)
  Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.
public short compareDocumentPosition (Node other) throws DOMException
  Compares the reference node, i.e.
public NamedNodeMap getAttributes ()
A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
public String getBaseURI ()
  The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.
public NodeList getChildNodes ()
  A NodeList that contains all children of this node.
public Object getFeature (String feature, String version)
  This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in .
public Node getFirstChild ()
  The first child of this node.
public Node getLastChild ()
  The last child of this node.
public String getLocalName ()
  Returns the local part of the qualified name of this node.
public String getNamespaceURI ()
  The namespace URI of this node, or null if it is unspecified (see ).
public Node getNextSibling ()
  The node immediately following this node.
public String getNodeName ()
The name of this node, depending on its type; see the table above.
public short getNodeType ()
A code representing the type of the underlying object, as defined above.
public String getNodeValue () throws DOMException
  The value of this node, depending on its type; see the table above.
public Document getOwnerDocument ()
  The Document object associated with this node.
public Node getParentNode ()
  The parent of this node.
public String getPrefix ()
  The namespace prefix of this node, or null if it is unspecified.
public Node getPreviousSibling ()
  The node immediately preceding this node.
public String getTextContent () throws DOMException
  This attribute returns the text content of this node and its descendants.
public Object getUserData (String key)
  Retrieves the object associated to a key on a this node.
public boolean hasAttributes ()
  Returns whether this node (if it is an element) has any attributes.
public boolean hasChildNodes ()
  Returns whether this node has any children.
public Node insertBefore (Node newChild, Node refChild) throws DOMException
  Inserts the node newChild before the existing child node refChild.
public boolean isDefaultNamespace (String namespaceURI)
  This method checks if the specified namespaceURI is the default namespace or not.
public boolean isEqualNode (Node arg)
  Tests whether two nodes are equal.
public boolean isSameNode (Node other)
  Returns whether this node is the same node as the given one.
public boolean isSupported (String feature, String version)
  Tests whether the DOM implementation implements a specific feature and that feature is supported by this node, as specified in .
public String lookupNamespaceURI (String prefix)
  Look up the namespace URI associated to the given prefix, starting from this node.
public String lookupPrefix (String namespaceURI)
  Look up the prefix associated to the given namespace URI, starting from this node.
public void normalize ()
  Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes.
public Node removeChild (Node oldChild) throws DOMException
  Removes the child node indicated by oldChild from the list of children, and returns it.
public Node replaceChild (Node newChild, Node oldChild) throws DOMException
  Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
public void setNodeValue (String nodeValue) throws DOMException
  The value of this node, depending on its type; see the table above.
public void setPrefix (String prefix) throws DOMException
  The namespace prefix of this node, or null if it is unspecified.
public void setTextContent (String textContent) throws DOMException
  This attribute returns the text content of this node and its descendants.
public Object setUserData (String key, Object data, UserDataHandler handler)
  Associate an object to a key on this node.
Fields
Hide/Show inherited fields
publicfinalstatic short ATTRIBUTE_NODE = "2"
The node is an Attr.
publicfinalstatic short CDATA_SECTION_NODE = "4"
The node is a CDATASection.
publicfinalstatic short COMMENT_NODE = "8"
The node is a Comment.
publicfinalstatic short DOCUMENT_FRAGMENT_NODE = "11"
The node is a DocumentFragment.
publicfinalstatic short DOCUMENT_NODE = "9"
The node is a Document.
publicfinalstatic short DOCUMENT_POSITION_CONTAINED_BY = "16"
  The node is contained by the reference node.
publicfinalstatic short DOCUMENT_POSITION_CONTAINS = "8"
  The node contains the reference node.
publicfinalstatic short DOCUMENT_POSITION_DISCONNECTED = "1"
  The two nodes are disconnected.
publicfinalstatic short DOCUMENT_POSITION_FOLLOWING = "4"
The node follows the reference node.
publicfinalstatic short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = "32"
The determination of preceding versus following is implementation-specific.
publicfinalstatic short DOCUMENT_POSITION_PRECEDING = "2"
The second node precedes the reference node.
publicfinalstatic short DOCUMENT_TYPE_NODE = "10"
The node is a DocumentType.
publicfinalstatic short ELEMENT_NODE = "1"
The node is an Element.
publicfinalstatic short ENTITY_NODE = "6"
The node is an Entity.
publicfinalstatic short ENTITY_REFERENCE_NODE = "5"
The node is an EntityReference.
publicfinalstatic short NOTATION_NODE = "12"
The node is a Notation.
publicfinalstatic short PROCESSING_INSTRUCTION_NODE = "7"
The node is a ProcessingInstruction.
publicfinalstatic short TEXT_NODE = "3"
The node is a Text node.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar