com.android.ide.common.rendering.api
Class ResourceReference

java.lang.Object
  extended by com.android.ide.common.rendering.api.ResourceReference
Direct Known Subclasses:
ResourceValue

public class ResourceReference
extends java.lang.Object

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

ResourceReference

public ResourceReference(java.lang.String name,
                         boolean isFramework)
Builds a resource reference.

Parameters:
name - the name of the resource
isFramework - whether the reference is to a framework resource.

ResourceReference

public ResourceReference(java.lang.String name)
Builds a non-framework resource reference.

Parameters:
name - the name of the resource
Method Detail

getName

public final java.lang.String getName()
Returns the name of the resource, as defined in the XML.


isFramework

public final boolean isFramework()
Returns whether the resource is a framework resource (true) or a project resource (false).


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object