Uses of Class
nu.xom.Node
Packages that use Node
Package
Description
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
supports the output of
Canonical XML
from XOM.nu.xom.tests contains the JUnit
based test suite for XOM.-
Uses of Node in nu.xom
Modifier and TypeClassDescriptionclassThis class represents an attribute such astype="empty"orxlink:href="http://www.example.com".classThis class represents an XML comment such as<-- This is a comment-->.classRepresents an XML document type declaration such as<!DOCTYPE book SYSTEM "docbookx.dtd">.classTheDocumentclass represents a complete XML document including its root element, prolog, and epilog.classThis class represents an XML element.final classRepresents a namespace in scope.classThe generic superclass for nodes that have children.classThis class represents an XML processing instruction.classThis class represents a run of text.Modifier and TypeMethodDescriptionDocType.copy()Returns a copy of thisDocTypewhich has the same system ID, public ID, root element name, and internal DTD subset, but does not belong to a document.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.Nodes.get(int index) Returns the indexth node in the list.final NodeAttribute.getChild(int position) ThrowsIndexOutOfBoundsExceptionbecause attributes do not have children.final NodeComment.getChild(int position) ThrowsIndexOutOfBoundsExceptionbecause comments do not have children.final NodeDocType.getChild(int position) ThrowsIndexOutOfBoundsExceptionbecause document type declarations do not have children.Namespace.getChild(int position) ThrowsIndexOutOfBoundsExceptionbecause namespaces do not have children.abstract NodeNode.getChild(int position) Returns the child of this node at the specified position.ParentNode.getChild(int position) Returns the child of this node at the specified position.final NodeProcessingInstruction.getChild(int position) ThrowsIndexOutOfBoundsExceptionbecause processing instructions do not have children.final NodeText.getChild(int position) ThrowsIndexOutOfBoundsExceptionbecause texts do not have children.Nodes.remove(int index) Removes the indexthnode in the list.Document.removeChild(int position) Removes the child of this document at the specified position.Document.removeChild(Node child) Removes the specified child from this document.ParentNode.removeChild(int position) Removes the child of this node at the specified position.ParentNode.removeChild(Node child) Removes the specified child of this node.Modifier and TypeMethodDescriptionvoidAdds a node at the end of this list.voidParentNode.appendChild(Node child) Appends a node to the children of this node.booleanDetermines whether a node is contained in this list.intReturns the position of a node within the children of this node.voidInserts a node at the indexth position in the list.voidParentNode.insertChild(Node child, int position) Inserts a child node at the specified position.Document.removeChild(Node child) Removes the specified child from this document.ParentNode.removeChild(Node child) Removes the specified child of this node.voidDocument.replaceChild(Node oldChild, Node newChild) Replaces an existing child with a new child node.voidParentNode.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. -
Uses of Node in nu.xom.canonical
Methods in nu.xom.canonical with parameters of type Node -
Uses of Node in nu.xom.tests
Methods in nu.xom.tests with parameters of type NodeModifier and TypeMethodDescriptionstatic voidXOMTestCase.assertEquals(String message, Node expected, Node actual) Asserts that two nodes are equal.static voidXOMTestCase.assertEquals(Node expected, Node actual) Asserts that two nodes are equal.