org.robolectric.fakes.RoboAttributeSet and Attribute please use Robolectric#buildAttributeSet instead.
This class will be removed in the next version of Robolectric.@Deprecated
public class Attribute
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANDROID_RES_NS_PREFIX
Deprecated.
|
java.lang.String |
contextPackageName
Deprecated.
|
static java.lang.String |
RES_AUTO_NS_URI
Deprecated.
|
ResName |
resName
Deprecated.
|
java.lang.String |
value
Deprecated.
|
| Constructor and Description |
|---|
Attribute(ResName resName,
java.lang.String value,
java.lang.String contextPackageName)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ResName |
getResourceReference()
Deprecated.
|
static ResName |
getResourceReference(java.lang.String value,
java.lang.String defPackage,
java.lang.String defType)
Deprecated.
|
ResName |
getStyleReference()
Deprecated.
|
static ResName |
getStyleReference(java.lang.String value,
java.lang.String defPackage,
java.lang.String defType)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
boolean |
isNull()
Deprecated.
|
static boolean |
isNull(java.lang.String value)
Deprecated.
|
boolean |
isResourceReference()
Deprecated.
|
static boolean |
isResourceReference(java.lang.String value)
Deprecated.
|
boolean |
isStyleReference()
Deprecated.
|
static boolean |
isStyleReference(java.lang.String value)
Deprecated.
|
java.lang.String |
qualifiedValue()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
public static final java.lang.String ANDROID_RES_NS_PREFIX
public static final java.lang.String RES_AUTO_NS_URI
@NotNull public final ResName resName
@NotNull public final java.lang.String value
@NotNull public final java.lang.String contextPackageName
public Attribute(@NotNull
ResName resName,
@NotNull
java.lang.String value,
@NotNull
java.lang.String contextPackageName)
public java.lang.String qualifiedValue()
public boolean isResourceReference()
@NotNull 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.Objectpublic static boolean isResourceReference(java.lang.String value)
@NotNull 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)