public class StyleItemResourceValueImpl extends ResourceValueImpl implements StyleItemResourceValue
StyleItemResourceValue interface.mNamespaceResolver| Constructor and Description |
|---|
StyleItemResourceValueImpl(ResourceNamespace namespace,
java.lang.String attributeName,
java.lang.String value,
java.lang.String libraryName) |
| Modifier and Type | Method and Description |
|---|---|
ResourceReference |
getAttr()
Returns a
ResourceReference to the attr resource this item is defined for, if
the name was specified using the correct syntax. |
java.lang.String |
getAttrName()
Returns contents of the
name XML attribute that defined this style item. |
java.lang.String |
getName()
Deprecated.
TODO(namespaces): Throw in this method, once layoutlib correctly calls
getAttr() instead. |
java.lang.String |
toString() |
asReference, equals, getLibraryName, getNamespace, getNamespaceResolver, getResourceType, getValue, hashCode, isFramework, isUserDefined, replaceWith, setNamespaceResolver, setValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitasReference, getLibraryName, getNamespace, getNamespaceResolver, getRawXmlValue, getReference, getResourceType, getResourceUrl, getValue, isFramework, isUserDefined, setValuepublic StyleItemResourceValueImpl(@NonNull
ResourceNamespace namespace,
@NonNull
java.lang.String attributeName,
@Nullable
java.lang.String value,
@Nullable
java.lang.String libraryName)
@NonNull public java.lang.String getAttrName()
name XML attribute that defined this style item. This is
supposed to be a reference to an attr resource.getAttrName in interface StyleItemResourceValue@Nullable public ResourceReference getAttr()
ResourceReference to the attr resource this item is defined for, if
the name was specified using the correct syntax.getAttr in interface StyleItemResourceValue@Deprecated @NonNull public java.lang.String getName()
getAttr() instead.getAttr() instead.getName in interface ResourceValuegetName in interface StyleItemResourceValuegetName in class ResourceValueImpl@NonNull public java.lang.String toString()
toString in class ResourceValueImpl