Enum Class 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, 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
  • Enum Constant Details

  • Field Details

    • NONE_VALUE

      public static final int NONE_VALUE
       Proto3 requires a default of 0.
       
      NONE = 0;
      See Also:
    • ANY_VALUE

      public static final int ANY_VALUE
       Allows any type except ENUM and FLAGS.
       
      ANY = 65535;
      See Also:
    • REFERENCE_VALUE

      public static final int REFERENCE_VALUE
       Allows Reference values.
       
      REFERENCE = 1;
      See Also:
    • STRING_VALUE

      public static final int STRING_VALUE
       Allows String/StyledString values.
       
      STRING = 2;
      See Also:
    • INTEGER_VALUE

      public static final int INTEGER_VALUE
       Allows any integer BinaryPrimitive values.
       
      INTEGER = 4;
      See Also:
    • BOOLEAN_VALUE

      public static final int BOOLEAN_VALUE
       Allows any boolean BinaryPrimitive values.
       
      BOOLEAN = 8;
      See Also:
    • COLOR_VALUE

      public static final int COLOR_VALUE
       Allows any color BinaryPrimitive values.
       
      COLOR = 16;
      See Also:
    • FLOAT_VALUE

      public static final int FLOAT_VALUE
       Allows any float BinaryPrimitive values.
       
      FLOAT = 32;
      See Also:
    • DIMENSION_VALUE

      public static final int DIMENSION_VALUE
       Allows any dimension BinaryPrimitive values.
       
      DIMENSION = 64;
      See Also:
    • FRACTION_VALUE

      public static final int FRACTION_VALUE
       Allows any fraction BinaryPrimitive values.
       
      FRACTION = 128;
      See Also:
    • ENUM_VALUE

      public static final int ENUM_VALUE
       Allows enums that are defined in the Attribute's symbols.
       
      ENUM = 65536;
      See Also:
    • FLAGS_VALUE

      public static final int FLAGS_VALUE
       ENUM and FLAGS cannot BOTH be set.
       
      FLAGS = 131072;
      See Also:
  • Method Details

    • values

      public static Resources.Attribute.FormatFlags[] 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

      public static Resources.Attribute.FormatFlags valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Resources.Attribute.FormatFlags valueOf(int value)
      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 name
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null