Package com.android.aapt
Class Resources.XmlElement.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.XmlElement.Builder>
com.android.aapt.Resources.XmlElement.Builder
- All Implemented Interfaces:
Resources.XmlElementOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Resources.XmlElement
public static final class Resources.XmlElement.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.XmlElement.Builder>
implements Resources.XmlElementOrBuilder
An <element> in an XML document.Protobuf type
aapt.pb.XmlElement-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttribute(Iterable<? extends Resources.XmlAttribute> values) The attributes of this element.addAllChild(Iterable<? extends Resources.XmlNode> values) The children of this element.addAllNamespaceDeclaration(Iterable<? extends Resources.XmlNamespace> values) Namespaces defined on this element.addAttribute(int index, Resources.XmlAttribute value) The attributes of this element.addAttribute(int index, Resources.XmlAttribute.Builder builderForValue) The attributes of this element.The attributes of this element.addAttribute(Resources.XmlAttribute.Builder builderForValue) The attributes of this element.The attributes of this element.addAttributeBuilder(int index) The attributes of this element.addChild(int index, Resources.XmlNode value) The children of this element.addChild(int index, Resources.XmlNode.Builder builderForValue) The children of this element.addChild(Resources.XmlNode value) The children of this element.addChild(Resources.XmlNode.Builder builderForValue) The children of this element.The children of this element.addChildBuilder(int index) The children of this element.addNamespaceDeclaration(int index, Resources.XmlNamespace value) Namespaces defined on this element.addNamespaceDeclaration(int index, Resources.XmlNamespace.Builder builderForValue) Namespaces defined on this element.Namespaces defined on this element.addNamespaceDeclaration(Resources.XmlNamespace.Builder builderForValue) Namespaces defined on this element.Namespaces defined on this element.addNamespaceDeclarationBuilder(int index) Namespaces defined on this element.build()clear()The attributes of this element.The children of this element.The name of this element.Namespaces defined on this element.The namespace URI of this element.getAttribute(int index) The attributes of this element.getAttributeBuilder(int index) The attributes of this element.The attributes of this element.intThe attributes of this element.The attributes of this element.getAttributeOrBuilder(int index) The attributes of this element.List<? extends Resources.XmlAttributeOrBuilder>The attributes of this element.getChild(int index) The children of this element.getChildBuilder(int index) The children of this element.The children of this element.intThe children of this element.The children of this element.getChildOrBuilder(int index) The children of this element.List<? extends Resources.XmlNodeOrBuilder>The children of this element.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The name of this element.com.google.protobuf.ByteStringThe name of this element.getNamespaceDeclaration(int index) Namespaces defined on this element.getNamespaceDeclarationBuilder(int index) Namespaces defined on this element.Namespaces defined on this element.intNamespaces defined on this element.Namespaces defined on this element.getNamespaceDeclarationOrBuilder(int index) Namespaces defined on this element.List<? extends Resources.XmlNamespaceOrBuilder>Namespaces defined on this element.The namespace URI of this element.com.google.protobuf.ByteStringThe namespace URI of this element.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Resources.XmlElement other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAttribute(int index) The attributes of this element.removeChild(int index) The children of this element.removeNamespaceDeclaration(int index) Namespaces defined on this element.setAttribute(int index, Resources.XmlAttribute value) The attributes of this element.setAttribute(int index, Resources.XmlAttribute.Builder builderForValue) The attributes of this element.setChild(int index, Resources.XmlNode value) The children of this element.setChild(int index, Resources.XmlNode.Builder builderForValue) The children of this element.The name of this element.setNameBytes(com.google.protobuf.ByteString value) The name of this element.setNamespaceDeclaration(int index, Resources.XmlNamespace value) Namespaces defined on this element.setNamespaceDeclaration(int index, Resources.XmlNamespace.Builder builderForValue) Namespaces defined on this element.setNamespaceUri(String value) The namespace URI of this element.setNamespaceUriBytes(com.google.protobuf.ByteString value) The namespace URI of this element.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.XmlElement.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.XmlElement.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.XmlElement.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.XmlElement.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.XmlElement.Builder>
-
mergeFrom
public Resources.XmlElement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.XmlElement.Builder>- Throws:
IOException
-
getNamespaceDeclarationList
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationListin interfaceResources.XmlElementOrBuilder
-
getNamespaceDeclarationCount
public int getNamespaceDeclarationCount()Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationCountin interfaceResources.XmlElementOrBuilder
-
getNamespaceDeclaration
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationin interfaceResources.XmlElementOrBuilder
-
setNamespaceDeclaration
public Resources.XmlElement.Builder setNamespaceDeclaration(int index, Resources.XmlNamespace value) Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
setNamespaceDeclaration
public Resources.XmlElement.Builder setNamespaceDeclaration(int index, Resources.XmlNamespace.Builder builderForValue) Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
addNamespaceDeclaration
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
addNamespaceDeclaration
public Resources.XmlElement.Builder addNamespaceDeclaration(int index, Resources.XmlNamespace value) Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
addNamespaceDeclaration
public Resources.XmlElement.Builder addNamespaceDeclaration(Resources.XmlNamespace.Builder builderForValue) Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
addNamespaceDeclaration
public Resources.XmlElement.Builder addNamespaceDeclaration(int index, Resources.XmlNamespace.Builder builderForValue) Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
addAllNamespaceDeclaration
public Resources.XmlElement.Builder addAllNamespaceDeclaration(Iterable<? extends Resources.XmlNamespace> values) Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
clearNamespaceDeclaration
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
removeNamespaceDeclaration
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
getNamespaceDeclarationBuilder
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
getNamespaceDeclarationOrBuilder
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationOrBuilderin interfaceResources.XmlElementOrBuilder
-
getNamespaceDeclarationOrBuilderList
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationOrBuilderListin interfaceResources.XmlElementOrBuilder
-
addNamespaceDeclarationBuilder
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
addNamespaceDeclarationBuilder
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
getNamespaceDeclarationBuilderList
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1; -
getNamespaceUri
The namespace URI of this element.
string namespace_uri = 2;- Specified by:
getNamespaceUriin interfaceResources.XmlElementOrBuilder- Returns:
- The namespaceUri.
-
getNamespaceUriBytes
public com.google.protobuf.ByteString getNamespaceUriBytes()The namespace URI of this element.
string namespace_uri = 2;- Specified by:
getNamespaceUriBytesin interfaceResources.XmlElementOrBuilder- Returns:
- The bytes for namespaceUri.
-
setNamespaceUri
The namespace URI of this element.
string namespace_uri = 2;- Parameters:
value- The namespaceUri to set.- Returns:
- This builder for chaining.
-
clearNamespaceUri
The namespace URI of this element.
string namespace_uri = 2;- Returns:
- This builder for chaining.
-
setNamespaceUriBytes
The namespace URI of this element.
string namespace_uri = 2;- Parameters:
value- The bytes for namespaceUri to set.- Returns:
- This builder for chaining.
-
getName
The name of this element.
string name = 3;- Specified by:
getNamein interfaceResources.XmlElementOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of this element.
string name = 3;- Specified by:
getNameBytesin interfaceResources.XmlElementOrBuilder- Returns:
- The bytes for name.
-
setName
The name of this element.
string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of this element.
string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
The name of this element.
string name = 3;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAttributeList
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributeListin interfaceResources.XmlElementOrBuilder
-
getAttributeCount
public int getAttributeCount()The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributeCountin interfaceResources.XmlElementOrBuilder
-
getAttribute
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributein interfaceResources.XmlElementOrBuilder
-
setAttribute
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
setAttribute
public Resources.XmlElement.Builder setAttribute(int index, Resources.XmlAttribute.Builder builderForValue) The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
addAttribute
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
addAttribute
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
addAttribute
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
addAttribute
public Resources.XmlElement.Builder addAttribute(int index, Resources.XmlAttribute.Builder builderForValue) The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
addAllAttribute
public Resources.XmlElement.Builder addAllAttribute(Iterable<? extends Resources.XmlAttribute> values) The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
clearAttribute
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
removeAttribute
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
getAttributeBuilder
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
getAttributeOrBuilder
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributeOrBuilderin interfaceResources.XmlElementOrBuilder
-
getAttributeOrBuilderList
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributeOrBuilderListin interfaceResources.XmlElementOrBuilder
-
addAttributeBuilder
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
addAttributeBuilder
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
getAttributeBuilderList
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4; -
getChildList
The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildListin interfaceResources.XmlElementOrBuilder
-
getChildCount
public int getChildCount()The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildCountin interfaceResources.XmlElementOrBuilder
-
getChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildin interfaceResources.XmlElementOrBuilder
-
setChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
setChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
addChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
addChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
addChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
addChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
addAllChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
clearChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
removeChild
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
getChildBuilder
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
getChildOrBuilder
The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildOrBuilderin interfaceResources.XmlElementOrBuilder
-
getChildOrBuilderList
The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildOrBuilderListin interfaceResources.XmlElementOrBuilder
-
addChildBuilder
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
addChildBuilder
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
getChildBuilderList
The children of this element.
repeated .aapt.pb.XmlNode child = 5; -
setUnknownFields
public final Resources.XmlElement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.XmlElement.Builder>
-
mergeUnknownFields
public final Resources.XmlElement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.XmlElement.Builder>
-