Uses of Class
nu.xom.Node
-
Packages that use Node Package Description nu.xom nu.xomis 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.canonicalsupports the output of Canonical XML from XOM.nu.xom.tests nu.xom.testscontains the JUnit based test suite for XOM. -
-
Uses of Node in nu.xom
Subclasses of Node in nu.xom Modifier and Type Class Description classAttributeThis class represents an attribute such astype="empty"orxlink:href="http://www.example.com".classCommentThis class represents an XML comment such as<-- This is a comment-->.classDocTypeRepresents an XML document type declaration such as<!DOCTYPE book SYSTEM "docbookx.dtd">.classDocumentTheDocumentclass represents a complete XML document including its root element, prolog, and epilog.classElementThis class represents an XML element.classNamespaceRepresents a namespace in scope.classParentNodeThe generic superclass for nodes that have children.classProcessingInstructionThis class represents an XML processing instruction.classTextThis class represents a run of text.Methods in nu.xom that return Node Modifier and Type Method Description NodeDocType. 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.NodeNodes. get(int index)Returns the indexth node in the list.NodeAttribute. getChild(int position)ThrowsIndexOutOfBoundsExceptionbecause attributes do not have children.NodeComment. getChild(int position)ThrowsIndexOutOfBoundsExceptionbecause comments do not have children.NodeDocType. getChild(int position)ThrowsIndexOutOfBoundsExceptionbecause document type declarations do not have children.NodeNamespace. getChild(int position)ThrowsIndexOutOfBoundsExceptionbecause namespaces do not have children.abstract NodeNode. getChild(int position)Returns the child of this node at the specified position.NodeParentNode. getChild(int position)Returns the child of this node at the specified position.NodeProcessingInstruction. getChild(int position)ThrowsIndexOutOfBoundsExceptionbecause processing instructions do not have children.NodeText. getChild(int position)ThrowsIndexOutOfBoundsExceptionbecause texts do not have children.NodeNodes. remove(int index)Removes the indexthnode in the list.NodeDocument. removeChild(int position)Removes the child of this document at the specified position.NodeDocument. removeChild(Node child)Removes the specified child from this document.NodeParentNode. removeChild(int position)Removes the child of this node at the specified position.NodeParentNode. removeChild(Node child)Removes the specified child of this node.Methods in nu.xom that return types with arguments of type Node Modifier and Type Method Description java.util.Iterator<Node>Nodes. iterator()Methods in nu.xom with parameters of type Node Modifier and Type Method Description 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.NodeDocument. removeChild(Node child)Removes the specified child from this document.NodeParentNode. 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.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 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 Modifier and Type Method Description static voidXOMTestCase. assertEquals(java.lang.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.
-