Package org.robolectric.res
Class AttributeResource
java.lang.Object
org.robolectric.res.AttributeResource
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttributeResource(ResName resName, String value, String contextPackageName) AttributeResource(ResName resName, String value, String contextPackageName, Integer referenceResId) -
Method Summary
Modifier and TypeMethodDescriptionstatic ResNamegetResourceReference(String value, String defPackage, String defType) static ResNamegetStyleReference(String value, String defPackage, String defType) booleanisEmpty()static booleanbooleanisNull()static booleanbooleanstatic booleanisResourceReference(String value) booleanstatic booleanisStyleReference(String value) toString()
-
Field Details
-
ANDROID_NS
- See Also:
-
ANDROID_RES_NS_PREFIX
- See Also:
-
RES_AUTO_NS_URI
- See Also:
-
NULL_VALUE
- See Also:
-
EMPTY_VALUE
- See Also:
-
IS_RESOURCE_REFERENCE
-
resName
-
value
-
trimmedValue
-
contextPackageName
-
-
Constructor Details
-
AttributeResource
-
AttributeResource
-
-
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
-