Uses of Class
nu.xom.Node

Packages that use Node
nu.xom nu.xom is the core package of XOM that contains all the basic classes representing the different kinds of nodes: elements, attributes, comments, text nodes, and so forth. 
nu.xom.tests nu.xom.tests contains the JUnit based test suite for XOM. 
 

Uses of Node in nu.xom
 

Subclasses of Node in nu.xom
 class Attribute
           Represents an attribute such as class="empty" or xlink:href="http://www.example.com".
 class Comment
           This class represents an XML comment such as <-- This is a comment-->.
 class DocType
           This class represents an XML document type declaration such as
 class Document
           The Document class represents a complete XML document including its root element, prolog, and epilog.
 class Element
           Represents an XML element.
 class LeafNode
           This class represents the leaf nodes in an XML document; i.e.
 class ParentNode
           This is the generic superclass for nodes that have children.
 class ProcessingInstruction
           Represents an XML processing instruction.
 class Text
           This class represents a run of text.
 

Methods in nu.xom that return Node
 Node Comment.copy()
           Returns a deep copy of this Comment object which contains the same text, but does not have any parent.
 Node ProcessingInstruction.copy()
           Returns a deep copy of this processing instruction with no parent, that can be added to this document or a different one.
 Node Text.copy()
           Returns a deep copy of this Text with no parent, that can be added to this document or a different one.
 Node LeafNode.getChild(int position)
           Throws IndexOutOfBoundsException because leaf nodes do not have children.
 Node DocType.copy()
           This method returns a copy of this DocType which has the same system ID, public ID, root element name, and internal DTD subset, but does not belong to a document.
 Node Document.removeChild(int position)
           Removes the child of this document at the specified position.
 Node Document.removeChild(Node child)
           Removes the specified child from this node.
 Node Document.copy()
           Returns a complete copy of this document.
 Node Attribute.getChild(int position)
           Throws IndexOutOfBoundsExceptions because attribute do not have children.
 Node Attribute.copy()
           Creates a deep copy of this attribute that is not attached to an element.
abstract  Node Node.getChild(int position)
           Returns the indexth child of this node.
abstract  Node Node.copy()
           Returns a deep copy of this node with no parent, that can be added to this document or a different one.
 Node ParentNode.getChild(int position)
           Returns the child of this node at the specified position.
 Node ParentNode.removeChild(int position)
           Removes the child of this node at the specified position.
 Node ParentNode.removeChild(Node child)
           Removes the specified child of this node.
 Node Element.copy()
           Creates a deep copy of this element with no parent, that can be added to this document or a different one.
 Node Nodes.get(int index)
           Returns the indexth node in the list.
 

Methods in nu.xom with parameters of type Node
protected  void Serializer.writeChild(Node node)
           Serializes a child node onto the output stream using the current options.
 void Document.insertChild(Node child, int position)
           Inserts a child node at the specified position.
 Node Document.removeChild(Node child)
           Removes the specified child from this node.
 void ParentNode.insertChild(Node child, int position)
           Inserts a child node at the specified position.
protected  void ParentNode.checkInsertChild(Node child, int position)
           Subclasses can override this method to allow only certain nodes to be added in particular positions.
 void ParentNode.appendChild(Node child)
           Appends a node to the children of this node.
 int ParentNode.indexOf(Node child)
           Returns the position of a node within the children of this node.
 Node ParentNode.removeChild(Node child)
           Removes the specified child of this node.
protected  void ParentNode.checkRemoveChild(Node child, int position)
           Subclasses can override this method to allow only certain nodes to be removed from particular positions.
 void ParentNode.replaceChild(Node oldChild, Node newChild)
           Replaces an existing child with a new child node.
 void Element.insertChild(Node child, int position)
           Inserts a child node at the specified position.
 void Nodes.insert(Node node, int index)
           Inserts a node at the indexth position in the list.
 void Nodes.append(Node node)
           Adds a node at the end of this list.
 

Constructors in nu.xom with parameters of type Node
Nodes(Node node)
           Creates a node list containing a single node.
 

Uses of Node in nu.xom.tests
 

Methods in nu.xom.tests with parameters of type Node
static void XOMTestCase.assertEquals(Node expected, Node actual)
           Asserts that two nodes are equal.
static void XOMTestCase.assertEquals(java.lang.String message, Node expected, Node actual)
           Asserts that two nodes are equal.
 



Copyright 2002-2004 Elliotte Rusty Harold
elharo@metalab.unc.edu