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.canonical nu.xom.canonical supports the output of Canonical XML from XOM. 
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
 classAttribute

           This class represents an attribute such as type="empty" or xlink:href="http://www.example.com".
 classComment

           This class represents an XML comment such as <-- This is a comment-->.
 classDocType

           Represents an XML document type declaration such as <!DOCTYPE book SYSTEM "docbookx.dtd">.
 classDocument

           The Document class represents a complete XML document including its root element, prolog, and epilog.
 classElement

           This class represents an XML element.
 classNamespace

           Represents a namespace in scope.
 classParentNode

           The generic superclass for nodes that have children.
 classProcessingInstruction

           This class represents an XML processing instruction.
 classText

           This class represents a run of text.
 

Methods in nu.xom that return Node
 NodeText.copy()

           Returns a deep copy of this Text with no parent, that can be added to this document or a different one.
 NodeProcessingInstruction.copy()

           Returns a deep copy of this processing instruction with no parent, that can be added to this document or a different one.
abstract  NodeNode.copy()

           Returns a deep copy of this node with no parent, that can be added to the current document or a different one.
 NodeNamespace.copy()

           Returns a copy of this namespace which has the same prefix and URI, but no parent.
 NodeElement.copy()

           Creates a deep copy of this element with no parent, that can be added to this document or a different one.
 NodeDocument.copy()

           Returns a complete copy of this document.
 NodeDocType.copy()

           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.
 NodeComment.copy()

           Returns a deep copy of this Comment object which contains the same text, but does not have any parent.
 NodeAttribute.copy()

           Creates a deep copy of this attribute that is not attached to an element.
 NodeNodes.get(int index)

           Returns the indexth node in the list.
 NodeText.getChild(int position)

           Throws IndexOutOfBoundsException because texts do not have children.
 NodeProcessingInstruction.getChild(int position)

           Throws IndexOutOfBoundsException because processing instructions do not have children.
 NodeParentNode.getChild(int position)

           Returns the child of this node at the specified position.
abstract  NodeNode.getChild(int position)

           Returns the child of this node at the specified position.
 NodeNamespace.getChild(int position)

           Throws IndexOutOfBoundsException because namespaces do not have children.
 NodeDocType.getChild(int position)

           Throws IndexOutOfBoundsException because document type declarations do not have children.
 NodeComment.getChild(int position)

           Throws IndexOutOfBoundsException because comments do not have children.
 NodeAttribute.getChild(int position)

           Throws IndexOutOfBoundsException because attributes do not have children.
 NodeNodes.remove(int index)

           Removes the indexthnode in the list.
 NodeParentNode.removeChild(int position)

           Removes the child of this node at the specified position.
 NodeDocument.removeChild(int position)

           Removes the child of this document at the specified position.
 NodeParentNode.removeChild(Node child)

           Removes the specified child of this node.
 NodeDocument.removeChild(Node child)

           Removes the specified child from this document.
 

Methods in nu.xom with parameters of type Node
 voidNodes.append(Node node)

           Adds a node at the end of this list.
 voidParentNode.appendChild(Node child)

           Appends a node to the children of this node.
 booleanNodes.contains(Node node)

           Determines whether a node is contained in this list.
 intParentNode.indexOf(Node child)

           Returns the position of a node within the children of this node.
 voidNodes.insert(Node node, int index)

           Inserts a node at the indexth position in the list.
 voidParentNode.insertChild(Node child, int position)

           Inserts a child node at the specified position.
 NodeParentNode.removeChild(Node child)

           Removes the specified child of this node.
 NodeDocument.removeChild(Node child)

           Removes the specified child from this document.
 voidParentNode.replaceChild(Node oldChild, Node newChild)

           Replaces an existing child with a new child node.
 voidDocument.replaceChild(Node oldChild, Node newChild)

           Replaces an existing child with a new child node.
protected  voidSerializer.writeChild(Node node)

           Writes a child node onto the output stream using the current options.
 

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.canonical
 

Methods in nu.xom.canonical with parameters of type Node
 voidCanonicalizer.write(Node node)

           Serializes a node onto the output stream using the specified canonicalization algorithm.
 

Uses of Node in nu.xom.tests
 

Methods in nu.xom.tests with parameters of type Node
static voidXOMTestCase.assertEquals(Node expected, Node actual)

           Asserts that two nodes are equal.
static voidXOMTestCase.assertEquals(String message, Node expected, Node actual)

           Asserts that two nodes are equal.
 



Copyright 2002-2010 Elliotte Rusty Harold

elharo@ibiblio.org