public static enum BinaryResourceValue.Type extends java.lang.Enum<BinaryResourceValue.Type>
| Enum Constant and Description |
|---|
ATTRIBUTE
data holds an attribute resource identifier. |
DIMENSION
data holds a complex number encoding a dimension value, such as "100in". |
DYNAMIC_ATTRIBUTE
data holds a dynamic attribute resource identifier. |
DYNAMIC_REFERENCE
data holds a dynamic ResourceTableChunk entry reference. |
FLOAT
data holds a single-precision floating point number. |
FRACTION
data holds a complex number encoding a fraction of a container. |
INT_BOOLEAN
data is either 0 (false) or 1 (true). |
INT_COLOR_ARGB4
data is a raw integer value of the form #argb. |
INT_COLOR_ARGB8
data is a raw integer value of the form #aarrggbb. |
INT_COLOR_RGB4
data is a raw integer value of the form #rgb. |
INT_COLOR_RGB8
data is a raw integer value of the form #rrggbb. |
INT_DEC
data is a raw integer value of the form n..n. |
INT_HEX
data is a raw integer value of the form 0xn..n. |
NULL
data is either 0 (undefined) or 1 (empty). |
REFERENCE
data holds a ResourceTableChunk entry reference. |
STRING
data holds an index into the containing resource table's string pool. |
| Modifier and Type | Method and Description |
|---|---|
byte |
code() |
static BinaryResourceValue.Type |
fromCode(byte code) |
static BinaryResourceValue.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BinaryResourceValue.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BinaryResourceValue.Type NULL
data is either 0 (undefined) or 1 (empty).public static final BinaryResourceValue.Type REFERENCE
data holds a ResourceTableChunk entry reference.public static final BinaryResourceValue.Type ATTRIBUTE
data holds an attribute resource identifier.public static final BinaryResourceValue.Type STRING
data holds an index into the containing resource table's string pool.public static final BinaryResourceValue.Type FLOAT
data holds a single-precision floating point number.public static final BinaryResourceValue.Type DIMENSION
data holds a complex number encoding a dimension value, such as "100in".public static final BinaryResourceValue.Type FRACTION
data holds a complex number encoding a fraction of a container.public static final BinaryResourceValue.Type DYNAMIC_REFERENCE
data holds a dynamic ResourceTableChunk entry reference.public static final BinaryResourceValue.Type DYNAMIC_ATTRIBUTE
data holds a dynamic attribute resource identifier.public static final BinaryResourceValue.Type INT_DEC
data is a raw integer value of the form n..n.public static final BinaryResourceValue.Type INT_HEX
data is a raw integer value of the form 0xn..n.public static final BinaryResourceValue.Type INT_BOOLEAN
data is either 0 (false) or 1 (true).public static final BinaryResourceValue.Type INT_COLOR_ARGB8
data is a raw integer value of the form #aarrggbb.public static final BinaryResourceValue.Type INT_COLOR_RGB8
data is a raw integer value of the form #rrggbb.public static final BinaryResourceValue.Type INT_COLOR_ARGB4
data is a raw integer value of the form #argb.public static final BinaryResourceValue.Type INT_COLOR_RGB4
data is a raw integer value of the form #rgb.public static BinaryResourceValue.Type[] values()
for (BinaryResourceValue.Type c : BinaryResourceValue.Type.values()) System.out.println(c);
public static BinaryResourceValue.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte code()
public static BinaryResourceValue.Type fromCode(byte code)