Uses of Class
eu.maveniverse.domtrip.Node
Packages that use Node
-
Uses of Node in eu.maveniverse.domtrip
Subclasses of Node in eu.maveniverse.domtripModifier and TypeClassDescriptionclassRepresents an XML comment node, preserving exact formatting and content.classclassRepresents the root of an XML document, containing the document element and preserving document-level formatting like XML declarations and DTDs.classRepresents an XML element with attributes and children, preserving original formatting including attribute spacing, quote styles, and element structure.classRepresents an XML processing instruction, preserving exact formatting and content.classRepresents text content in XML documents, preserving exact whitespace, entity encoding, and CDATA section formatting.Fields in eu.maveniverse.domtrip with type parameters of type NodeMethods in eu.maveniverse.domtrip that return NodeModifier and TypeMethodDescriptionXmlChange.afterNode()Returns the node after the change, ornullfor removals.XmlChange.beforeNode()Returns the node before the change, ornullfor additions.ContainerNode.child(int index) Gets the child at the specified index.Node.clone()Deprecated.abstract NodeNode.copy()Creates a deep copy of this node.ContainerNode.getNode(int index) Deprecated.UseContainerNode.child(int)instead.Node.parent(ContainerNode parent) Sets the parent container node of this node.Node.precedingWhitespace(String whitespace) Sets the whitespace that precedes this node.Methods in eu.maveniverse.domtrip that return types with arguments of type NodeModifier and TypeMethodDescriptionContainerNode.children()Returns aStreamof child nodes.ContainerNode.firstChild()Gets the first child.ContainerNode.lastChild()Gets the last child.Node.nextSibling()Gets the next sibling node.Document.parseFragment(String xml) Parses an XML fragment into a list of nodes.Node.previousSibling()Gets the previous sibling node.Methods in eu.maveniverse.domtrip with parameters of type NodeModifier and TypeMethodDescriptionvoidAdds the givennodeas a child to thisContainerNode.voidContainerNode.insertChild(int index, Node node) Inserts a childNodeat the specified index.voidContainerNode.insertChildAfter(Node referenceNode, Node newNode) Inserts a childNodeafter the specifiedreferenceNode, ifreferenceNodeis notnull; otherwise behaves the same asaddChild(newNode).voidContainerNode.insertChildBefore(Node referenceNode, Node newNode) Inserts a childNodebefore the specifiedreferenceNode, ifreferenceNodeis notnull; otherwise behaves the same asaddChild(newNode).booleanNode.isDescendantOf(Node ancestor) Checks if this node is a descendant of the given node.booleanContainerNode.removeChild(Node node) Removes the given childNodefrom thisContainerNode.voidContainerNode.replaceChild(Node existingNode, Node replacementNode) Replace theexistingNodeNodewith the givenreplacementNode, ifexistingNodeis notnull; otherwise behaves the same asaddChild(replacementNode).Serializes a single node to string.voidSerializer.serialize(Node node, OutputStream outputStream) Serializes a single node to an OutputStream using UTF-8 encoding.voidSerializer.serialize(Node node, OutputStream outputStream, String encoding) Serializes a single node to an OutputStream using the specified encoding.voidSerializer.serialize(Node node, OutputStream outputStream, Charset charset) Serializes a single node to an OutputStream using the specified charset.Constructors in eu.maveniverse.domtrip with parameters of type Node
Node.copy()instead.