public class AttributeResource extends Object
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 | Description |
---|---|
AttributeResource(ResName resName,
String value,
String contextPackageName) |
|
AttributeResource(ResName resName,
String value,
String contextPackageName,
Integer referenceResId) |
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() |
public static final String ANDROID_NS
public static final String ANDROID_RES_NS_PREFIX
public static final String RES_AUTO_NS_URI
public static final String NULL_VALUE
public static final String EMPTY_VALUE
public static final Pattern IS_RESOURCE_REFERENCE
@Nonnull public final ResName resName
@Nonnull public final String value
@Nonnull public final String trimmedValue
@Nonnull public final String contextPackageName
public AttributeResource(@Nonnull ResName resName, @Nonnull String value, @Nonnull String contextPackageName)
public boolean isResourceReference()
@Nonnull public ResName getResourceReference()
public boolean isStyleReference()
public ResName getStyleReference()
public boolean isNull()
public boolean isEmpty()
public static boolean isResourceReference(String value)
@Nonnull public static ResName getResourceReference(String value, String defPackage, String defType)
public static boolean isStyleReference(String value)
public static ResName getStyleReference(String value, String defPackage, String defType)
public static boolean isNull(String value)
public static boolean isEmpty(String value)
public Integer getReferenceResId()