Uses of Class
cloud.opencode.base.xml.builder.XmlBuilder
Packages that use XmlBuilder
Package
Description
OpenCode Base XML Module - Comprehensive XML processing library
OpenCode Base XML 模块 - 全面的 XML 处理库
Builder Package - Fluent XML builders
构建器包 - 流式 XML 构建器
-
Uses of XmlBuilder in cloud.opencode.base.xml
Methods in cloud.opencode.base.xml that return XmlBuilderModifier and TypeMethodDescriptionstatic XmlBuilderCreates an XML builder with the given root element name.static XmlBuilderCreates an XML builder with namespace. -
Uses of XmlBuilder in cloud.opencode.base.xml.builder
Methods in cloud.opencode.base.xml.builder that return XmlBuilderModifier and TypeMethodDescriptionAdds an attribute with boolean value.Adds an attribute with number value.Adds an attribute to the current element.Adds an attribute with namespace to the current element.XmlBuilder.attributeIfNotNull(String name, String value) Adds an attribute if value is not null.Adds CDATA content to the current element.Adds a comment to the current element.XmlBuilder.configure(Consumer<XmlBuilder> configurer) Configures the current element using a consumer.static XmlBuilderCreates a new XML builder with the given root element name.static XmlBuilderCreates a new XML builder with namespace.XmlBuilder.defaultNamespace(String namespaceURI) Sets the default namespace on the current element.Adds a complete element with boolean content.Adds a complete element with number content.Adds a complete element with text content.XmlBuilder.elementIfNotNull(String name, String text) Adds a complete element if value is not null.XmlBuilder.emptyElement(String name) Adds an empty element.Sets the XML encoding.XmlBuilder.end()Ends the current element and returns to the parent.Adds a namespace declaration to the current element.XmlBuilder.processingInstruction(String target, String data) Adds a processing instruction.XmlBuilder.standalone(boolean standalone) Sets the standalone declaration.XmlBuilder.startElement(String name) Starts a new child element.XmlBuilder.startElement(String namespaceURI, String name) Starts a new child element with namespace.XmlBuilder.startElement(String namespaceURI, String prefix, String localName) Starts a new child element with prefix and namespace.Adds text content to the current element.Sets the XML version.Method parameters in cloud.opencode.base.xml.builder with type arguments of type XmlBuilderModifier and TypeMethodDescriptionXmlBuilder.configure(Consumer<XmlBuilder> configurer) Configures the current element using a consumer.