Package com.android.aapt
Class Resources.XmlElement
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.android.aapt.Resources.XmlElement
- All Implemented Interfaces:
Resources.XmlElementOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Resources
public static final class Resources.XmlElement
extends com.google.protobuf.GeneratedMessageV3
implements Resources.XmlElementOrBuilder
An <element> in an XML document.Protobuf type
aapt.pb.XmlElement- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn <element> in an XML document.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(int index) 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.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 Resources.XmlElementstatic final com.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.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.com.google.protobuf.Parser<Resources.XmlElement>intinthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Resources.XmlElement.Builderstatic Resources.XmlElement.BuildernewBuilder(Resources.XmlElement prototype) protected Resources.XmlElement.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Resources.XmlElementparseDelimitedFrom(InputStream input) static Resources.XmlElementparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.XmlElementparseFrom(byte[] data) static Resources.XmlElementparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.XmlElementparseFrom(com.google.protobuf.ByteString data) static Resources.XmlElementparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.XmlElementparseFrom(com.google.protobuf.CodedInputStream input) static Resources.XmlElementparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.XmlElementparseFrom(InputStream input) static Resources.XmlElementparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.XmlElementparseFrom(ByteBuffer data) static Resources.XmlElementparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Resources.XmlElement>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAMESPACE_DECLARATION_FIELD_NUMBER
public static final int NAMESPACE_DECLARATION_FIELD_NUMBER- See Also:
-
NAMESPACE_URI_FIELD_NUMBER
public static final int NAMESPACE_URI_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
ATTRIBUTE_FIELD_NUMBER
public static final int ATTRIBUTE_FIELD_NUMBER- See Also:
-
CHILD_FIELD_NUMBER
public static final int CHILD_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getNamespaceDeclarationList
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationListin interfaceResources.XmlElementOrBuilder
-
getNamespaceDeclarationOrBuilderList
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationOrBuilderListin 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
-
getNamespaceDeclarationOrBuilder
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationOrBuilderin interfaceResources.XmlElementOrBuilder
-
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.
-
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.
-
getAttributeList
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributeListin interfaceResources.XmlElementOrBuilder
-
getAttributeOrBuilderList
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributeOrBuilderListin 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
-
getAttributeOrBuilder
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributeOrBuilderin interfaceResources.XmlElementOrBuilder
-
getChildList
The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildListin interfaceResources.XmlElementOrBuilder
-
getChildOrBuilderList
The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildOrBuilderListin 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
-
getChildOrBuilder
The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildOrBuilderin interfaceResources.XmlElementOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Resources.XmlElement parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.XmlElement parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.XmlElement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.XmlElement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.XmlElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.XmlElement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Resources.XmlElement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Resources.XmlElement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.XmlElement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.XmlElement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Resources.XmlElement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-