Uses of Class
cloud.opencode.base.xml.builder.ElementBuilder
Packages that use ElementBuilder
Package
Description
OpenCode Base XML Module - Comprehensive XML processing library
OpenCode Base XML 模块 - 全面的 XML 处理库
Builder Package - Fluent XML builders
构建器包 - 流式 XML 构建器
-
Uses of ElementBuilder in cloud.opencode.base.xml
Methods in cloud.opencode.base.xml that return ElementBuilder -
Uses of ElementBuilder in cloud.opencode.base.xml.builder
Methods in cloud.opencode.base.xml.builder that return ElementBuilderModifier and TypeMethodDescriptionAdds an attribute with boolean value.Adds an attribute with number value.Adds an attribute to the element.Adds an attribute with namespace.ElementBuilder.attributeIfNotNull(String name, String value) Adds an attribute if value is not null.Adds CDATA content.ElementBuilder.child(XmlElement xmlElement) Adds a built XmlElement as a child.Adds a child element with boolean content.Adds a child element with number content.Adds a child element with text content.ElementBuilder.child(String name, Consumer<ElementBuilder> configurer) Configures a child element using a consumer.ElementBuilder.childIfNotNull(String name, String text) Adds a child element if value is not null.Adds a comment.static ElementBuilderCreates a new element builder with the given name.static ElementBuilderCreates a new element builder with namespace.ElementBuilder.defaultNamespace(String namespaceURI) Sets the default namespace.ElementBuilder.emptyChild(String name) Adds an empty child element.ElementBuilder.endChild()Ends building the current child and returns to the parent.Adds a namespace declaration.ElementBuilder.startChild(String name) Starts building a child element.ElementBuilder.startChild(String namespaceURI, String name) Starts building a child element with namespace.Sets the text content of the element.Method parameters in cloud.opencode.base.xml.builder with type arguments of type ElementBuilderModifier and TypeMethodDescriptionElementBuilder.child(String name, Consumer<ElementBuilder> configurer) Configures a child element using a consumer.