Class Editor.NodeBuilder
java.lang.Object
eu.maveniverse.domtrip.Editor.NodeBuilder
- Enclosing class:
Editor
Fluent builder for creating and adding nodes to the document.
This builder provides a convenient way to add nodes to existing documents while maintaining the Editor's whitespace management and configuration.
-
Method Summary
Modifier and TypeMethodDescriptioncomment()Creates a comment builder that will be added to the document.Creates an element builder using a QName that will be added to the document.Creates an element builder that will be added to the document.text()Creates a text builder that will be added to the document.
-
Method Details
-
element
Creates an element builder that will be added to the document.- Parameters:
name- the element name- Returns:
- a new EditorElementBuilder for fluent element construction
- Throws:
DomTripException
-
element
Creates an element builder using a QName that will be added to the document.- Parameters:
qname- the element QName- Returns:
- a new EditorElementBuilder for fluent element construction
- Throws:
DomTripException
-
comment
Creates a comment builder that will be added to the document.- Returns:
- a new EditorCommentBuilder for fluent comment construction
-
text
Creates a text builder that will be added to the document.- Returns:
- a new EditorTextBuilder for fluent text construction
-