Package com.android.aapt
Enum Class Resources.Attribute.FormatFlags
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Resources.Attribute.FormatFlags>,Constable
- Enclosing class:
- Resources.Attribute
public static enum Resources.Attribute.FormatFlags
extends Enum<Resources.Attribute.FormatFlags>
implements com.google.protobuf.ProtocolMessageEnum
Bitmask of formats allowed for an attribute.Protobuf enum
aapt.pb.Attribute.FormatFlags-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllows any type except ENUM and FLAGS.Allows any boolean BinaryPrimitive values.Allows any color BinaryPrimitive values.Allows any dimension BinaryPrimitive values.Allows enums that are defined in the Attribute's symbols.ENUM and FLAGS cannot BOTH be set.Allows any float BinaryPrimitive values.Allows any fraction BinaryPrimitive values.Allows any integer BinaryPrimitive values.Proto3 requires a default of 0.Allows Reference values.Allows String/StyledString values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAllows any type except ENUM and FLAGS.static final intAllows any boolean BinaryPrimitive values.static final intAllows any color BinaryPrimitive values.static final intAllows any dimension BinaryPrimitive values.static final intAllows enums that are defined in the Attribute's symbols.static final intENUM and FLAGS cannot BOTH be set.static final intAllows any float BinaryPrimitive values.static final intAllows any fraction BinaryPrimitive values.static final intAllows any integer BinaryPrimitive values.static final intProto3 requires a default of 0.static final intAllows Reference values.static final intAllows String/StyledString values. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Resources.Attribute.FormatFlags>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static Resources.Attribute.FormatFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Proto3 requires a default of 0.
NONE = 0; -
ANY
Allows any type except ENUM and FLAGS.
ANY = 65535; -
REFERENCE
Allows Reference values.
REFERENCE = 1; -
STRING
Allows String/StyledString values.
STRING = 2; -
INTEGER
Allows any integer BinaryPrimitive values.
INTEGER = 4; -
BOOLEAN
Allows any boolean BinaryPrimitive values.
BOOLEAN = 8; -
COLOR
Allows any color BinaryPrimitive values.
COLOR = 16; -
FLOAT
Allows any float BinaryPrimitive values.
FLOAT = 32; -
DIMENSION
Allows any dimension BinaryPrimitive values.
DIMENSION = 64; -
FRACTION
Allows any fraction BinaryPrimitive values.
FRACTION = 128; -
ENUM
Allows enums that are defined in the Attribute's symbols.
ENUM = 65536; -
FLAGS
ENUM and FLAGS cannot BOTH be set.
FLAGS = 131072; -
UNRECOGNIZED
-
-
Field Details
-
NONE_VALUE
public static final int NONE_VALUEProto3 requires a default of 0.
NONE = 0;- See Also:
-
ANY_VALUE
public static final int ANY_VALUEAllows any type except ENUM and FLAGS.
ANY = 65535;- See Also:
-
REFERENCE_VALUE
public static final int REFERENCE_VALUEAllows Reference values.
REFERENCE = 1;- See Also:
-
STRING_VALUE
public static final int STRING_VALUEAllows String/StyledString values.
STRING = 2;- See Also:
-
INTEGER_VALUE
public static final int INTEGER_VALUEAllows any integer BinaryPrimitive values.
INTEGER = 4;- See Also:
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUEAllows any boolean BinaryPrimitive values.
BOOLEAN = 8;- See Also:
-
COLOR_VALUE
public static final int COLOR_VALUEAllows any color BinaryPrimitive values.
COLOR = 16;- See Also:
-
FLOAT_VALUE
public static final int FLOAT_VALUEAllows any float BinaryPrimitive values.
FLOAT = 32;- See Also:
-
DIMENSION_VALUE
public static final int DIMENSION_VALUEAllows any dimension BinaryPrimitive values.
DIMENSION = 64;- See Also:
-
FRACTION_VALUE
public static final int FRACTION_VALUEAllows any fraction BinaryPrimitive values.
FRACTION = 128;- See Also:
-
ENUM_VALUE
public static final int ENUM_VALUEAllows enums that are defined in the Attribute's symbols.
ENUM = 65536;- See Also:
-
FLAGS_VALUE
public static final int FLAGS_VALUEENUM and FLAGS cannot BOTH be set.
FLAGS = 131072;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Resources.Attribute.FormatFlags> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Resources.Attribute.FormatFlags valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-