Uses of Class
eu.maveniverse.domtrip.DomTripException
Packages that use DomTripException
-
Uses of DomTripException in eu.maveniverse.domtrip
Methods in eu.maveniverse.domtrip that throw DomTripExceptionModifier and TypeMethodDescriptionEditor.addComment(ContainerNode parent, String content) Adds a comment as a child of the specified parentEditor.addElement(Element parent, QName qname) Adds a new element using a QName.Editor.addElement(Element parent, QName qname, String textContent) Adds a new element using a QName with text content.Editor.addElement(Element parent, String elementName) Adds a new element as a child of the specified parent elementEditor.addElement(Element parent, String elementName, String textContent) Adds a new element with text contentvoidEditor.addElements(Element parent, Map<String, String> nameValuePairs) Batch operation to add multiple child elements with text content.voidEditor.addQNameElements(Element parent, Map<QName, String> qnameValuePairs) Batch operation to add multiple child elements with text content using QNames.Editor.EditorCommentBuilder.build()Builds and adds the comment to the document.Editor.EditorElementBuilder.build()Builds and adds the element to the document.Editor.EditorTextBuilder.build()Builds and adds the text node to the document.static ElementCreates a CDATA element.Editor.commentOutElement(Element element) Comments out an element by wrapping it in an XML comment.Editor.commentOutElements(Element... elements) Comments out multiple elements as a single block comment.voidEditor.createDocument(String rootElementName) Creates a new XML document with the specified root element.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.static QuoteStyleQuoteStyle.fromChar(char c) Returns the QuoteStyle corresponding to the given character.Editor.insertElementAfter(Element referenceElement, String elementName) Inserts a new element after the specified reference element.Editor.insertElementAfter(Element referenceElement, String elementName, String textContent) Inserts a new element with text content after the specified reference element.Editor.insertElementAt(Element parent, int index, String elementName) Inserts a new element at the specified position within the parent.Editor.insertElementAt(Element parent, int index, String elementName, String textContent) Inserts a new element with text content at the specified position.Editor.insertElementBefore(Element referenceElement, String elementName) Inserts a new element before the specified reference element.Editor.insertElementBefore(Element referenceElement, String elementName, String textContent) Inserts a new element with text content before the specified reference element.static DocumentCreates a minimal document with just a root element (no XML declaration).static AttributeCreates an attribute from a QName and value.static DocumentDocument.of(InputStream inputStream) Creates a document by parsing XML from an InputStream with automatic encoding detection.static DocumentDocument.of(InputStream inputStream, String defaultEncoding) Creates a document by parsing XML from an InputStream with encoding detection and fallback.static DocumentDocument.of(InputStream inputStream, Charset defaultCharset) Creates a document by parsing XML from an InputStream with encoding detection and fallback.static DocumentCreates a document by parsing the provided XML string.static DocumentCreates a document by parsing XML from a file path with automatic encoding detection.static ElementCreates an element from a QName.static ElementCreates a simple element.static QNameCreates a QName for an element with no namespace.static QNameCreates a QName with the specified namespace URI and local name.static QNameCreates a QName with the specified namespace URI, local name, and preferred prefix.Parser.parse(InputStream inputStream) Parses XML from an InputStream with automatic encoding detection.Parser.parse(InputStream inputStream, String defaultEncoding) Parses XML from an InputStream with encoding detection and fallback.Parser.parse(InputStream inputStream, Charset defaultCharset) Parses XML from an InputStream with encoding detection and fallback.Parses an XML string into a lossless XML document tree.static QNameParses a qualified name string into a QName.Document.parseFragment(String xml) Parses an XML fragment into a list of nodes.Editor.root()Gets the root element of the document.static ElementElement.selfClosing(String name) Creates a self-closing element.voidSerializer.serialize(Document document, OutputStream outputStream) Serializes an XML document to an OutputStream using the document's encoding.voidSerializer.serialize(Document document, OutputStream outputStream, String encoding) Serializes an XML document to an OutputStream using the specified encoding.voidSerializer.serialize(Document document, OutputStream outputStream, Charset charset) Serializes an XML document to an OutputStream using the specified charset.voidSerializer.serialize(Node node, OutputStream outputStream) Serializes a single node to an OutputStream using UTF-8 encoding.voidSerializer.serialize(Node node, OutputStream outputStream, String encoding) Serializes a single node to an OutputStream using the specified encoding.voidSerializer.serialize(Node node, OutputStream outputStream, Charset charset) Serializes a single node to an OutputStream using the specified charset.voidEditor.setAttribute(Element element, String name, String value) Adds or updates an attribute on an element with intelligent formatting preservation.voidEditor.setAttributes(Element element, Map<String, String> attributes) Batch operation to set multiple attributes on an element.voidEditor.setTextContent(Element element, String content) Sets the text content of an element, preserving the node type (CDATA vs plain text) and surrounding whitespace of the existing content.static ElementCreates an element from a QName with text content.static ElementCreates a simple text element.voidDocument.toXml(OutputStream outputStream) Serializes this document to an OutputStream using the document's encoding.voidDocument.toXml(OutputStream outputStream, String encoding) Serializes this document to an OutputStream using the specified encoding.voidDocument.toXml(OutputStream outputStream, Charset charset) Serializes this document to an OutputStream using the specified charset.Editor.uncommentElement(Comment comment) Uncomments a previously commented element by parsing the comment content back to XML.static ElementElement.withAttributes(String name, Map<String, String> attributes) Creates an element with attributes.QName.withNamespaceURI(String newNamespaceURI) Creates a new QName with the same local name and prefix but different namespace URI.QName.withPrefix(String newPrefix) Creates a new QName with the same namespace URI and local name but different prefix.static DocumentDocument.withRootElement(String rootElementName) Creates a document with a root element and XML declaration.static ElementCreates an element with text content and attributes.Constructors in eu.maveniverse.domtrip that throw DomTripException