Package org.robolectric.res
Class AttributeResource
java.lang.Object
org.robolectric.res.AttributeResource
public class AttributeResource extends Object
-
Field Summary
Fields Modifier and Type Field Description static String
ANDROID_NS
static String
ANDROID_RES_NS_PREFIX
String
contextPackageName
static String
EMPTY_VALUE
static Pattern
IS_RESOURCE_REFERENCE
static String
NULL_VALUE
static String
RES_AUTO_NS_URI
ResName
resName
String
trimmedValue
String
value
-
Constructor Summary
Constructors Constructor Description AttributeResource(ResName resName, String value, String contextPackageName)
AttributeResource(ResName resName, String value, String contextPackageName, Integer referenceResId)
-
Method Summary
Modifier and Type Method Description Integer
getReferenceResId()
ResName
getResourceReference()
static ResName
getResourceReference(String value, String defPackage, String defType)
ResName
getStyleReference()
static ResName
getStyleReference(String value, String defPackage, String defType)
boolean
isEmpty()
static boolean
isEmpty(String value)
boolean
isNull()
static boolean
isNull(String value)
boolean
isResourceReference()
static boolean
isResourceReference(String value)
boolean
isStyleReference()
static boolean
isStyleReference(String value)
String
toString()
-
Field Details
-
ANDROID_NS
- See Also:
- Constant Field Values
-
ANDROID_RES_NS_PREFIX
- See Also:
- Constant Field Values
-
RES_AUTO_NS_URI
- See Also:
- Constant Field Values
-
NULL_VALUE
- See Also:
- Constant Field Values
-
EMPTY_VALUE
- See Also:
- Constant Field Values
-
IS_RESOURCE_REFERENCE
-
resName
-
value
-
trimmedValue
-
contextPackageName
-
-
Constructor Details
-
Method Details
-
isResourceReference
public boolean isResourceReference() -
getResourceReference
-
isStyleReference
public boolean isStyleReference() -
getStyleReference
-
isNull
public boolean isNull() -
isEmpty
public boolean isEmpty() -
toString
-
isResourceReference
-
getResourceReference
-
isStyleReference
-
getStyleReference
-
isNull
-
isEmpty
-
getReferenceResId
-