Package com.android.aapt
Interface Resources.AttributeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Resources.Attribute,Resources.Attribute.Builder
- Enclosing class:
- Resources
public static interface Resources.AttributeOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintA bitmask of types that this XML attribute accepts.intThe largest integer allowed for this XML attribute.intThe smallest integer allowed for this XML attribute.getSymbol(int index) The set of enums/flags defined in this attribute.intThe set of enums/flags defined in this attribute.The set of enums/flags defined in this attribute.getSymbolOrBuilder(int index) The set of enums/flags defined in this attribute.List<? extends Resources.Attribute.SymbolOrBuilder>The set of enums/flags defined in this attribute.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getFormatFlags
int getFormatFlags()A bitmask of types that this XML attribute accepts. Corresponds to the flags in the enum FormatFlags.
uint32 format_flags = 1;- Returns:
- The formatFlags.
-
getMinInt
int getMinInt()The smallest integer allowed for this XML attribute. Only makes sense if the format includes FormatFlags::INTEGER.
int32 min_int = 2;- Returns:
- The minInt.
-
getMaxInt
int getMaxInt()The largest integer allowed for this XML attribute. Only makes sense if the format includes FormatFlags::INTEGER.
int32 max_int = 3;- Returns:
- The maxInt.
-
getSymbolList
List<Resources.Attribute.Symbol> getSymbolList()The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
getSymbol
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
getSymbolCount
int getSymbolCount()The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
getSymbolOrBuilderList
List<? extends Resources.Attribute.SymbolOrBuilder> getSymbolOrBuilderList()The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
getSymbolOrBuilder
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4;
-