Uses of Class
nu.xom.Node
-
Packages that use Node Package Description 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 Modifier and Type Class Description class
Attribute
This class represents an attribute such astype="empty"
orxlink:href="http://www.example.com"
.class
Comment
This class represents an XML comment such as<-- This is a comment-->
.class
DocType
Represents an XML document type declaration such as<!DOCTYPE book SYSTEM "docbookx.dtd">
.class
Document
TheDocument
class represents a complete XML document including its root element, prolog, and epilog.class
Element
This class represents an XML element.class
Namespace
Represents a namespace in scope.class
ParentNode
The generic superclass for nodes that have children.class
ProcessingInstruction
This class represents an XML processing instruction.class
Text
This class represents a run of text.Methods in nu.xom that return Node Modifier and Type Method Description Node
Attribute. copy()
Creates a deep copy of this attribute that is not attached to an element.Node
Comment. copy()
Returns a deep copy of thisComment
object which contains the same text, but does not have any parent.Node
DocType. copy()
Returns a copy of thisDocType
which has the same system ID, public ID, root element name, and internal DTD subset, but does not belong to a document.Node
Document. copy()
Returns a complete copy of this document.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
Namespace. copy()
Returns a copy of this namespace which has the same prefix and URI, but no parent.abstract Node
Node. copy()
Returns a deep copy of this node with no parent, that can be added to the current document or a different one.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 thisText
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.Node
Attribute. getChild(int position)
ThrowsIndexOutOfBoundsException
because attributes do not have children.Node
Comment. getChild(int position)
ThrowsIndexOutOfBoundsException
because comments do not have children.Node
DocType. getChild(int position)
ThrowsIndexOutOfBoundsException
because document type declarations do not have children.Node
Namespace. getChild(int position)
ThrowsIndexOutOfBoundsException
because namespaces do not have children.abstract Node
Node. getChild(int position)
Returns the child of this node at the specified position.Node
ParentNode. getChild(int position)
Returns the child of this node at the specified position.Node
ProcessingInstruction. getChild(int position)
ThrowsIndexOutOfBoundsException
because processing instructions do not have children.Node
Text. getChild(int position)
ThrowsIndexOutOfBoundsException
because texts do not have children.Node
Nodes. remove(int index)
Removes the indexthnode in the list.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 document.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.Methods in nu.xom with parameters of type Node Modifier and Type Method Description void
Nodes. append(Node node)
Adds a node at the end of this list.void
ParentNode. appendChild(Node child)
Appends a node to the children of this node.boolean
Nodes. contains(Node node)
Determines whether a node is contained in this list.int
ParentNode. indexOf(Node child)
Returns the position of a node within the children of this node.void
Nodes. insert(Node node, int index)
Inserts a node at the indexth position in the list.void
ParentNode. insertChild(Node child, int position)
Inserts a child node at the specified position.Node
Document. removeChild(Node child)
Removes the specified child from this document.Node
ParentNode. removeChild(Node child)
Removes the specified child of this node.void
Document. replaceChild(Node oldChild, Node newChild)
Replaces an existing child with a new child node.void
ParentNode. replaceChild(Node oldChild, Node newChild)
Replaces an existing child with a new child node.protected void
Serializer. writeChild(Node node)
Writes a child node onto the output stream using the current options.Constructors in nu.xom with parameters of type Node Constructor Description 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 Modifier and Type Method Description void
Canonicalizer. 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 Modifier and Type Method Description static void
XOMTestCase. assertEquals(String message, Node expected, Node actual)
Asserts that two nodes are equal.static void
XOMTestCase. assertEquals(Node expected, Node actual)
Asserts that two nodes are equal.
-