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,java.io.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 typeaapt.pb.XmlElement- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResources.XmlElement.BuilderAn <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<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTE_FIELD_NUMBERstatic intCHILD_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNAMESPACE_DECLARATION_FIELD_NUMBERstatic intNAMESPACE_URI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Resources.XmlAttributegetAttribute(int index)The attributes of this element.intgetAttributeCount()The attributes of this element.java.util.List<Resources.XmlAttribute>getAttributeList()The attributes of this element.Resources.XmlAttributeOrBuildergetAttributeOrBuilder(int index)The attributes of this element.java.util.List<? extends Resources.XmlAttributeOrBuilder>getAttributeOrBuilderList()The attributes of this element.Resources.XmlNodegetChild(int index)The children of this element.intgetChildCount()The children of this element.java.util.List<Resources.XmlNode>getChildList()The children of this element.Resources.XmlNodeOrBuildergetChildOrBuilder(int index)The children of this element.java.util.List<? extends Resources.XmlNodeOrBuilder>getChildOrBuilderList()The children of this element.static Resources.XmlElementgetDefaultInstance()Resources.XmlElementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetName()The name of this element.com.google.protobuf.ByteStringgetNameBytes()The name of this element.Resources.XmlNamespacegetNamespaceDeclaration(int index)Namespaces defined on this element.intgetNamespaceDeclarationCount()Namespaces defined on this element.java.util.List<Resources.XmlNamespace>getNamespaceDeclarationList()Namespaces defined on this element.Resources.XmlNamespaceOrBuildergetNamespaceDeclarationOrBuilder(int index)Namespaces defined on this element.java.util.List<? extends Resources.XmlNamespaceOrBuilder>getNamespaceDeclarationOrBuilderList()Namespaces defined on this element.java.lang.StringgetNamespaceUri()The namespace URI of this element.com.google.protobuf.ByteStringgetNamespaceUriBytes()The namespace URI of this element.com.google.protobuf.Parser<Resources.XmlElement>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Resources.XmlElement.BuildernewBuilder()static Resources.XmlElement.BuildernewBuilder(Resources.XmlElement prototype)Resources.XmlElement.BuildernewBuilderForType()protected Resources.XmlElement.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Resources.XmlElementparseDelimitedFrom(java.io.InputStream input)static Resources.XmlElementparseDelimitedFrom(java.io.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(java.io.InputStream input)static Resources.XmlElementparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Resources.XmlElementparseFrom(java.nio.ByteBuffer data)static Resources.XmlElementparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Resources.XmlElement>parser()Resources.XmlElement.BuildertoBuilder()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, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAMESPACE_DECLARATION_FIELD_NUMBER
public static final int NAMESPACE_DECLARATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAMESPACE_URI_FIELD_NUMBER
public static final int NAMESPACE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRIBUTE_FIELD_NUMBER
public static final int ATTRIBUTE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CHILD_FIELD_NUMBER
public static final int CHILD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
public java.util.List<Resources.XmlNamespace> getNamespaceDeclarationList()
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationListin interfaceResources.XmlElementOrBuilder
-
getNamespaceDeclarationOrBuilderList
public java.util.List<? extends Resources.XmlNamespaceOrBuilder> 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
public Resources.XmlNamespace getNamespaceDeclaration(int index)
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationin interfaceResources.XmlElementOrBuilder
-
getNamespaceDeclarationOrBuilder
public Resources.XmlNamespaceOrBuilder getNamespaceDeclarationOrBuilder(int index)
Namespaces defined on this element.
repeated .aapt.pb.XmlNamespace namespace_declaration = 1;- Specified by:
getNamespaceDeclarationOrBuilderin interfaceResources.XmlElementOrBuilder
-
getNamespaceUri
public java.lang.String 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
public java.lang.String 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
public java.util.List<Resources.XmlAttribute> getAttributeList()
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributeListin interfaceResources.XmlElementOrBuilder
-
getAttributeOrBuilderList
public java.util.List<? extends Resources.XmlAttributeOrBuilder> 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
public Resources.XmlAttribute getAttribute(int index)
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributein interfaceResources.XmlElementOrBuilder
-
getAttributeOrBuilder
public Resources.XmlAttributeOrBuilder getAttributeOrBuilder(int index)
The attributes of this element.
repeated .aapt.pb.XmlAttribute attribute = 4;- Specified by:
getAttributeOrBuilderin interfaceResources.XmlElementOrBuilder
-
getChildList
public java.util.List<Resources.XmlNode> getChildList()
The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildListin interfaceResources.XmlElementOrBuilder
-
getChildOrBuilderList
public java.util.List<? extends Resources.XmlNodeOrBuilder> 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
public Resources.XmlNode getChild(int index)
The children of this element.
repeated .aapt.pb.XmlNode child = 5;- Specified by:
getChildin interfaceResources.XmlElementOrBuilder
-
getChildOrBuilder
public Resources.XmlNodeOrBuilder getChildOrBuilder(int index)
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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.XmlElement parseFrom(java.nio.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
public static Resources.XmlElement parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Resources.XmlElement parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Resources.XmlElement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Resources.XmlElement parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Resources.XmlElement parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Resources.XmlElement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Resources.XmlElement.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Resources.XmlElement.Builder newBuilder()
-
newBuilder
public static Resources.XmlElement.Builder newBuilder(Resources.XmlElement prototype)
-
toBuilder
public Resources.XmlElement.Builder 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
public static Resources.XmlElement getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Resources.XmlElement> parser()
-
getParserForType
public com.google.protobuf.Parser<Resources.XmlElement> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Resources.XmlElement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-