Uses of Class
eu.maveniverse.domtrip.Node
-
Packages that use Node Package Description eu.maveniverse.domtrip DomTrip - A lossless XML processing library for Java. -
-
Uses of Node in eu.maveniverse.domtrip
Subclasses of Node in eu.maveniverse.domtrip Modifier and Type Class Description classCommentRepresents an XML comment node, preserving exact formatting and content.classContainerNodeclassDocumentRepresents the root of an XML document, containing the document element and preserving document-level formatting like XML declarations and DTDs.classElementRepresents an XML element with attributes and children, preserving original formatting including attribute spacing, quote styles, and element structure.classProcessingInstructionRepresents an XML processing instruction, preserving exact formatting and content.classTextRepresents text content in XML documents, preserving exact whitespace, entity encoding, and CDATA section formatting.Fields in eu.maveniverse.domtrip with type parameters of type Node Modifier and Type Field Description protected java.util.List<Node>ContainerNode. childrenMethods in eu.maveniverse.domtrip that return Node Modifier and Type Method Description NodeXmlChange. afterNode()Returns the node after the change, ornullfor removals.NodeXmlChange. beforeNode()Returns the node before the change, ornullfor additions.NodeContainerNode. child(int index)Gets the child at the specified index.NodeNode. clone()Deprecated.Usecopy()instead.abstract NodeNode. copy()Creates a deep copy of this node.NodeContainerNode. getNode(int index)Deprecated.UseContainerNode.child(int)instead.NodeNode. parent(ContainerNode parent)Sets the parent container node of this node.NodeNode. precedingWhitespace(java.lang.String whitespace)Sets the whitespace that precedes this node.Methods in eu.maveniverse.domtrip that return types with arguments of type Node Modifier and Type Method Description java.util.stream.Stream<Node>ContainerNode. children()Returns aStreamof child nodes.java.util.Optional<Node>ContainerNode. firstChild()Gets the first child.java.util.Optional<Node>ContainerNode. lastChild()Gets the last child.java.util.Optional<Node>Node. nextSibling()Gets the next sibling node.static java.util.List<Node>Document. parseFragment(java.lang.String xml)Parses an XML fragment into a list of nodes.java.util.Optional<Node>Node. previousSibling()Gets the previous sibling node.Methods in eu.maveniverse.domtrip with parameters of type Node Modifier and Type Method Description voidContainerNode. addChild(Node node)Adds 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).java.lang.StringSerializer. serialize(Node node)Serializes a single node to string.voidSerializer. serialize(Node node, java.io.OutputStream outputStream)Serializes a single node to an OutputStream using UTF-8 encoding.voidSerializer. serialize(Node node, java.io.OutputStream outputStream, java.lang.String encoding)Serializes a single node to an OutputStream using the specified encoding.voidSerializer. serialize(Node node, java.io.OutputStream outputStream, java.nio.charset.Charset charset)Serializes a single node to an OutputStream using the specified charset.Constructors in eu.maveniverse.domtrip with parameters of type Node Constructor Description XmlChange(ChangeType type, java.lang.String path, java.lang.String beforeValue, java.lang.String afterValue, Node beforeNode, Node afterNode)Creates a new XmlChange.
-