Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accept(DomTripVisitor) - Method in class eu.maveniverse.domtrip.Comment
-
Accepts a visitor for depth-first tree traversal.
- accept(DomTripVisitor) - Method in class eu.maveniverse.domtrip.Document
-
Accepts a visitor for depth-first tree traversal of the entire document.
- accept(DomTripVisitor) - Method in class eu.maveniverse.domtrip.Element
-
Accepts a visitor for depth-first tree traversal.
- accept(DomTripVisitor) - Method in class eu.maveniverse.domtrip.Node
-
Accepts a visitor for depth-first tree traversal.
- accept(DomTripVisitor) - Method in class eu.maveniverse.domtrip.ProcessingInstruction
-
Accepts a visitor for depth-first tree traversal.
- accept(DomTripVisitor) - Method in class eu.maveniverse.domtrip.Text
-
Accepts a visitor for depth-first tree traversal.
- add() - Method in class eu.maveniverse.domtrip.Editor
-
Creates a fluent builder for adding nodes.
- addBlankLineAfter(Element) - Method in class eu.maveniverse.domtrip.Editor
- addBlankLineBefore(Element) - Method in class eu.maveniverse.domtrip.Editor
- addChild(Node) - Method in class eu.maveniverse.domtrip.ContainerNode
-
Adds the given
nodeas a child to thisContainerNode. - addComment(ContainerNode, String) - Method in class eu.maveniverse.domtrip.Editor
-
Adds a comment as a child of the specified parent
- addElement(Element, QName) - Method in class eu.maveniverse.domtrip.Editor
-
Adds a new element using a QName.
- addElement(Element, QName, String) - Method in class eu.maveniverse.domtrip.Editor
-
Adds a new element using a QName with text content.
- addElement(Element, String) - Method in class eu.maveniverse.domtrip.Editor
-
Adds a new element as a child of the specified parent element
- addElement(Element, String, String) - Method in class eu.maveniverse.domtrip.Editor
-
Adds a new element with text content
- addElements(Element, Map) - Method in class eu.maveniverse.domtrip.Editor
-
Batch operation to add multiple child elements with text content.
- addQNameElements(Element, Map) - Method in class eu.maveniverse.domtrip.Editor
-
Batch operation to add multiple child elements with text content using QNames.
- afterNode() - Method in class eu.maveniverse.domtrip.XmlChange
-
Returns the node after the change, or
nullfor removals. - afterValue() - Method in class eu.maveniverse.domtrip.XmlChange
-
Returns the value after the change, or
nullfor removals. - all() - Method in class eu.maveniverse.domtrip.ElementQuery
-
Returns all elements matching the query criteria as a Stream.
- asCData() - Method in class eu.maveniverse.domtrip.Editor.EditorTextBuilder
-
Makes this text node a CDATA section.
- asCData() - Method in class eu.maveniverse.domtrip.Text
-
Converts this text node to a CDATA section.
- atDepth(int) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements at the specified depth from the root element.
- attribute(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the value of the specified attribute.
- attribute(String, String) - Method in class eu.maveniverse.domtrip.Element
-
Sets an attribute value, preserving existing formatting when the attribute already exists.
- attribute(String, String, QuoteStyle) - Method in class eu.maveniverse.domtrip.Element
-
Sets an attribute value with a specific quote style.
- Attribute - Class in eu.maveniverse.domtrip
-
Represents an XML attribute with complete formatting preservation including quote styles, whitespace, and entity encoding.
- Attribute(String, String) - Constructor for class eu.maveniverse.domtrip.Attribute
- Attribute(String, String, char, String) - Constructor for class eu.maveniverse.domtrip.Attribute
- Attribute(String, String, char, String, String) - Constructor for class eu.maveniverse.domtrip.Attribute
- Attribute(String, String, QuoteStyle, String) - Constructor for class eu.maveniverse.domtrip.Attribute
- Attribute(String, String, QuoteStyle, String, String) - Constructor for class eu.maveniverse.domtrip.Attribute
- ATTRIBUTE_ADDED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
A new attribute was added to an existing element.
- ATTRIBUTE_CHANGED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
An attribute value was modified.
- ATTRIBUTE_MOVED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
An attribute was moved.
- ATTRIBUTE_REMOVED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
An attribute was removed from an element.
- Attribute Formatting: - Section in class eu.maveniverse.domtrip.Attribute
- Attribute Handling: - Section in class eu.maveniverse.domtrip.Element
- attributeObject(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the Attribute object for the specified attribute name.
- attributeObject(String, Attribute) - Method in class eu.maveniverse.domtrip.Element
-
Sets an attribute using an Attribute object.
- attributeObjects() - Method in class eu.maveniverse.domtrip.Element
-
Gets all attribute objects with their formatting information.
- Attribute Properties: - Section in class eu.maveniverse.domtrip.Attribute
- attributeQuote(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the quote style for the specified attribute.
- attributeQuote(String, QuoteStyle) - Method in class eu.maveniverse.domtrip.Element
-
Sets the quote character for the specified attribute.
- attributes() - Method in class eu.maveniverse.domtrip.Element
-
Gets all attributes as a map of names to values.
- attributeWhitespace(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the preceding whitespace for the specified attribute.
- attributeWhitespace(String, String) - Method in class eu.maveniverse.domtrip.Element
-
Sets the preceding whitespace for the specified attribute.
- Auto-Detection: - Section in enum eu.maveniverse.domtrip.EmptyElementStyle
- Automatic Formatting Detection: - Section in class eu.maveniverse.domtrip.Serializer
B
- Basic usage: - Section in class eu.maveniverse.domtrip.XmlDiff
- Basic Usage: - Section in class eu.maveniverse.domtrip.Editor
- beforeNode() - Method in class eu.maveniverse.domtrip.XmlChange
-
Returns the node before the change, or
nullfor additions. - beforeValue() - Method in class eu.maveniverse.domtrip.XmlChange
-
Returns the value before the change, or
nullfor additions. - Best Practices: - Section in class eu.maveniverse.domtrip.Comment
- bom(boolean) - Method in class eu.maveniverse.domtrip.Document
-
Sets whether a Byte Order Mark (BOM) should be written when serializing to an OutputStream.
- build() - Method in class eu.maveniverse.domtrip.DiffConfig.Builder
-
Builds the configuration.
- build() - Method in class eu.maveniverse.domtrip.Editor.EditorCommentBuilder
-
Builds and adds the comment to the document.
- build() - Method in class eu.maveniverse.domtrip.Editor.EditorElementBuilder
-
Builds and adds the element to the document.
- build() - Method in class eu.maveniverse.domtrip.Editor.EditorTextBuilder
-
Builds and adds the text node to the document.
- builder() - Static method in class eu.maveniverse.domtrip.DiffConfig
-
Returns a new builder for constructing a custom configuration.
- Builder() - Constructor for class eu.maveniverse.domtrip.DiffConfig.Builder
- Builder Pattern: - Section in class eu.maveniverse.domtrip.DomTripConfig
- buildNamespaceContext(Element) - Static method in class eu.maveniverse.domtrip.NamespaceResolver
-
Builds a complete namespace context for the given element.
C
- Capabilities: - Section in class eu.maveniverse.domtrip.Editor
- Capabilities: - Section in class eu.maveniverse.domtrip.Element
- cdata() - Method in class eu.maveniverse.domtrip.Text
- cdata(boolean) - Method in class eu.maveniverse.domtrip.Text
- cdata(String) - Static method in class eu.maveniverse.domtrip.Text
-
Creates a CDATA text node with the specified content.
- cdata(String, String) - Static method in class eu.maveniverse.domtrip.Element
-
Creates a CDATA element.
- changes() - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns all changes.
- changesFor(XPathExpression, Document) - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns changes affecting elements that match the given compiled XPath expression in the specified document.
- changesFor(String, Document) - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns changes affecting elements that match the given XPath expression in the specified document.
- changesUnder(String) - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns changes under the specified path prefix.
- ChangeType - Enum in eu.maveniverse.domtrip
-
Enumerates the types of changes that can be detected between two XML documents.
- character() - Method in enum eu.maveniverse.domtrip.QuoteStyle
-
Gets the quote character for this style.
- child(int) - Method in class eu.maveniverse.domtrip.ContainerNode
-
Gets the child at the specified index.
- childCount() - Method in class eu.maveniverse.domtrip.ContainerNode
- childElement(QName) - Method in class eu.maveniverse.domtrip.Element
-
Finds the first child element with the given QName.
- childElement(String) - Method in class eu.maveniverse.domtrip.Element
-
Finds the first child element with the given name.
- childElements() - Method in class eu.maveniverse.domtrip.Element
-
Finds all child elements.
- childElements(QName) - Method in class eu.maveniverse.domtrip.Element
-
Finds all child elements with the given QName.
- childElements(String) - Method in class eu.maveniverse.domtrip.Element
-
Finds all child elements with the given name.
- children - Variable in class eu.maveniverse.domtrip.ContainerNode
- children() - Method in class eu.maveniverse.domtrip.ContainerNode
-
Returns a
Streamof child nodes. - childText(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the text content of a child element, or returns null if not found.
- childTextOr(String, String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the text content of an optional child element with the given name.
- childTextRequired(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the text content of a required child element with the given name.
- childTextTrimmed(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the trimmed text content of a child element, or returns null if not found.
- clearChildren() - Method in class eu.maveniverse.domtrip.ContainerNode
-
Removes all child nodes from this
ContainerNode. - clearModified() - Method in class eu.maveniverse.domtrip.ContainerNode
- clearModified() - Method in class eu.maveniverse.domtrip.Node
- clone() - Method in class eu.maveniverse.domtrip.Attribute
-
Deprecated.
- clone() - Method in class eu.maveniverse.domtrip.Comment
-
Deprecated.Use
Comment.copy()instead. - clone() - Method in class eu.maveniverse.domtrip.Document
-
Deprecated.Use
Document.copy()instead. - clone() - Method in class eu.maveniverse.domtrip.Element
-
Deprecated.Use
Element.copy()instead. - clone() - Method in class eu.maveniverse.domtrip.Node
-
Deprecated.Use
Node.copy()instead. - clone() - Method in class eu.maveniverse.domtrip.ProcessingInstruction
-
Deprecated.Use
ProcessingInstruction.copy()instead. - clone() - Method in class eu.maveniverse.domtrip.Text
-
Deprecated.Use
Text.copy()instead. - close() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- closeTagWhitespace() - Method in class eu.maveniverse.domtrip.Element
-
Gets the whitespace within the closing tag (before the element name).
- closeTagWhitespace(String) - Method in class eu.maveniverse.domtrip.Element
-
Sets the whitespace within the closing tag (before the element name).
- comment() - Method in class eu.maveniverse.domtrip.Editor.NodeBuilder
-
Creates a comment builder that will be added to the document.
- comment(String) - Static method in class eu.maveniverse.domtrip.Element
-
Creates a comment node.
- Comment - Class in eu.maveniverse.domtrip
-
Represents an XML comment node, preserving exact formatting and content.
- Comment(String) - Constructor for class eu.maveniverse.domtrip.Comment
-
Creates a new XML comment with the specified content.
- COMMENT - Enum constant in enum eu.maveniverse.domtrip.Node.NodeType
-
XML comment nodes
- COMMENT_ADDED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
A comment was inserted.
- COMMENT_CHANGED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
Comment content was modified.
- COMMENT_REMOVED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
A comment was deleted.
- Comment Handling: - Section in class eu.maveniverse.domtrip.Comment
- commentOutElement(Element) - Method in class eu.maveniverse.domtrip.Editor
-
Comments out an element by wrapping it in an XML comment.
- commentOutElements(Element...) - Method in class eu.maveniverse.domtrip.Editor
-
Comments out multiple elements as a single block comment.
- Common Processing Instructions: - Section in class eu.maveniverse.domtrip.ProcessingInstruction
- Common Usage Patterns: - Section in class eu.maveniverse.domtrip.DomTripConfig
- compile(String) - Static method in class eu.maveniverse.domtrip.XPathExpression
-
Compiles an XPath expression string into a reusable
XPathExpression. - config() - Method in class eu.maveniverse.domtrip.Editor
-
Gets the configuration used by this editor.
- Configurable matching: - Section in class eu.maveniverse.domtrip.XmlDiff
- Configuration - Section in package eu.maveniverse.domtrip
- Configuration Categories: - Section in class eu.maveniverse.domtrip.DomTripConfig
- Configuration Options: - Section in class eu.maveniverse.domtrip.Editor
- ContainerNode - Class in eu.maveniverse.domtrip
- ContainerNode() - Constructor for class eu.maveniverse.domtrip.ContainerNode
- containingText(String) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements that contain the specified text.
- content() - Method in class eu.maveniverse.domtrip.Comment
-
Gets the content of this comment.
- content() - Method in class eu.maveniverse.domtrip.Text
- content(String) - Method in class eu.maveniverse.domtrip.Comment
-
Sets the content of this comment.
- content(String) - Method in class eu.maveniverse.domtrip.Text
- contentPreservingWhitespace(String) - Method in class eu.maveniverse.domtrip.Text
-
Sets new content while preserving the existing whitespace pattern.
- Content Types: - Section in class eu.maveniverse.domtrip.Text
- CONTINUE - Enum constant in enum eu.maveniverse.domtrip.DomTripVisitor.Action
-
Continue normal depth-first traversal.
- copy() - Method in class eu.maveniverse.domtrip.Attribute
-
Creates a deep copy of this attribute.
- copy() - Method in class eu.maveniverse.domtrip.Comment
-
Creates a deep copy of this node.
- copy() - Method in class eu.maveniverse.domtrip.Document
-
Creates a deep copy of this node.
- copy() - Method in class eu.maveniverse.domtrip.Element
-
Creates a deep copy of this node.
- copy() - Method in class eu.maveniverse.domtrip.Node
-
Creates a deep copy of this node.
- copy() - Method in class eu.maveniverse.domtrip.ProcessingInstruction
-
Creates a deep copy of this node.
- copy() - Method in class eu.maveniverse.domtrip.Text
-
Creates a deep copy of this node.
- Core Functionality: - Section in class eu.maveniverse.domtrip.Node
- Core Services - Section in package eu.maveniverse.domtrip
- count() - Method in class eu.maveniverse.domtrip.ElementQuery
-
Counts the number of elements matching the query criteria.
- createDocument(String) - Method in class eu.maveniverse.domtrip.Editor
-
Creates a new XML document with the specified root element.
- createQualifiedName(String, String) - Static method in class eu.maveniverse.domtrip.NamespaceResolver
-
Creates a qualified name from prefix and local name.
D
- data() - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- data(String) - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- declaredNamespaceURIs() - Method in class eu.maveniverse.domtrip.NamespaceContext
-
Gets all declared namespace URIs.
- declaredPrefixes() - Method in class eu.maveniverse.domtrip.NamespaceContext
-
Gets all declared prefixes (excluding xml and xmlns).
- defaultNamespaceURI() - Method in class eu.maveniverse.domtrip.NamespaceContext
-
Gets the default namespace URI.
- defaultQuoteStyle() - Method in class eu.maveniverse.domtrip.DomTripConfig
- defaults() - Static method in class eu.maveniverse.domtrip.DiffConfig
-
Returns a default configuration with no match keys.
- defaults() - Static method in class eu.maveniverse.domtrip.DomTripConfig
-
Creates a default configuration with all preservation features enabled.
- depth() - Method in class eu.maveniverse.domtrip.Node
-
Gets the depth of this node in the tree (root is 0).
- descendant(QName) - Method in class eu.maveniverse.domtrip.Element
-
Finds the first descendant element with the given QName.
- descendant(String) - Method in class eu.maveniverse.domtrip.Element
-
Finds the first descendant element with the given name.
- descendants() - Method in class eu.maveniverse.domtrip.Element
-
Returns a stream of all descendant elements (depth-first traversal).
- descendants(QName) - Method in class eu.maveniverse.domtrip.Element
-
Finds all descendant elements with the given QName.
- descendants(String) - Method in class eu.maveniverse.domtrip.Element
-
Finds all descendant elements with the given name (convenience method).
- detectFromDocument(Document) - Static method in enum eu.maveniverse.domtrip.EmptyElementStyle
-
Detects the predominant empty element style used in a document.
- diff(Document, Document) - Static method in class eu.maveniverse.domtrip.XmlDiff
-
Compares two documents using default configuration (positional matching).
- diff(Document, Document, DiffConfig) - Static method in class eu.maveniverse.domtrip.XmlDiff
-
Compares two documents using the given configuration.
- DiffConfig - Class in eu.maveniverse.domtrip
-
Configuration for XML diff operations.
- DiffConfig.Builder - Class in eu.maveniverse.domtrip
-
Builder for
DiffConfig. - DiffResult - Class in eu.maveniverse.domtrip
-
The result of comparing two XML documents, containing all detected changes.
- DiffResult(List) - Constructor for class eu.maveniverse.domtrip.DiffResult
-
Creates a new DiffResult with the given changes.
- doctype() - Method in class eu.maveniverse.domtrip.Document
-
Gets the DOCTYPE declaration for this document.
- doctype(String) - Method in class eu.maveniverse.domtrip.Document
-
Sets the DOCTYPE declaration for this document.
- doctypePrecedingWhitespace() - Method in class eu.maveniverse.domtrip.Document
-
Gets the whitespace before the DOCTYPE declaration.
- document() - Method in class eu.maveniverse.domtrip.Editor
-
Gets the current XML document being edited.
- document() - Method in class eu.maveniverse.domtrip.Node
-
Gets the Document that contains this node.
- Document - Class in eu.maveniverse.domtrip
-
Represents the root of an XML document, containing the document element and preserving document-level formatting like XML declarations and DTDs.
- Document() - Constructor for class eu.maveniverse.domtrip.Document
-
Creates a new empty XML document with default settings.
- DOCUMENT - Enum constant in enum eu.maveniverse.domtrip.Node.NodeType
-
Document root nodes
- Document Creation: - Section in class eu.maveniverse.domtrip.Editor
- Document Properties: - Section in class eu.maveniverse.domtrip.Document
- documentStats() - Method in class eu.maveniverse.domtrip.Editor
-
Gets statistics about the document structure.
- Document Structure: - Section in class eu.maveniverse.domtrip.Document
- DomTripConfig - Class in eu.maveniverse.domtrip
-
Configuration options for controlling DomTrip XML processing behavior.
- DomTripException - Exception Class in eu.maveniverse.domtrip
-
Base exception class for all DomTrip-related errors.
- DomTripException(String) - Constructor for exception class eu.maveniverse.domtrip.DomTripException
-
Creates a new DomTripException with the specified message.
- DomTripException(String, int, String) - Constructor for exception class eu.maveniverse.domtrip.DomTripException
-
Creates a new DomTripException with the specified message.
- DomTripException(String, Throwable) - Constructor for exception class eu.maveniverse.domtrip.DomTripException
-
Creates a new DomTripException with the specified message and cause.
- DomTripException(Throwable) - Constructor for exception class eu.maveniverse.domtrip.DomTripException
-
Creates a new DomTripException with the specified cause.
- DomTripSAXSource - Class in eu.maveniverse.domtrip.sax
- DomTripStAXSource - Class in eu.maveniverse.domtrip.stax
-
A
StAXSourcebacked by a domtripDocumentfor JAXP interoperability. - DomTripStreamReader - Class in eu.maveniverse.domtrip.stax
-
Pull-based
XMLStreamReaderimplementation backed by a domtripDocument. - DomTripStreamReader(Document) - Constructor for class eu.maveniverse.domtrip.stax.DomTripStreamReader
-
Creates a new StAX reader for the given document.
- DomTripVisitor - Interface in eu.maveniverse.domtrip
-
Visitor interface for structured depth-first tree traversal with enter/exit lifecycle callbacks.
- DomTripVisitor.Action - Enum in eu.maveniverse.domtrip
-
Controls traversal flow during a visitor walk.
- DomTripXMLReader - Class in eu.maveniverse.domtrip.sax
- DomTripXMLReader(Document) - Constructor for class eu.maveniverse.domtrip.sax.DomTripXMLReader
-
Creates a new XMLReader that reads from the given document.
- DOUBLE - Enum constant in enum eu.maveniverse.domtrip.QuoteStyle
-
Double quote character (") for attribute values
E
- Editor - Class in eu.maveniverse.domtrip
-
High-level API for editing XML documents while preserving original formatting.
- Editor() - Constructor for class eu.maveniverse.domtrip.Editor
- Editor(Document) - Constructor for class eu.maveniverse.domtrip.Editor
-
Creates a new editor with an existing Document.
- Editor(Document, DomTripConfig) - Constructor for class eu.maveniverse.domtrip.Editor
-
Creates a new editor with an existing Document and custom configuration.
- Editor(DomTripConfig) - Constructor for class eu.maveniverse.domtrip.Editor
- Editor.EditorCommentBuilder - Class in eu.maveniverse.domtrip
-
Builder for creating comments within the Editor context.
- Editor.EditorElementBuilder - Class in eu.maveniverse.domtrip
-
Builder for creating and configuring elements within the Editor context.
- Editor.EditorTextBuilder - Class in eu.maveniverse.domtrip
-
Builder for creating text nodes within the Editor context.
- Editor.NodeBuilder - Class in eu.maveniverse.domtrip
-
Fluent builder for creating and adding nodes to the document.
- element(QName) - Method in class eu.maveniverse.domtrip.Editor.NodeBuilder
-
Creates an element builder using a QName that will be added to the document.
- element(String) - Method in class eu.maveniverse.domtrip.Editor.NodeBuilder
-
Creates an element builder that will be added to the document.
- Element - Class in eu.maveniverse.domtrip
-
Represents an XML element with attributes and children, preserving original formatting including attribute spacing, quote styles, and element structure.
- Element(String) - Constructor for class eu.maveniverse.domtrip.Element
-
Create a new Element with the given tag name.
- ELEMENT - Enum constant in enum eu.maveniverse.domtrip.Node.NodeType
-
XML element nodes with attributes and potential children
- ELEMENT_ADDED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
A new element was inserted.
- ELEMENT_MOVED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
An element was reordered among its siblings (same content, different position).
- ELEMENT_REMOVED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
An element was deleted.
- ElementQuery - Class in eu.maveniverse.domtrip
-
Fluent API for querying and filtering XML elements.
- EMPTY_ELEMENT_STYLE_CHANGED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
Empty element style changed between self-closing and expanded (formatting only).
- emptyElementStyle() - Method in class eu.maveniverse.domtrip.DomTripConfig
- emptyElementStyle() - Method in class eu.maveniverse.domtrip.Serializer
-
Gets the empty element style used for serialization.
- EmptyElementStyle - Enum in eu.maveniverse.domtrip
-
Enumeration for XML empty element formatting styles.
- encoding() - Method in class eu.maveniverse.domtrip.Document
-
Gets the character encoding for this document.
- encoding(String) - Method in class eu.maveniverse.domtrip.Document
-
Set the document's character encoding used for serialization.
- enterElement(Element) - Method in interface eu.maveniverse.domtrip.DomTripVisitor
-
Called when entering an element during depth-first traversal.
- ENTITY_FORM_CHANGED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
Entity encoding form changed, e.g.
- Entity Handling: - Section in class eu.maveniverse.domtrip.Attribute
- Entity Handling: - Section in class eu.maveniverse.domtrip.Text
- equals(Object) - Method in class eu.maveniverse.domtrip.Attribute
- equals(Object) - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- equals(Object) - Method in class eu.maveniverse.domtrip.QName
- equals(Object) - Method in class eu.maveniverse.domtrip.XmlChange
- Error Handling: - Section in class eu.maveniverse.domtrip.Parser
- Error Recovery: - Section in exception class eu.maveniverse.domtrip.DomTripException
- eu.maveniverse.domtrip - package eu.maveniverse.domtrip
-
DomTrip - A lossless XML processing library for Java.
- eu.maveniverse.domtrip.sax - package eu.maveniverse.domtrip.sax
- eu.maveniverse.domtrip.stax - package eu.maveniverse.domtrip.stax
- Example: - Section in class eu.maveniverse.domtrip.DiffConfig
- Example: - Section in class eu.maveniverse.domtrip.DiffResult
- Example: - Section in eu.maveniverse.domtrip.Editor.commentOutElement(Element)
- Example: - Section in eu.maveniverse.domtrip.Editor.commentOutElements(Element...)
- Example: - Section in eu.maveniverse.domtrip.Editor.insertElementAfter(Element, String)
- Example: - Section in eu.maveniverse.domtrip.Editor.insertElementAt(Element, int, String)
- Example: - Section in eu.maveniverse.domtrip.Editor.insertElementBefore(Element, String)
- Example: - Section in eu.maveniverse.domtrip.Editor.uncommentElement(Comment)
- Example: - Section in eu.maveniverse.domtrip.Element.childTextOr(String, String)
- Example: - Section in eu.maveniverse.domtrip.Element.childTextRequired(String)
- Example: - Section in eu.maveniverse.domtrip.Element.innerPrecedingWhitespace()
- Example: - Section in eu.maveniverse.domtrip.Element.innerPrecedingWhitespace(String)
- Example: - Section in eu.maveniverse.domtrip.Element.textContentOr(String)
- Example: - Section in eu.maveniverse.domtrip.Text.contentPreservingWhitespace(String)
- Example output: - Section in class eu.maveniverse.domtrip.XmlChange
- Examples: - Section in eu.maveniverse.domtrip.Editor.select(String)
- Examples: - Section in eu.maveniverse.domtrip.Editor.selectFirst(String)
- Examples: - Section in eu.maveniverse.domtrip.Editor.setAttribute(Element, String, String)
- Examples: - Section in eu.maveniverse.domtrip.Editor.setTextContent(Element, String)
- Examples: - Section in eu.maveniverse.domtrip.Element.attribute(String, String)
- Examples: - Section in eu.maveniverse.domtrip.Element.select(String)
- Examples: - Section in eu.maveniverse.domtrip.Element.selectFirst(String)
- Examples: - Section in eu.maveniverse.domtrip.Element.textPreservingWhitespace(String)
- execute() - Method in class eu.maveniverse.domtrip.TreeWalker
-
Executes the traversal with the configured callbacks.
- exists() - Method in class eu.maveniverse.domtrip.ElementQuery
-
Checks if any elements match the query criteria.
- exitElement(Element) - Method in interface eu.maveniverse.domtrip.DomTripVisitor
-
Called after all children of an element have been visited.
- EXPANDED - Enum constant in enum eu.maveniverse.domtrip.EmptyElementStyle
-
Expanded form with separate opening and closing tags.
- expression() - Method in class eu.maveniverse.domtrip.XPathExpression
-
Returns the original expression string.
F
- findTextNode() - Method in class eu.maveniverse.domtrip.ContainerNode
- first() - Method in class eu.maveniverse.domtrip.ElementQuery
-
Returns the first element matching the query criteria.
- firstChild() - Method in class eu.maveniverse.domtrip.ContainerNode
-
Gets the first child.
- Flow Control: - Section in interface eu.maveniverse.domtrip.DomTripVisitor
- format(String, String) - Method in enum eu.maveniverse.domtrip.EmptyElementStyle
-
Formats an empty element according to this style.
- formattingChanges() - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns only formatting changes that do not affect meaning.
- Formatting Inference for New Attributes: - Section in eu.maveniverse.domtrip.Editor.setAttribute(Element, String, String)
- fromChar(char) - Static method in enum eu.maveniverse.domtrip.QuoteStyle
-
Returns the QuoteStyle corresponding to the given character.
G
- generateXmlDeclaration() - Method in class eu.maveniverse.domtrip.Document
-
Creates a minimal XML declaration based on current document settings.
- getAttributeCount() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getAttributeLocalName(int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getAttributeName(int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getAttributeNamespace(int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getAttributePrefix(int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getAttributeType(int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getAttributeValue(int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getAttributeValue(String, String) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getCharacter() - Method in enum eu.maveniverse.domtrip.QuoteStyle
-
Deprecated.Use
QuoteStyle.character()instead. - getCharacterEncodingScheme() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getContentHandler() - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- getDocument() - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
-
Returns the document backing this reader.
- getDTDHandler() - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- getElementText() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getEmptyElementStyle() - Method in class eu.maveniverse.domtrip.Serializer
-
Deprecated.Use
Serializer.emptyElementStyle()instead. - getEncoding() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getEntityResolver() - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- getErrorHandler() - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- getEventType() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getFeature(String) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- getIndentString() - Method in class eu.maveniverse.domtrip.Serializer
-
Deprecated.Use
Serializer.indentString()instead. - getLineEnding() - Method in class eu.maveniverse.domtrip.Serializer
-
Deprecated.Use
Serializer.lineEnding()instead. - getLocalName() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getLocation() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getName() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getNamespaceContext() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getNamespaceCount() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getNamespacePrefix(int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getNamespaceURI() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getNamespaceURI(int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getNamespaceURI(String) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getNode(int) - Method in class eu.maveniverse.domtrip.ContainerNode
-
Deprecated.Use
ContainerNode.child(int)instead. - getPIData() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getPITarget() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getPosition() - Method in exception class eu.maveniverse.domtrip.DomTripException
-
Deprecated.Use
DomTripException.position()instead. - getPrefix() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getProperty(String) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- getProperty(String) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getSerializationValue(boolean) - Method in class eu.maveniverse.domtrip.Attribute
-
Provides the attribute value to use during XML serialization, preferring the original raw text when requested.
- getText() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getTextCharacters() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getTextCharacters(int, char[], int, int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getTextLength() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getTextStart() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getVersion() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- getXmlContent() - Method in exception class eu.maveniverse.domtrip.DomTripException
-
Deprecated.Use
DomTripException.xmlContent()instead.
H
- hasAttribute(String) - Method in class eu.maveniverse.domtrip.Element
-
Checks if this element has the specified attribute.
- hasAttributeOrderChanges() - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns
trueif any changes affecting attribute order were detected. - hasBom() - Method in class eu.maveniverse.domtrip.Document
-
Returns whether this document had a Byte Order Mark (BOM) when it was parsed.
- hasChanges() - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns
trueif any changes were detected. - hasChildElements() - Method in class eu.maveniverse.domtrip.ContainerNode
- hasFormattingChanges() - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns
trueif any formatting changes were detected. - hashCode() - Method in class eu.maveniverse.domtrip.Attribute
- hashCode() - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- hashCode() - Method in class eu.maveniverse.domtrip.QName
- hashCode() - Method in class eu.maveniverse.domtrip.XmlChange
- hasLeadingWhitespace() - Method in class eu.maveniverse.domtrip.Text
-
Checks if the content has leading whitespace.
- hasName() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- hasNamespace() - Method in class eu.maveniverse.domtrip.QName
-
Checks if this QName has a namespace.
- hasNext() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- hasPrefix() - Method in class eu.maveniverse.domtrip.QName
-
Checks if this QName has a prefix.
- hasSemanticChanges() - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns
trueif any semantic changes were detected. - hasText() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- hasTextContent() - Method in class eu.maveniverse.domtrip.ContainerNode
- hasTrailingWhitespace() - Method in class eu.maveniverse.domtrip.Text
-
Checks if the content has trailing whitespace.
I
- indentString() - Method in class eu.maveniverse.domtrip.DomTripConfig
- indentString() - Method in class eu.maveniverse.domtrip.Serializer
-
Gets the indentation string used for pretty printing.
- inNamespace(String) - Method in class eu.maveniverse.domtrip.Element
-
Checks if this element is in the specified namespace.
- innerPrecedingWhitespace() - Method in class eu.maveniverse.domtrip.Element
-
Gets the whitespace immediately before the closing tag.
- innerPrecedingWhitespace(String) - Method in class eu.maveniverse.domtrip.Element
-
Sets the whitespace immediately before the closing tag.
- insertChild(int, Node) - Method in class eu.maveniverse.domtrip.ContainerNode
-
Inserts a child
Nodeat the specified index. - insertChildAfter(Node, Node) - Method in class eu.maveniverse.domtrip.ContainerNode
-
Inserts a child
Nodeafter the specifiedreferenceNode, ifreferenceNodeis notnull; otherwise behaves the same asaddChild(newNode). - insertChildBefore(Node, Node) - Method in class eu.maveniverse.domtrip.ContainerNode
-
Inserts a child
Nodebefore the specifiedreferenceNode, ifreferenceNodeis notnull; otherwise behaves the same asaddChild(newNode). - insertElementAfter(Element, String) - Method in class eu.maveniverse.domtrip.Editor
-
Inserts a new element after the specified reference element.
- insertElementAfter(Element, String, String) - Method in class eu.maveniverse.domtrip.Editor
-
Inserts a new element with text content after the specified reference element.
- insertElementAt(Element, int, String) - Method in class eu.maveniverse.domtrip.Editor
-
Inserts a new element at the specified position within the parent.
- insertElementAt(Element, int, String, String) - Method in class eu.maveniverse.domtrip.Editor
-
Inserts a new element with text content at the specified position.
- insertElementBefore(Element, String) - Method in class eu.maveniverse.domtrip.Editor
-
Inserts a new element before the specified reference element.
- insertElementBefore(Element, String, String) - Method in class eu.maveniverse.domtrip.Editor
-
Inserts a new element with text content before the specified reference element.
- Intelligent Formatting Preservation: - Section in class eu.maveniverse.domtrip.Editor
- isAttributeSpecified(int) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- isCharacters() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- isDescendantOf(Node) - Method in class eu.maveniverse.domtrip.Node
-
Checks if this node is a descendant of the given node.
- isEmpty() - Method in class eu.maveniverse.domtrip.Comment
-
Checks if this comment is completely empty.
- isEmpty() - Method in class eu.maveniverse.domtrip.ContainerNode
- isEmpty() - Method in class eu.maveniverse.domtrip.Text
-
Returns true if this text node is empty
- isEndElement() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- isFormattingOnly() - Method in enum eu.maveniverse.domtrip.ChangeType
-
Returns whether this change type represents a formatting-only change that does not affect the semantic meaning of the XML document.
- isFormattingOnly() - Method in class eu.maveniverse.domtrip.XmlChange
-
Returns
trueif the change is formatting-only (no semantic effect). - isIgnoreInvalidEncoding() - Method in class eu.maveniverse.domtrip.DomTripConfig
- isModified() - Method in class eu.maveniverse.domtrip.Node
- isNamespaceInScope(Element, String) - Static method in class eu.maveniverse.domtrip.NamespaceResolver
-
Checks if a namespace URI is in scope for the given element.
- isNamespaceUriDeclared(String) - Method in class eu.maveniverse.domtrip.NamespaceContext
-
Checks if the given namespace URI is declared in this context.
- isOmitXmlDeclaration() - Method in class eu.maveniverse.domtrip.DomTripConfig
- isPrefixDeclared(String) - Method in class eu.maveniverse.domtrip.NamespaceContext
-
Checks if the given prefix is declared in this context.
- isPreserveComments() - Method in class eu.maveniverse.domtrip.DomTripConfig
- isPreserveProcessingInstructions() - Method in class eu.maveniverse.domtrip.DomTripConfig
- isPrettyPrint() - Method in class eu.maveniverse.domtrip.DomTripConfig
- isPrettyPrint() - Method in class eu.maveniverse.domtrip.Serializer
-
Checks if pretty printing is enabled.
- isReportNamespaceDeclarations() - Method in class eu.maveniverse.domtrip.sax.SAXOutputter
-
Returns whether namespace declarations are reported as attributes.
- isSemantic() - Method in enum eu.maveniverse.domtrip.ChangeType
-
Returns whether this change type represents a semantic change that affects the meaning of the XML document.
- isSemantic() - Method in class eu.maveniverse.domtrip.XmlChange
-
Returns
trueif the change affects the semantic meaning of the XML. - isStandalone() - Method in class eu.maveniverse.domtrip.Document
-
Gets the standalone flag for this document.
- isStandalone() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- isStartElement() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- isWellFormed() - Method in class eu.maveniverse.domtrip.Editor
-
Validates that the document is well-formed.
- isWhiteSpace() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- isWhitespaceOnly() - Method in class eu.maveniverse.domtrip.Comment
-
Checks if this comment contains only whitespace characters.
- isWhitespaceOnly() - Method in class eu.maveniverse.domtrip.Text
-
Returns true if this text node contains only whitespace
K
- Key Features - Section in package eu.maveniverse.domtrip
L
- lastChild() - Method in class eu.maveniverse.domtrip.ContainerNode
-
Gets the last child.
- leadingWhitespace() - Method in class eu.maveniverse.domtrip.Text
-
Gets the leading whitespace from the text content.
- lineEnding() - Method in class eu.maveniverse.domtrip.DomTripConfig
- lineEnding() - Method in class eu.maveniverse.domtrip.Serializer
-
Gets the line ending string used for pretty printing.
- localName() - Method in class eu.maveniverse.domtrip.Element
-
Gets the local name part of this element (without namespace prefix).
- localName() - Method in class eu.maveniverse.domtrip.QName
-
Gets the local name.
M
- markModified() - Method in class eu.maveniverse.domtrip.Node
- matchBy(String, String...) - Method in class eu.maveniverse.domtrip.DiffConfig.Builder
-
Configures match keys for an element name.
- matches(QName) - Method in class eu.maveniverse.domtrip.QName
-
Checks if this QName matches the given QName.
- matches(String, String) - Method in class eu.maveniverse.domtrip.QName
-
Checks if this QName matches the given namespace URI and local name.
- matchKeysFor(String) - Method in class eu.maveniverse.domtrip.DiffConfig
-
Returns the match key attribute or child element names for the given element name, falling back to wildcard keys if no specific keys are configured.
- minimal() - Static method in class eu.maveniverse.domtrip.DomTripConfig
-
Creates a minimal configuration for compact output.
- minimal(String) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a minimal document with just a root element (no XML declaration).
- modified - Variable in class eu.maveniverse.domtrip.Node
-
Flag indicating whether this node has been modified since parsing
N
- name() - Method in class eu.maveniverse.domtrip.Attribute
- name() - Method in class eu.maveniverse.domtrip.Element
-
Gets the name (tag name) of this element.
- name(String) - Method in class eu.maveniverse.domtrip.Element
-
Sets the element name.
- NAMESPACE_CHANGED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
A namespace declaration was modified.
- namespaceContext() - Method in class eu.maveniverse.domtrip.Element
-
Gets the namespace context for this element.
- NamespaceContext - Class in eu.maveniverse.domtrip
-
Represents a namespace context for XML elements, providing namespace URI resolution and prefix management functionality.
- NamespaceContext() - Constructor for class eu.maveniverse.domtrip.NamespaceContext
-
Creates an empty namespace context.
- NamespaceContext(Map, String) - Constructor for class eu.maveniverse.domtrip.NamespaceContext
-
Creates a namespace context with the given prefix-to-URI mappings.
- namespaceDeclaration(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets a namespace declaration for the given prefix.
- namespaceDeclaration(String, String) - Method in class eu.maveniverse.domtrip.Element
-
Sets a namespace declaration attribute (xmlns or xmlns:prefix).
- Namespace Handling: - Section in class eu.maveniverse.domtrip.QName
- Namespace Handling: - Section in class eu.maveniverse.domtrip.sax.SAXOutputter
- NamespaceResolver - Class in eu.maveniverse.domtrip
-
Utility class for resolving namespace information in XML elements.
- Namespace Support - Section in package eu.maveniverse.domtrip
- namespaceURI() - Method in class eu.maveniverse.domtrip.Element
-
Gets the namespace URI of this element.
- namespaceURI() - Method in class eu.maveniverse.domtrip.QName
-
Gets the namespace URI.
- namespaceURI(String) - Method in class eu.maveniverse.domtrip.NamespaceContext
-
Gets the namespace URI for the given prefix.
- next() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- nextSibling() - Method in class eu.maveniverse.domtrip.Node
-
Gets the next sibling node.
- nextSiblingElement() - Method in class eu.maveniverse.domtrip.Node
-
Gets the next sibling that is an Element.
- nextTag() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- NO_NAMESPACE - Static variable in class eu.maveniverse.domtrip.QName
-
Empty namespace URI constant for elements not in any namespace
- Node - Class in eu.maveniverse.domtrip
-
Base class for all XML nodes in the lossless XML tree, providing core functionality for formatting preservation and tree navigation.
- Node() - Constructor for class eu.maveniverse.domtrip.Node
-
Creates a new XML node with default settings.
- Node.NodeType - Enum in eu.maveniverse.domtrip
-
Enumeration of XML node types supported by DomTrip.
- Node Hierarchy: - Section in class eu.maveniverse.domtrip.Node
- normalizeWhitespace() - Method in class eu.maveniverse.domtrip.Text
-
Normalizes whitespace in the content (collapses multiple spaces to single space)
O
- of() - Static method in class eu.maveniverse.domtrip.Document
-
Creates an empty document with default settings.
- of(Document) - Static method in class eu.maveniverse.domtrip.sax.DomTripSAXSource
-
Creates a new SAXSource backed by the given document.
- of(Document) - Static method in class eu.maveniverse.domtrip.stax.DomTripStAXSource
-
Creates a new StAXSource backed by the given document.
- of(QName) - Static method in class eu.maveniverse.domtrip.Element
-
Creates an element from a QName.
- of(QName, String) - Static method in class eu.maveniverse.domtrip.Attribute
-
Creates an attribute from a QName and value.
- of(InputStream) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a document by parsing XML from an InputStream with automatic encoding detection.
- of(InputStream, String) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a document by parsing XML from an InputStream with encoding detection and fallback.
- of(InputStream, Charset) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a document by parsing XML from an InputStream with encoding detection and fallback.
- of(String) - Static method in class eu.maveniverse.domtrip.Comment
-
Creates a comment with the specified content.
- of(String) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a document by parsing the provided XML string.
- of(String) - Static method in class eu.maveniverse.domtrip.Element
-
Creates a simple element.
- of(String) - Static method in class eu.maveniverse.domtrip.ProcessingInstruction
-
Creates a processing instruction with only a target (no data).
- of(String) - Static method in class eu.maveniverse.domtrip.QName
-
Creates a QName for an element with no namespace.
- of(String) - Static method in class eu.maveniverse.domtrip.Text
-
Creates a text node with the specified content.
- of(String, boolean) - Static method in class eu.maveniverse.domtrip.Text
-
Creates a text node with the specified content and CDATA flag.
- of(String, String) - Static method in class eu.maveniverse.domtrip.Attribute
-
Creates an attribute with the specified name and value.
- of(String, String) - Static method in class eu.maveniverse.domtrip.ProcessingInstruction
-
Creates a processing instruction with the specified target and data.
- of(String, String) - Static method in class eu.maveniverse.domtrip.QName
-
Creates a QName with the specified namespace URI and local name.
- of(String, String, QuoteStyle) - Static method in class eu.maveniverse.domtrip.Attribute
-
Creates an attribute with the specified name, value, and quote style.
- of(String, String, QuoteStyle, String) - Static method in class eu.maveniverse.domtrip.Attribute
-
Creates an attribute with all formatting options.
- of(String, String, String) - Static method in class eu.maveniverse.domtrip.QName
-
Creates a QName with the specified namespace URI, local name, and preferred prefix.
- of(Path) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a document by parsing XML from a file path with automatic encoding detection.
- onComment(Function) - Method in class eu.maveniverse.domtrip.TreeWalker
-
Sets the callback invoked for each comment node.
- onEnter(Function) - Method in class eu.maveniverse.domtrip.TreeWalker
-
Sets the callback invoked when entering each element.
- onExit(Consumer) - Method in class eu.maveniverse.domtrip.TreeWalker
-
Sets the callback invoked when exiting each element.
- onProcessingInstruction(Function) - Method in class eu.maveniverse.domtrip.TreeWalker
-
Sets the callback invoked for each processing instruction node.
- onText(Function) - Method in class eu.maveniverse.domtrip.TreeWalker
-
Sets the callback invoked for each text node.
- openTagWhitespace() - Method in class eu.maveniverse.domtrip.Element
-
Gets the whitespace within the opening tag (before the closing >).
- openTagWhitespace(String) - Method in class eu.maveniverse.domtrip.Element
-
Sets the whitespace within the opening tag (before the closing >).
- originalCloseTag() - Method in class eu.maveniverse.domtrip.Element
-
Gets the original closing tag as it appeared in the source XML.
- originalCloseTag(String) - Method in class eu.maveniverse.domtrip.Element
-
Set the materialized original closing tag and disable source-backed close-tag slicing.
- originalContent() - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- originalContent(String) - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- originalOpenTag() - Method in class eu.maveniverse.domtrip.Element
-
Provide the original open tag exactly as it appeared in the source, or an empty string if none is available.
- originalOpenTag(String) - Method in class eu.maveniverse.domtrip.Element
-
Set the materialized original open tag and disable source-backed tag slicing.
- output(Document, ContentHandler) - Method in class eu.maveniverse.domtrip.sax.SAXOutputter
-
Emits SAX events for the given document to the specified content handler.
- output(Document, ContentHandler, LexicalHandler) - Method in class eu.maveniverse.domtrip.sax.SAXOutputter
-
Emits SAX events for the given document to the specified content and lexical handlers.
- output(Element, ContentHandler) - Method in class eu.maveniverse.domtrip.sax.SAXOutputter
-
Emits SAX events for the given element subtree to the specified content handler.
- output(Element, ContentHandler, LexicalHandler) - Method in class eu.maveniverse.domtrip.sax.SAXOutputter
-
Emits SAX events for the given element subtree to the specified handlers.
P
- parent - Variable in class eu.maveniverse.domtrip.Node
-
The parent node of this node in the XML tree
- parent() - Method in class eu.maveniverse.domtrip.Node
-
Gets the parent container node of this node.
- parent(ContainerNode) - Method in class eu.maveniverse.domtrip.Comment
-
Sets the parent container node of this node.
- parent(ContainerNode) - Method in class eu.maveniverse.domtrip.Document
-
Sets the parent container node of this node.
- parent(ContainerNode) - Method in class eu.maveniverse.domtrip.Element
-
Sets the parent container node of this node.
- parent(ContainerNode) - Method in class eu.maveniverse.domtrip.Node
-
Sets the parent container node of this node.
- parent(ContainerNode) - Method in class eu.maveniverse.domtrip.ProcessingInstruction
-
Sets the parent container node of this node.
- parent(ContainerNode) - Method in class eu.maveniverse.domtrip.Text
-
Sets the parent container node of this node.
- parentElement() - Method in class eu.maveniverse.domtrip.Node
-
Gets the Element parent of this node.
- parse(InputStream) - Method in class eu.maveniverse.domtrip.Parser
-
Parses XML from an InputStream with automatic encoding detection.
- parse(InputStream, String) - Method in class eu.maveniverse.domtrip.Parser
-
Parses XML from an InputStream with encoding detection and fallback.
- parse(InputStream, Charset) - Method in class eu.maveniverse.domtrip.Parser
-
Parses XML from an InputStream with encoding detection and fallback.
- parse(String) - Method in class eu.maveniverse.domtrip.Parser
-
Parses an XML string into a lossless XML document tree.
- parse(String) - Static method in class eu.maveniverse.domtrip.QName
-
Parses a qualified name string into a QName.
- parse(String) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
-
Parses the domtrip document, emitting SAX events to the registered handlers.
- parse(InputSource) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
-
Parses the domtrip document, emitting SAX events to the registered handlers.
- parseFragment(String) - Static method in class eu.maveniverse.domtrip.Document
-
Parses an XML fragment into a list of nodes.
- Parser - Class in eu.maveniverse.domtrip
-
A lossless XML parser that preserves all formatting information including whitespace, comments, attribute quote styles, and entity encoding.
- Parser() - Constructor for class eu.maveniverse.domtrip.Parser
-
Creates a new Parser instance with default settings.
- Parsing Features: - Section in class eu.maveniverse.domtrip.Parser
- Parsing Process: - Section in class eu.maveniverse.domtrip.Parser
- path() - Method in class eu.maveniverse.domtrip.XmlChange
-
Returns the XPath-like path to the changed node.
- path(QName...) - Method in class eu.maveniverse.domtrip.Element
-
Finds an element by following a path of QNames from this element.
- path(String...) - Method in class eu.maveniverse.domtrip.Element
-
Finds an element by following a path of element names from this element.
- Performance Considerations: - Section in class eu.maveniverse.domtrip.Serializer
- PI_ADDED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
A processing instruction was inserted.
- PI_CHANGED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
A processing instruction was modified.
- PI_REMOVED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
A processing instruction was deleted.
- position - Variable in exception class eu.maveniverse.domtrip.DomTripException
- position() - Method in exception class eu.maveniverse.domtrip.DomTripException
-
Gets the character position where the parsing error occurred.
- precedingWhitespace - Variable in class eu.maveniverse.domtrip.Node
-
Whitespace that appears before this node in the original XML
- precedingWhitespace() - Method in class eu.maveniverse.domtrip.Attribute
- precedingWhitespace() - Method in class eu.maveniverse.domtrip.Node
-
Gets the whitespace that precedes this node in the original XML.
- precedingWhitespace(String) - Method in class eu.maveniverse.domtrip.Attribute
- precedingWhitespace(String) - Method in class eu.maveniverse.domtrip.Comment
-
Sets the whitespace that precedes this node.
- precedingWhitespace(String) - Method in class eu.maveniverse.domtrip.Element
-
Sets the whitespace that precedes this node.
- precedingWhitespace(String) - Method in class eu.maveniverse.domtrip.Node
-
Sets the whitespace that precedes this node.
- precedingWhitespace(String) - Method in class eu.maveniverse.domtrip.ProcessingInstruction
-
Sets the whitespace that precedes this node.
- precedingWhitespace(String) - Method in class eu.maveniverse.domtrip.Text
-
Sets the whitespace that precedes this node.
- prefix() - Method in class eu.maveniverse.domtrip.Element
-
Gets the namespace prefix of this element.
- prefix() - Method in class eu.maveniverse.domtrip.QName
-
Gets the namespace prefix.
- prefix(String) - Method in class eu.maveniverse.domtrip.NamespaceContext
-
Gets the first prefix bound to the given namespace URI.
- prefixes(String) - Method in class eu.maveniverse.domtrip.NamespaceContext
-
Gets all prefixes bound to the given namespace URI.
- preserveWhitespace() - Method in class eu.maveniverse.domtrip.Text
- preserveWhitespace(boolean) - Method in class eu.maveniverse.domtrip.Text
- prettyPrint() - Static method in class eu.maveniverse.domtrip.DomTripConfig
-
Creates a configuration optimized for pretty printing.
- previousSibling() - Method in class eu.maveniverse.domtrip.Node
-
Gets the previous sibling node.
- previousSiblingElement() - Method in class eu.maveniverse.domtrip.Node
-
Gets the previous sibling that is an Element.
- PROCESSING_INSTRUCTION - Enum constant in enum eu.maveniverse.domtrip.Node.NodeType
-
XML processing instruction nodes
- processingInstruction(String, String) - Static method in class eu.maveniverse.domtrip.Element
-
Creates a processing instruction.
- ProcessingInstruction - Class in eu.maveniverse.domtrip
-
Represents an XML processing instruction, preserving exact formatting and content.
- ProcessingInstruction(String) - Constructor for class eu.maveniverse.domtrip.ProcessingInstruction
- ProcessingInstruction(String, String) - Constructor for class eu.maveniverse.domtrip.ProcessingInstruction
- Processing Instruction Handling: - Section in class eu.maveniverse.domtrip.ProcessingInstruction
Q
- QName - Class in eu.maveniverse.domtrip
-
Represents a qualified XML name with namespace URI, local name, and optional prefix.
- qualifiedName() - Method in class eu.maveniverse.domtrip.Element
-
Gets the qualified name of this element (prefix:localName or just localName).
- qualifiedName() - Method in class eu.maveniverse.domtrip.QName
-
Gets the qualified name (prefix:localName or just localName).
- query() - Method in class eu.maveniverse.domtrip.Element
-
Creates a fluent query builder for finding elements.
- Query Types: - Section in class eu.maveniverse.domtrip.ElementQuery
- QUOTE_STYLE_CHANGED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
Attribute quote style changed between single and double (formatting only).
- quoteStyle() - Method in class eu.maveniverse.domtrip.Attribute
- quoteStyle(QuoteStyle) - Method in class eu.maveniverse.domtrip.Attribute
- QuoteStyle - Enum in eu.maveniverse.domtrip
-
Enumeration for XML attribute quote styles, supporting both single and double quotes.
- Quote Style Preservation: - Section in enum eu.maveniverse.domtrip.QuoteStyle
R
- raw() - Static method in class eu.maveniverse.domtrip.DomTripConfig
-
Creates a raw configuration for completely unformatted output.
- rawContent() - Method in class eu.maveniverse.domtrip.Text
- rawContent(String) - Method in class eu.maveniverse.domtrip.Text
- Raw Mode: - Section in class eu.maveniverse.domtrip.Serializer
- rawValue() - Method in class eu.maveniverse.domtrip.Attribute
- rawValue(String) - Method in class eu.maveniverse.domtrip.Attribute
- removeAttribute(Element, String) - Method in class eu.maveniverse.domtrip.Editor
-
Remove the specified attribute from the provided element.
- removeAttribute(String) - Method in class eu.maveniverse.domtrip.Element
-
Removes the specified attribute from this element.
- removeChild(Node) - Method in class eu.maveniverse.domtrip.ContainerNode
-
Removes the given child
Nodefrom thisContainerNode. - removeElement(Element) - Method in class eu.maveniverse.domtrip.Editor
-
Removes an element from its parent with intelligent whitespace handling.
- removeNamespaceDeclaration(String) - Method in class eu.maveniverse.domtrip.Element
-
Removes a namespace declaration.
- replaceChild(Node, Node) - Method in class eu.maveniverse.domtrip.ContainerNode
-
Replace the
existingNodeNodewith the givenreplacementNode, ifexistingNodeis notnull; otherwise behaves the same asaddChild(replacementNode). - require(int, String, String) - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- resolveNamespaceURI(Element, String) - Static method in class eu.maveniverse.domtrip.NamespaceResolver
-
Resolves the namespace URI for a given prefix in the context of an element.
- resolvePrefix(Element, String) - Static method in class eu.maveniverse.domtrip.NamespaceResolver
-
Resolves a prefix for a given namespace URI in the context of an element.
- root() - Method in class eu.maveniverse.domtrip.Document
-
Gets the root element of this document.
- root() - Method in class eu.maveniverse.domtrip.Editor
-
Gets the root element of the document.
- root(Element) - Method in class eu.maveniverse.domtrip.Document
-
Sets the root element of this document.
S
- SAXOutputter - Class in eu.maveniverse.domtrip.sax
- SAXOutputter() - Constructor for class eu.maveniverse.domtrip.sax.SAXOutputter
-
Creates a new SAXOutputter with default settings.
- select(Element) - Method in class eu.maveniverse.domtrip.XPathExpression
-
Evaluates this expression against the given context element and returns all matching elements.
- select(String) - Method in class eu.maveniverse.domtrip.Editor
-
Evaluates a mini-XPath expression against the document root and returns all matching elements.
- select(String) - Method in class eu.maveniverse.domtrip.Element
-
Evaluates a mini-XPath expression against this element and returns all matching elements.
- selectFirst(Element) - Method in class eu.maveniverse.domtrip.XPathExpression
-
Evaluates this expression against the given context element and returns the first match.
- selectFirst(String) - Method in class eu.maveniverse.domtrip.Editor
-
Evaluates a mini-XPath expression against the document root and returns the first match.
- selectFirst(String) - Method in class eu.maveniverse.domtrip.Element
-
Evaluates a mini-XPath expression against this element and returns the first match.
- SELF_CLOSING - Enum constant in enum eu.maveniverse.domtrip.EmptyElementStyle
-
Self-closing tag without space before the slash.
- SELF_CLOSING_SPACED - Enum constant in enum eu.maveniverse.domtrip.EmptyElementStyle
-
Self-closing tag with space before the slash.
- selfClosing() - Method in class eu.maveniverse.domtrip.Editor.EditorElementBuilder
-
Makes this element self-closing.
- selfClosing() - Method in class eu.maveniverse.domtrip.Element
-
Checks if this element is self-closing.
- selfClosing(boolean) - Method in class eu.maveniverse.domtrip.Element
-
Sets whether this element should be self-closing.
- selfClosing(String) - Static method in class eu.maveniverse.domtrip.Element
-
Creates a self-closing element.
- semanticChanges() - Method in class eu.maveniverse.domtrip.DiffResult
-
Returns only semantic changes that affect the meaning of the XML.
- Serialization Features: - Section in class eu.maveniverse.domtrip.Serializer
- Serialization Modes: - Section in class eu.maveniverse.domtrip.Serializer
- serialize(Document) - Method in class eu.maveniverse.domtrip.Serializer
-
Serializes an XML document to string using this serializer's configuration.
- serialize(Document, DomTripConfig) - Method in class eu.maveniverse.domtrip.Serializer
-
Serializes an XML document to string with custom configuration.
- serialize(Document, OutputStream) - Method in class eu.maveniverse.domtrip.Serializer
-
Serializes an XML document to an OutputStream using the document's encoding.
- serialize(Document, OutputStream, String) - Method in class eu.maveniverse.domtrip.Serializer
-
Serializes an XML document to an OutputStream using the specified encoding.
- serialize(Document, OutputStream, Charset) - Method in class eu.maveniverse.domtrip.Serializer
-
Serializes an XML document to an OutputStream using the specified charset.
- serialize(Node) - Method in class eu.maveniverse.domtrip.Serializer
-
Serializes a single node to string.
- serialize(Node, OutputStream) - Method in class eu.maveniverse.domtrip.Serializer
-
Serializes a single node to an OutputStream using UTF-8 encoding.
- serialize(Node, OutputStream, String) - Method in class eu.maveniverse.domtrip.Serializer
-
Serializes a single node to an OutputStream using the specified encoding.
- serialize(Node, OutputStream, Charset) - Method in class eu.maveniverse.domtrip.Serializer
-
Serializes a single node to an OutputStream using the specified charset.
- Serializer - Class in eu.maveniverse.domtrip
-
Serializes XML node trees back to XML string format with configurable formatting options and lossless preservation for unmodified content.
- Serializer() - Constructor for class eu.maveniverse.domtrip.Serializer
-
Creates a new Serializer with default settings.
- Serializer(DomTripConfig) - Constructor for class eu.maveniverse.domtrip.Serializer
-
Creates a new Serializer with the specified configuration.
- setAttribute(Element, String, String) - Method in class eu.maveniverse.domtrip.Editor
-
Adds or updates an attribute on an element with intelligent formatting preservation.
- setAttributes(Element, Map) - Method in class eu.maveniverse.domtrip.Editor
-
Batch operation to set multiple attributes on an element.
- setContentHandler(ContentHandler) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- setDTDHandler(DTDHandler) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- setEmptyElementStyle(EmptyElementStyle) - Method in class eu.maveniverse.domtrip.Serializer
-
Sets the empty element style for serialization.
- setEntityResolver(EntityResolver) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- setErrorHandler(ErrorHandler) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- setFeature(String, boolean) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- setIndentString(String) - Method in class eu.maveniverse.domtrip.Serializer
-
Sets the indentation string for pretty printing.
- setLineEnding(String) - Method in class eu.maveniverse.domtrip.Serializer
-
Sets the line ending string for pretty printing.
- setPrettyPrint(boolean) - Method in class eu.maveniverse.domtrip.Serializer
-
Sets whether to enable pretty printing.
- setProperty(String, Object) - Method in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- setReportNamespaceDeclarations(boolean) - Method in class eu.maveniverse.domtrip.sax.SAXOutputter
-
Sets whether namespace declarations should be reported as attributes in
startElementcalls. - setTextContent(Element, String) - Method in class eu.maveniverse.domtrip.Editor
-
Sets the text content of an element, preserving the node type (CDATA vs plain text) and surrounding whitespace of the existing content.
- siblingIndex() - Method in class eu.maveniverse.domtrip.Node
-
Gets the index of this node within its parent's children list.
- SINGLE - Enum constant in enum eu.maveniverse.domtrip.QuoteStyle
-
Single quote character (') for attribute values
- SKIP - Enum constant in enum eu.maveniverse.domtrip.DomTripVisitor.Action
-
Skip children of the current element (only meaningful from
DomTripVisitor.enterElement(Element)). - splitQualifiedName(String) - Static method in class eu.maveniverse.domtrip.NamespaceResolver
-
Splits a qualified name into prefix and local name parts.
- standalone(boolean) - Method in class eu.maveniverse.domtrip.Document
-
Sets the standalone flag for this document.
- standaloneSet() - Method in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- Stateful Visitor Example: - Section in interface eu.maveniverse.domtrip.DomTripVisitor
- STOP - Enum constant in enum eu.maveniverse.domtrip.DomTripVisitor.Action
-
Abort the entire traversal immediately.
- Style Examples: - Section in enum eu.maveniverse.domtrip.EmptyElementStyle
- Supported Expressions: - Section in class eu.maveniverse.domtrip.XPathExpression
- Supported Features: - Section in class eu.maveniverse.domtrip.sax.DomTripXMLReader
- Supported Properties: - Section in class eu.maveniverse.domtrip.sax.DomTripXMLReader
T
- target() - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- target(String) - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- text() - Method in class eu.maveniverse.domtrip.Editor.NodeBuilder
-
Creates a text builder that will be added to the document.
- text(QName, String) - Static method in class eu.maveniverse.domtrip.Element
-
Creates an element from a QName with text content.
- text(String, String) - Static method in class eu.maveniverse.domtrip.Element
-
Creates a simple text element.
- Text - Class in eu.maveniverse.domtrip
-
Represents text content in XML documents, preserving exact whitespace, entity encoding, and CDATA section formatting.
- Text(String) - Constructor for class eu.maveniverse.domtrip.Text
- Text(String, boolean) - Constructor for class eu.maveniverse.domtrip.Text
- Text(String, String) - Constructor for class eu.maveniverse.domtrip.Text
- TEXT - Enum constant in enum eu.maveniverse.domtrip.Node.NodeType
-
Text content nodes including CDATA sections
- TEXT_CHANGED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
Text content of an element was modified.
- textChild() - Method in class eu.maveniverse.domtrip.Element
-
Finds the first text child node.
- textContent() - Method in class eu.maveniverse.domtrip.ContainerNode
- textContent() - Method in class eu.maveniverse.domtrip.Element
-
Gets the text content of this element (concatenates all text children)
- textContent(String) - Method in class eu.maveniverse.domtrip.Element
-
Sets the text content, replacing all existing text children.
- textContentOr(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the text content of this element, returning a default value if the text content is null or empty.
- textContentTrimmed() - Method in class eu.maveniverse.domtrip.Element
-
Gets the text content with leading and trailing whitespace removed.
- textContentTrimmedOr(String) - Method in class eu.maveniverse.domtrip.Element
-
Gets the text content with leading and trailing whitespace removed if non-empty and non-null, otherwise returns the default value.
- Text Handling: - Section in class eu.maveniverse.domtrip.Text
- textPreservingWhitespace(String) - Method in class eu.maveniverse.domtrip.Element
-
Sets the text content while preserving existing whitespace patterns.
- Thread Safety - Section in package eu.maveniverse.domtrip
- to(ContainerNode) - Method in class eu.maveniverse.domtrip.Editor.EditorCommentBuilder
-
Sets the parent node for this comment.
- to(ContainerNode) - Method in class eu.maveniverse.domtrip.Editor.EditorElementBuilder
-
Sets the parent node for this element.
- to(ContainerNode) - Method in class eu.maveniverse.domtrip.Editor.EditorTextBuilder
-
Sets the parent node for this text.
- toList() - Method in class eu.maveniverse.domtrip.ElementQuery
-
Returns all elements matching the query criteria as a List.
- toString() - Method in class eu.maveniverse.domtrip.Attribute
- toString() - Method in class eu.maveniverse.domtrip.Comment
-
Returns a string representation of this comment for debugging purposes.
- toString() - Method in class eu.maveniverse.domtrip.DiffResult
- toString() - Method in class eu.maveniverse.domtrip.Document
-
Returns a string representation of this document for debugging purposes.
- toString() - Method in class eu.maveniverse.domtrip.Element
- toString() - Method in enum eu.maveniverse.domtrip.EmptyElementStyle
-
Returns a human-readable description of this style.
- toString() - Method in class eu.maveniverse.domtrip.NamespaceContext
- toString() - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- toString() - Method in class eu.maveniverse.domtrip.QName
- toString() - Method in enum eu.maveniverse.domtrip.QuoteStyle
-
Returns the quote character as a string.
- toString() - Method in class eu.maveniverse.domtrip.Text
- toString() - Method in class eu.maveniverse.domtrip.XmlChange
- toString() - Method in class eu.maveniverse.domtrip.XPathExpression
- toXml() - Method in class eu.maveniverse.domtrip.Editor
-
Serializes the current document back to XML
- toXml() - Method in class eu.maveniverse.domtrip.Node
-
Serializes this node to an XML string.
- toXml(DomTripConfig) - Method in class eu.maveniverse.domtrip.Editor
-
Serializes the document to XML string with custom configuration.
- toXml(OutputStream) - Method in class eu.maveniverse.domtrip.Document
-
Serializes this document to an OutputStream using the document's encoding.
- toXml(OutputStream, String) - Method in class eu.maveniverse.domtrip.Document
-
Serializes this document to an OutputStream using the specified encoding.
- toXml(OutputStream, Charset) - Method in class eu.maveniverse.domtrip.Document
-
Serializes this document to an OutputStream using the specified charset.
- toXml(StringBuilder) - Method in class eu.maveniverse.domtrip.Comment
-
Serializes this comment to XML, appending to the provided StringBuilder.
- toXml(StringBuilder) - Method in class eu.maveniverse.domtrip.Document
-
Serializes this document to XML, appending to the provided StringBuilder.
- toXml(StringBuilder) - Method in class eu.maveniverse.domtrip.Element
-
Serialize this element into XML and append the result to the supplied StringBuilder.
- toXml(StringBuilder) - Method in class eu.maveniverse.domtrip.Node
-
Serializes this node to XML, appending to the provided StringBuilder.
- toXml(StringBuilder) - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- toXml(StringBuilder) - Method in class eu.maveniverse.domtrip.Text
-
Appends this text node's XML representation to the provided StringBuilder.
- toXml(StringBuilder, boolean) - Method in class eu.maveniverse.domtrip.Attribute
-
Serializes this attribute to XML
- toXmlPretty() - Method in class eu.maveniverse.domtrip.Editor
-
Serializes with pretty printing
- trailingWhitespace() - Method in class eu.maveniverse.domtrip.Text
-
Gets the trailing whitespace from the text content.
- Traversal Order: - Section in interface eu.maveniverse.domtrip.DomTripVisitor
- TreeWalker - Class in eu.maveniverse.domtrip
-
Lambda-friendly builder for configuring and executing tree traversals.
- trim() - Method in class eu.maveniverse.domtrip.Text
-
Trims whitespace from the content while preserving internal structure
- trimmedContent() - Method in class eu.maveniverse.domtrip.Text
-
Gets the text content with leading and trailing whitespace removed.
- type() - Method in class eu.maveniverse.domtrip.Comment
-
Returns the node type for this comment.
- type() - Method in class eu.maveniverse.domtrip.Document
-
Returns the node type for this document.
- type() - Method in class eu.maveniverse.domtrip.Element
-
Returns the node type for this element.
- type() - Method in class eu.maveniverse.domtrip.Node
-
Returns the type of this XML node.
- type() - Method in class eu.maveniverse.domtrip.ProcessingInstruction
- type() - Method in class eu.maveniverse.domtrip.Text
- type() - Method in class eu.maveniverse.domtrip.XmlChange
-
Returns the type of change.
- Type-Safe Node Hierarchy - Section in package eu.maveniverse.domtrip
U
- uncommentElement(Comment) - Method in class eu.maveniverse.domtrip.Editor
-
Uncomments a previously commented element by parsing the comment content back to XML.
- unescapeTextContent(String) - Static method in class eu.maveniverse.domtrip.Text
-
Unescapes XML entities in text content, including numeric character references.
- Usage: - Section in class eu.maveniverse.domtrip.Parser
- Usage Example - Section in package eu.maveniverse.domtrip
- Usage Example: - Section in class eu.maveniverse.domtrip.Node
- Usage Example: - Section in class eu.maveniverse.domtrip.TreeWalker
- Usage Example: - Section in exception class eu.maveniverse.domtrip.DomTripException
- Usage Example: - Section in interface eu.maveniverse.domtrip.DomTripVisitor
- Usage Examples: - Section in class eu.maveniverse.domtrip.Attribute
- Usage Examples: - Section in class eu.maveniverse.domtrip.Comment
- Usage Examples: - Section in class eu.maveniverse.domtrip.Document
- Usage Examples: - Section in class eu.maveniverse.domtrip.Element
- Usage Examples: - Section in class eu.maveniverse.domtrip.ElementQuery
- Usage Examples: - Section in class eu.maveniverse.domtrip.ProcessingInstruction
- Usage Examples: - Section in class eu.maveniverse.domtrip.QName
- Usage Examples: - Section in class eu.maveniverse.domtrip.Serializer
- Usage Examples: - Section in class eu.maveniverse.domtrip.Text
- Usage Examples: - Section in class eu.maveniverse.domtrip.XPathExpression
- Usage Examples: - Section in class eu.maveniverse.domtrip.sax.DomTripSAXSource
- Usage Examples: - Section in class eu.maveniverse.domtrip.sax.SAXOutputter
- Usage Examples: - Section in class eu.maveniverse.domtrip.stax.DomTripStAXSource
- Usage Examples: - Section in class eu.maveniverse.domtrip.stax.DomTripStreamReader
- Usage Examples: - Section in enum eu.maveniverse.domtrip.EmptyElementStyle
- Usage Examples: - Section in enum eu.maveniverse.domtrip.QuoteStyle
- Usage Examples: - Section in eu.maveniverse.domtrip.Document.of(Path)
- Usage Examples: - Section in eu.maveniverse.domtrip.Document.parseFragment(String)
- Usage Examples: - Section in eu.maveniverse.domtrip.Editor.Editor(Document)
- Usage Examples: - Section in eu.maveniverse.domtrip.Editor.Editor(Document, DomTripConfig)
V
- value() - Method in class eu.maveniverse.domtrip.Attribute
- value(String) - Method in class eu.maveniverse.domtrip.Attribute
- valueOf(String) - Static method in enum eu.maveniverse.domtrip.ChangeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum eu.maveniverse.domtrip.DomTripVisitor.Action
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum eu.maveniverse.domtrip.EmptyElementStyle
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum eu.maveniverse.domtrip.Node.NodeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum eu.maveniverse.domtrip.QuoteStyle
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum eu.maveniverse.domtrip.ChangeType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum eu.maveniverse.domtrip.DomTripVisitor.Action
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum eu.maveniverse.domtrip.EmptyElementStyle
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum eu.maveniverse.domtrip.Node.NodeType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum eu.maveniverse.domtrip.QuoteStyle
-
Returns an array containing the constants of this enum type, in the order they are declared.
- version() - Method in class eu.maveniverse.domtrip.Document
-
Gets the XML version for this document.
- version(String) - Method in class eu.maveniverse.domtrip.Document
-
Set the XML version of this document.
- visitComment(Comment) - Method in interface eu.maveniverse.domtrip.DomTripVisitor
-
Called for comment nodes during traversal.
- visitProcessingInstruction(ProcessingInstruction) - Method in interface eu.maveniverse.domtrip.DomTripVisitor
-
Called for processing instruction nodes during traversal.
- visitText(Text) - Method in interface eu.maveniverse.domtrip.DomTripVisitor
-
Called for text nodes during traversal.
W
- walk() - Method in class eu.maveniverse.domtrip.Element
-
Creates a lambda-friendly tree walker starting from this element.
- walk(DomTripVisitor) - Method in class eu.maveniverse.domtrip.Editor
-
Walks the entire document tree using the given visitor.
- What is NOT Supported: - Section in class eu.maveniverse.domtrip.XPathExpression
- where(Predicate) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Applies a custom filter predicate.
- WHITESPACE_CHANGED - Enum constant in enum eu.maveniverse.domtrip.ChangeType
-
Indentation or spacing changed (formatting only, no semantic effect).
- Whitespace Normalization: - Section in class eu.maveniverse.domtrip.Parser
- withAttribute(QName) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements that have the specified QName attribute.
- withAttribute(QName, String) - Method in class eu.maveniverse.domtrip.Editor.EditorElementBuilder
-
Adds an attribute to this element using a QName.
- withAttribute(QName, String) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements that have the specified QName attribute with the given value.
- withAttribute(String) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements that have the specified attribute.
- withAttribute(String, String) - Method in class eu.maveniverse.domtrip.Editor.EditorElementBuilder
-
Adds an attribute to this element.
- withAttribute(String, String) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements that have the specified attribute with the given value.
- withAttributes(String, Map) - Static method in class eu.maveniverse.domtrip.Element
-
Creates an element with attributes.
- withAttributes(Map) - Method in class eu.maveniverse.domtrip.Editor.EditorElementBuilder
-
Adds multiple attributes to this element.
- withAutoDetectedEmptyElementStyle(Document) - Method in class eu.maveniverse.domtrip.DomTripConfig
-
Automatically detects and configures the empty element style based on existing empty elements in the provided document.
- withChildren() - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements that have child elements.
- withCommentPreservation(boolean) - Method in class eu.maveniverse.domtrip.DomTripConfig
- withContent(String) - Method in class eu.maveniverse.domtrip.Editor.EditorCommentBuilder
-
Sets the content of this comment.
- withContent(String) - Method in class eu.maveniverse.domtrip.Editor.EditorTextBuilder
-
Sets the content of this text node.
- withDefaultQuoteStyle(QuoteStyle) - Method in class eu.maveniverse.domtrip.DomTripConfig
- withDoctype(String, String, String) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a document with XML declaration and DOCTYPE.
- withEmptyElementStyle(EmptyElementStyle) - Method in class eu.maveniverse.domtrip.DomTripConfig
- withIgnoreInvalidEncoding(boolean) - Method in class eu.maveniverse.domtrip.DomTripConfig
- withIndentString(String) - Method in class eu.maveniverse.domtrip.DomTripConfig
- withLineEnding(String) - Method in class eu.maveniverse.domtrip.DomTripConfig
- withName(String) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements by local name.
- withNamespace(String) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements by namespace URI.
- withNamespaceURI(String) - Method in class eu.maveniverse.domtrip.QName
-
Creates a new QName with the same local name and prefix but different namespace URI.
- withoutChildren() - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements that have no child elements.
- withPrecedingWhitespace(String) - Method in class eu.maveniverse.domtrip.Attribute
-
Creates a new attribute with the specified preceding whitespace, preserving other properties.
- withPrefix(String) - Method in class eu.maveniverse.domtrip.QName
-
Creates a new QName with the same namespace URI and local name but different prefix.
- withPrettyPrint(boolean) - Method in class eu.maveniverse.domtrip.DomTripConfig
- withProcessingInstructionPreservation(boolean) - Method in class eu.maveniverse.domtrip.DomTripConfig
- withQName(QName) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements by QName (namespace URI and local name).
- withQNameAttributes(Map) - Method in class eu.maveniverse.domtrip.Editor.EditorElementBuilder
-
Adds multiple attributes to this element using QNames.
- withQuoteStyle(QuoteStyle) - Method in class eu.maveniverse.domtrip.Attribute
-
Creates a new attribute with the specified quote style, preserving other properties.
- withRootElement(String) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a document with a root element and XML declaration.
- withText(String) - Method in class eu.maveniverse.domtrip.Editor.EditorElementBuilder
-
Sets text content for this element.
- withTextAndAttributes(String, String, Map) - Static method in class eu.maveniverse.domtrip.Element
-
Creates an element with text content and attributes.
- withTextContent(String) - Method in class eu.maveniverse.domtrip.ElementQuery
-
Filters elements by text content.
- withValue(String) - Method in class eu.maveniverse.domtrip.Attribute
-
Creates a new attribute with the specified value, preserving other properties.
- withXmlDeclaration() - Method in class eu.maveniverse.domtrip.Document
-
Generates and sets an XML declaration based on current document settings.
- withXmlDeclaration(boolean) - Method in class eu.maveniverse.domtrip.DomTripConfig
- withXmlDeclaration(String, String) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a document with XML declaration.
- withXmlDeclaration(String, String, boolean) - Static method in class eu.maveniverse.domtrip.Document
-
Creates a document with XML declaration and standalone attribute.
- Working with Existing Documents: - Section in class eu.maveniverse.domtrip.Editor
X
- XmlChange - Class in eu.maveniverse.domtrip
-
Represents a single change detected between two XML documents.
- XmlChange(ChangeType, String, String, String, Node, Node) - Constructor for class eu.maveniverse.domtrip.XmlChange
-
Creates a new XmlChange.
- XML Comment Syntax: - Section in class eu.maveniverse.domtrip.Comment
- xmlContent - Variable in exception class eu.maveniverse.domtrip.DomTripException
- xmlContent() - Method in exception class eu.maveniverse.domtrip.DomTripException
-
Gets the XML content that was being parsed when the error occurred.
- xmlDeclaration() - Method in class eu.maveniverse.domtrip.Document
-
Gets the XML declaration string for this document.
- xmlDeclaration(String) - Method in class eu.maveniverse.domtrip.Document
-
Sets the XML declaration for this document.
- XmlDiff - Class in eu.maveniverse.domtrip
-
XML-aware structural diff engine that compares two documents and detects both semantic and formatting-only changes.
- XML Specification Compliance: - Section in enum eu.maveniverse.domtrip.EmptyElementStyle
- XML Specification Compliance: - Section in enum eu.maveniverse.domtrip.QuoteStyle
- XPathExpression - Class in eu.maveniverse.domtrip
-
Mini-XPath expression support for string-based element queries.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
Attribute.copy()instead.