|
|||||||||
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
public class ResourceReference
A resource reference. This contains the String ID of the resource and whether this is a framework reference. This is an immutable class.
Constructor Summary | |
---|---|
ResourceReference(java.lang.String name)
Builds a non-framework resource reference. |
|
ResourceReference(java.lang.String name,
boolean isFramework)
Builds a resource reference. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Returns the name of the resource, as defined in the XML. |
int |
hashCode()
|
boolean |
isFramework()
Returns whether the resource is a framework resource ( true ) or a project
resource (false). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceReference(java.lang.String name, boolean isFramework)
name
- the name of the resourceisFramework
- whether the reference is to a framework resource.public ResourceReference(java.lang.String name)
name
- the name of the resourceMethod Detail |
---|
public final java.lang.String getName()
public final boolean isFramework()
true
) or a project
resource (false).
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |