|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.ide.common.rendering.api.ResourceReference
com.android.ide.common.rendering.api.ResourceValue
public class ResourceValue
Represents an android resource with a name and a string value.
| Constructor Summary | |
|---|---|
ResourceValue(ResourceType type,
java.lang.String name,
boolean isFramework)
|
|
ResourceValue(ResourceType type,
java.lang.String name,
java.lang.String value,
boolean isFramework)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
ResourceType |
getResourceType()
|
java.lang.String |
getType()
Deprecated. use getResourceType() instead. |
java.lang.String |
getValue()
Returns the value of the resource, as defined in the XML. |
int |
hashCode()
|
void |
replaceWith(ResourceValue value)
Sets the value from another resource. |
void |
setValue(java.lang.String value)
Sets the value of the resource. |
java.lang.String |
toString()
|
| Methods inherited from class com.android.ide.common.rendering.api.ResourceReference |
|---|
getName, isFramework |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.android.layoutlib.api.IResourceValue |
|---|
getName, isFramework |
| Constructor Detail |
|---|
public ResourceValue(ResourceType type,
java.lang.String name,
boolean isFramework)
public ResourceValue(ResourceType type,
java.lang.String name,
java.lang.String value,
boolean isFramework)
| Method Detail |
|---|
public ResourceType getResourceType()
@Deprecated public java.lang.String getType()
getResourceType() instead.
getType in interface IResourceValuepublic final java.lang.String getValue()
null
getValue in interface IResourceValuepublic void setValue(java.lang.String value)
value - the new valuepublic void replaceWith(ResourceValue value)
value - the resource valuepublic java.lang.String toString()
toString in class ResourceReferencepublic int hashCode()
hashCode in class ResourceReferencepublic boolean equals(java.lang.Object obj)
equals in class ResourceReference
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||