public class AttributeResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANDROID_NS |
static java.lang.String |
ANDROID_RES_NS_PREFIX |
java.lang.String |
contextPackageName |
static java.lang.String |
EMPTY_VALUE |
static java.util.regex.Pattern |
IS_RESOURCE_REFERENCE |
static java.lang.String |
NULL_VALUE |
static java.lang.String |
RES_AUTO_NS_URI |
ResName |
resName |
java.lang.String |
trimmedValue |
java.lang.String |
value |
Constructor and Description |
---|
AttributeResource(ResName resName,
java.lang.String value,
java.lang.String contextPackageName) |
AttributeResource(ResName resName,
java.lang.String value,
java.lang.String contextPackageName,
java.lang.Integer referenceResId) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getReferenceResId() |
ResName |
getResourceReference() |
static ResName |
getResourceReference(java.lang.String value,
java.lang.String defPackage,
java.lang.String defType) |
ResName |
getStyleReference() |
static ResName |
getStyleReference(java.lang.String value,
java.lang.String defPackage,
java.lang.String defType) |
boolean |
isEmpty() |
static boolean |
isEmpty(java.lang.String value) |
boolean |
isNull() |
static boolean |
isNull(java.lang.String value) |
boolean |
isResourceReference() |
static boolean |
isResourceReference(java.lang.String value) |
boolean |
isStyleReference() |
static boolean |
isStyleReference(java.lang.String value) |
java.lang.String |
toString() |
public static final java.lang.String ANDROID_NS
public static final java.lang.String ANDROID_RES_NS_PREFIX
public static final java.lang.String RES_AUTO_NS_URI
public static final java.lang.String NULL_VALUE
public static final java.lang.String EMPTY_VALUE
public static final java.util.regex.Pattern IS_RESOURCE_REFERENCE
@Nonnull public final ResName resName
@Nonnull public final java.lang.String value
@Nonnull public final java.lang.String trimmedValue
@Nonnull public final java.lang.String contextPackageName
public AttributeResource(@Nonnull ResName resName, @Nonnull java.lang.String value, @Nonnull java.lang.String contextPackageName)
public AttributeResource(@Nonnull ResName resName, @Nonnull java.lang.String value, @Nonnull java.lang.String contextPackageName, java.lang.Integer referenceResId)
public boolean isResourceReference()
@Nonnull public ResName getResourceReference()
public boolean isStyleReference()
public ResName getStyleReference()
public boolean isNull()
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean isResourceReference(java.lang.String value)
@Nonnull public static ResName getResourceReference(java.lang.String value, java.lang.String defPackage, java.lang.String defType)
public static boolean isStyleReference(java.lang.String value)
public static ResName getStyleReference(java.lang.String value, java.lang.String defPackage, java.lang.String defType)
public static boolean isNull(java.lang.String value)
public static boolean isEmpty(java.lang.String value)
public java.lang.Integer getReferenceResId()