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 StringANDROID_NSstatic StringANDROID_RES_NS_PREFIXStringcontextPackageNamestatic StringEMPTY_VALUEstatic PatternIS_RESOURCE_REFERENCEstatic StringNULL_VALUEstatic StringRES_AUTO_NS_URIResNameresNameStringtrimmedValueStringvalue -
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 IntegergetReferenceResId()ResNamegetResourceReference()static ResNamegetResourceReference(String value, String defPackage, String defType)ResNamegetStyleReference()static ResNamegetStyleReference(String value, String defPackage, String defType)booleanisEmpty()static booleanisEmpty(String value)booleanisNull()static booleanisNull(String value)booleanisResourceReference()static booleanisResourceReference(String value)booleanisStyleReference()static booleanisStyleReference(String value)StringtoString()
-
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
-