Logo Search packages:      
Sourcecode: lib-dom-java version File versions  Download package

org::w3c::dom::Node Interface Reference

Inheritance diagram for org::w3c::dom::Node:

org::w3c::dom::Attr org::w3c::dom::CharacterData org::w3c::dom::Document org::w3c::dom::DocumentFragment org::w3c::dom::DocumentType org::w3c::dom::Element org::w3c::dom::Entity org::w3c::dom::EntityReference org::w3c::dom::Notation org::w3c::dom::ProcessingInstruction

List of all members.

Detailed Description

The Node interface is the primary datatype for the entire Document Object Model. It represents a single node in the document tree. While all objects implementing the Node interface expose methods for dealing with children, not all objects implementing the Node interface may have children. For example, Text nodes may not have children, and adding children to such nodes results in a DOMException being raised.

The attributes nodeName, nodeValue and attributes are included as a mechanism to get at node information without casting down to the specific derived interface. In cases where there is no obvious mapping of these attributes for a specific nodeType (e.g., nodeValue for an Element or attributes for a Comment), this returns null. Note that the specialized interfaces may contain additional and more convenient mechanisms to get and set the relevant information.

Definition at line 27 of file Node.java.

Public Member Functions

Node appendChild (Node newChild) throws DOMException
Node cloneNode (boolean deep)
NamedNodeMap getAttributes ()
NodeList getChildNodes ()
Node getFirstChild ()
Node getLastChild ()
Node getNextSibling ()
String getNodeName ()
short getNodeType ()
String getNodeValue () throws DOMException
Document getOwnerDocument ()
Node getParentNode ()
Node getPreviousSibling ()
boolean hasChildNodes ()
Node insertBefore (Node newChild, Node refChild) throws DOMException
Node removeChild (Node oldChild) throws DOMException
Node replaceChild (Node newChild, Node oldChild) throws DOMException
void setNodeValue (String nodeValue) throws DOMException

Static Public Attributes

static final short ATTRIBUTE_NODE = 2
static final short CDATA_SECTION_NODE = 4
static final short COMMENT_NODE = 8
static final short DOCUMENT_FRAGMENT_NODE = 11
static final short DOCUMENT_NODE = 9
static final short DOCUMENT_TYPE_NODE = 10
static final short ELEMENT_NODE = 1
static final short ENTITY_NODE = 6
static final short ENTITY_REFERENCE_NODE = 5
static final short NOTATION_NODE = 12
static final short PROCESSING_INSTRUCTION_NODE = 7
static final short TEXT_NODE = 3

The documentation for this interface was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index