Package org.robolectric.res
Enum ResType
- java.lang.Object
-
- java.lang.Enum<ResType>
-
- org.robolectric.res.ResType
-
- All Implemented Interfaces:
Serializable
,Comparable<ResType>
public enum ResType extends Enum<ResType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTR_DATA
BOOLEAN
CHAR_SEQUENCE
CHAR_SEQUENCE_ARRAY
COLOR
COLOR_STATE_LIST
DIMEN
DRAWABLE
FILE
FLOAT
FRACTION
INTEGER
INTEGER_ARRAY
LAYOUT
NULL
STYLE
TYPED_ARRAY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResType
inferFromValue(String value)
Parses a resource value to infer the typestatic ResType
inferType(String itemString)
static ResType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DRAWABLE
public static final ResType DRAWABLE
-
ATTR_DATA
public static final ResType ATTR_DATA
-
BOOLEAN
public static final ResType BOOLEAN
-
COLOR
public static final ResType COLOR
-
COLOR_STATE_LIST
public static final ResType COLOR_STATE_LIST
-
DIMEN
public static final ResType DIMEN
-
FILE
public static final ResType FILE
-
FLOAT
public static final ResType FLOAT
-
FRACTION
public static final ResType FRACTION
-
INTEGER
public static final ResType INTEGER
-
LAYOUT
public static final ResType LAYOUT
-
STYLE
public static final ResType STYLE
-
CHAR_SEQUENCE
public static final ResType CHAR_SEQUENCE
-
CHAR_SEQUENCE_ARRAY
public static final ResType CHAR_SEQUENCE_ARRAY
-
INTEGER_ARRAY
public static final ResType INTEGER_ARRAY
-
TYPED_ARRAY
public static final ResType TYPED_ARRAY
-
NULL
public static final ResType NULL
-
-
Method Detail
-
values
public static ResType[] 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 (ResType c : ResType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-