Package com.android.aapt
Enum Resources.Attribute.FormatFlags
- java.lang.Object
-
- java.lang.Enum<Resources.Attribute.FormatFlags>
-
- com.android.aapt.Resources.Attribute.FormatFlags
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<Resources.Attribute.FormatFlags>
- Enclosing class:
- Resources.Attribute
public static enum Resources.Attribute.FormatFlags extends java.lang.Enum<Resources.Attribute.FormatFlags> implements com.google.protobuf.ProtocolMessageEnum
Bitmask of formats allowed for an attribute.
Protobuf enumaapt.pb.Attribute.FormatFlags
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYAllows any type except ENUM and FLAGS.BOOLEANAllows any boolean BinaryPrimitive values.COLORAllows any color BinaryPrimitive values.DIMENSIONAllows any dimension BinaryPrimitive values.ENUMAllows enums that are defined in the Attribute's symbols.FLAGSENUM and FLAGS cannot BOTH be set.FLOATAllows any float BinaryPrimitive values.FRACTIONAllows any fraction BinaryPrimitive values.INTEGERAllows any integer BinaryPrimitive values.NONEProto3 requires a default of 0.REFERENCEAllows Reference values.STRINGAllows String/StyledString values.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intANY_VALUEAllows any type except ENUM and FLAGS.static intBOOLEAN_VALUEAllows any boolean BinaryPrimitive values.static intCOLOR_VALUEAllows any color BinaryPrimitive values.static intDIMENSION_VALUEAllows any dimension BinaryPrimitive values.static intENUM_VALUEAllows enums that are defined in the Attribute's symbols.static intFLAGS_VALUEENUM and FLAGS cannot BOTH be set.static intFLOAT_VALUEAllows any float BinaryPrimitive values.static intFRACTION_VALUEAllows any fraction BinaryPrimitive values.static intINTEGER_VALUEAllows any integer BinaryPrimitive values.static intNONE_VALUEProto3 requires a default of 0.static intREFERENCE_VALUEAllows Reference values.static intSTRING_VALUEAllows String/StyledString values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Resources.Attribute.FormatFlagsforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Resources.Attribute.FormatFlags>internalGetValueMap()static Resources.Attribute.FormatFlagsvalueOf(int value)Deprecated.static Resources.Attribute.FormatFlagsvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Resources.Attribute.FormatFlagsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Resources.Attribute.FormatFlags[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Resources.Attribute.FormatFlags NONE
Proto3 requires a default of 0.
NONE = 0;
-
ANY
public static final Resources.Attribute.FormatFlags ANY
Allows any type except ENUM and FLAGS.
ANY = 65535;
-
REFERENCE
public static final Resources.Attribute.FormatFlags REFERENCE
Allows Reference values.
REFERENCE = 1;
-
STRING
public static final Resources.Attribute.FormatFlags STRING
Allows String/StyledString values.
STRING = 2;
-
INTEGER
public static final Resources.Attribute.FormatFlags INTEGER
Allows any integer BinaryPrimitive values.
INTEGER = 4;
-
BOOLEAN
public static final Resources.Attribute.FormatFlags BOOLEAN
Allows any boolean BinaryPrimitive values.
BOOLEAN = 8;
-
COLOR
public static final Resources.Attribute.FormatFlags COLOR
Allows any color BinaryPrimitive values.
COLOR = 16;
-
FLOAT
public static final Resources.Attribute.FormatFlags FLOAT
Allows any float BinaryPrimitive values.
FLOAT = 32;
-
DIMENSION
public static final Resources.Attribute.FormatFlags DIMENSION
Allows any dimension BinaryPrimitive values.
DIMENSION = 64;
-
FRACTION
public static final Resources.Attribute.FormatFlags FRACTION
Allows any fraction BinaryPrimitive values.
FRACTION = 128;
-
ENUM
public static final Resources.Attribute.FormatFlags ENUM
Allows enums that are defined in the Attribute's symbols.
ENUM = 65536;
-
FLAGS
public static final Resources.Attribute.FormatFlags FLAGS
ENUM and FLAGS cannot BOTH be set.
FLAGS = 131072;
-
UNRECOGNIZED
public static final Resources.Attribute.FormatFlags UNRECOGNIZED
-
-
Field Detail
-
NONE_VALUE
public static final int NONE_VALUE
Proto3 requires a default of 0.
NONE = 0;- See Also:
- Constant Field Values
-
ANY_VALUE
public static final int ANY_VALUE
Allows any type except ENUM and FLAGS.
ANY = 65535;- See Also:
- Constant Field Values
-
REFERENCE_VALUE
public static final int REFERENCE_VALUE
Allows Reference values.
REFERENCE = 1;- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
Allows String/StyledString values.
STRING = 2;- See Also:
- Constant Field Values
-
INTEGER_VALUE
public static final int INTEGER_VALUE
Allows any integer BinaryPrimitive values.
INTEGER = 4;- See Also:
- Constant Field Values
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUE
Allows any boolean BinaryPrimitive values.
BOOLEAN = 8;- See Also:
- Constant Field Values
-
COLOR_VALUE
public static final int COLOR_VALUE
Allows any color BinaryPrimitive values.
COLOR = 16;- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
Allows any float BinaryPrimitive values.
FLOAT = 32;- See Also:
- Constant Field Values
-
DIMENSION_VALUE
public static final int DIMENSION_VALUE
Allows any dimension BinaryPrimitive values.
DIMENSION = 64;- See Also:
- Constant Field Values
-
FRACTION_VALUE
public static final int FRACTION_VALUE
Allows any fraction BinaryPrimitive values.
FRACTION = 128;- See Also:
- Constant Field Values
-
ENUM_VALUE
public static final int ENUM_VALUE
Allows enums that are defined in the Attribute's symbols.
ENUM = 65536;- See Also:
- Constant Field Values
-
FLAGS_VALUE
public static final int FLAGS_VALUE
ENUM and FLAGS cannot BOTH be set.
FLAGS = 131072;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Resources.Attribute.FormatFlags[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Resources.Attribute.FormatFlags c : Resources.Attribute.FormatFlags.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Resources.Attribute.FormatFlags valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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 public static Resources.Attribute.FormatFlags valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static Resources.Attribute.FormatFlags forNumber(int value)
- 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 type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-