booster / com.didiglobal.booster.aapt2 / Resources / XmlElement / Builder

Builder

class Builder : Builder<Builder!>, XmlElementOrBuilder


      An <element> in an XML document.
      
Protobuf type aapt.pb.XmlElement

Functions

addAllAttribute


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun addAllAttribute(values: MutableIterable<XmlAttribute!>!): Builder!

addAllChild


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun addAllChild(values: MutableIterable<XmlNode!>!): Builder!

addAllNamespaceDeclaration


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun addAllNamespaceDeclaration(values: MutableIterable<XmlNamespace!>!): Builder!

addAttribute


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun addAttribute(value: XmlAttribute!): Builder!
fun addAttribute(index: Int, value: XmlAttribute!): Builder!
fun addAttribute(builderForValue: Builder!): Builder!
fun addAttribute(index: Int, builderForValue: Builder!): Builder!

addAttributeBuilder


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun addAttributeBuilder(): Builder!
fun addAttributeBuilder(index: Int): Builder!

addChild


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun addChild(value: XmlNode!): Builder!
fun addChild(index: Int, value: XmlNode!): Builder!
fun addChild(builderForValue: Builder!): Builder!
fun addChild(index: Int, builderForValue: Builder!): Builder!

addChildBuilder


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun addChildBuilder(): Builder!
fun addChildBuilder(index: Int): Builder!

addNamespaceDeclaration


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun addNamespaceDeclaration(value: XmlNamespace!): Builder!
fun addNamespaceDeclaration(index: Int, value: XmlNamespace!): Builder!
fun addNamespaceDeclaration(builderForValue: Builder!): Builder!
fun addNamespaceDeclaration(index: Int, builderForValue: Builder!): Builder!

addNamespaceDeclarationBuilder


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun addNamespaceDeclarationBuilder(): Builder!
fun addNamespaceDeclarationBuilder(index: Int): Builder!

addRepeatedField

fun addRepeatedField(field: FieldDescriptor!, value: Any!): Builder!

build

fun build(): XmlElement!

buildPartial

fun buildPartial(): XmlElement!

clear

fun clear(): Builder!

clearAttribute


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun clearAttribute(): Builder!

clearChild


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun clearChild(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearName


        The name of this element.
        
string name = 3;

fun clearName(): Builder!

clearNamespaceDeclaration


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun clearNamespaceDeclaration(): Builder!

clearNamespaceUri


        The namespace URI of this element.
        
string namespace_uri = 2;

fun clearNamespaceUri(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clone

fun clone(): Builder!

getAttribute


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun getAttribute(index: Int): XmlAttribute!

getAttributeBuilder


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun getAttributeBuilder(index: Int): Builder!

getAttributeBuilderList


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun getAttributeBuilderList(): MutableList<Builder!>!

getAttributeCount


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun getAttributeCount(): Int

getAttributeList


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun getAttributeList(): MutableList<XmlAttribute!>!

getAttributeOrBuilder


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun getAttributeOrBuilder(index: Int): XmlAttributeOrBuilder!

getAttributeOrBuilderList


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun getAttributeOrBuilderList(): MutableList<out XmlAttributeOrBuilder!>!

getChild


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun getChild(index: Int): XmlNode!

getChildBuilder


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun getChildBuilder(index: Int): Builder!

getChildBuilderList


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun getChildBuilderList(): MutableList<Builder!>!

getChildCount


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun getChildCount(): Int

getChildList


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun getChildList(): MutableList<XmlNode!>!

getChildOrBuilder


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun getChildOrBuilder(index: Int): XmlNodeOrBuilder!

getChildOrBuilderList


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun getChildOrBuilderList(): MutableList<out XmlNodeOrBuilder!>!

getDefaultInstanceForType

fun getDefaultInstanceForType(): XmlElement!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getName


        The name of this element.
        
string name = 3;

fun getName(): String!

getNameBytes


        The name of this element.
        
string name = 3;

fun getNameBytes(): ByteString!

getNamespaceDeclaration


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun getNamespaceDeclaration(index: Int): XmlNamespace!

getNamespaceDeclarationBuilder


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun getNamespaceDeclarationBuilder(index: Int): Builder!

getNamespaceDeclarationBuilderList


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun getNamespaceDeclarationBuilderList(): MutableList<Builder!>!

getNamespaceDeclarationCount


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun getNamespaceDeclarationCount(): Int

getNamespaceDeclarationList


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun getNamespaceDeclarationList(): MutableList<XmlNamespace!>!

getNamespaceDeclarationOrBuilder


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun getNamespaceDeclarationOrBuilder(index: Int): XmlNamespaceOrBuilder!

getNamespaceDeclarationOrBuilderList


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun getNamespaceDeclarationOrBuilderList(): MutableList<out XmlNamespaceOrBuilder!>!

getNamespaceUri


        The namespace URI of this element.
        
string namespace_uri = 2;

fun getNamespaceUri(): String!

getNamespaceUriBytes


        The namespace URI of this element.
        
string namespace_uri = 2;

fun getNamespaceUriBytes(): ByteString!

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeFrom

fun mergeFrom(other: Message!): Builder!
fun mergeFrom(other: XmlElement!): Builder!
fun mergeFrom(input: CodedInputStream!, extensionRegistry: ExtensionRegistryLite!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

removeAttribute


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun removeAttribute(index: Int): Builder!

removeChild


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun removeChild(index: Int): Builder!

removeNamespaceDeclaration


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun removeNamespaceDeclaration(index: Int): Builder!

setAttribute


        The attributes of this element.
        
repeated .aapt.pb.XmlAttribute attribute = 4;

fun setAttribute(index: Int, value: XmlAttribute!): Builder!
fun setAttribute(index: Int, builderForValue: Builder!): Builder!

setChild


        The children of this element.
        
repeated .aapt.pb.XmlNode child = 5;

fun setChild(index: Int, value: XmlNode!): Builder!
fun setChild(index: Int, builderForValue: Builder!): Builder!

setField

fun setField(field: FieldDescriptor!, value: Any!): Builder!

setName


        The name of this element.
        
string name = 3;

fun setName(value: String!): Builder!

setNameBytes


        The name of this element.
        
string name = 3;

fun setNameBytes(value: ByteString!): Builder!

setNamespaceDeclaration


        Namespaces defined on this element.
        
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;

fun setNamespaceDeclaration(index: Int, value: XmlNamespace!): Builder!
fun setNamespaceDeclaration(index: Int, builderForValue: Builder!): Builder!

setNamespaceUri


        The namespace URI of this element.
        
string namespace_uri = 2;

fun setNamespaceUri(value: String!): Builder!

setNamespaceUriBytes


        The namespace URI of this element.
        
string namespace_uri = 2;

fun setNamespaceUriBytes(value: ByteString!): Builder!

setRepeatedField

fun setRepeatedField(field: FieldDescriptor!, index: Int, value: Any!): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!