|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.ide.common.resources.ResourceUrl
public class ResourceUrl
A ResourceUrl represents a parsed resource url such as @string/foo or
?android:attr/bar
| Field Summary | |
|---|---|
boolean |
create
Whether an id resource is of the form @+id rather than just @id |
boolean |
framework
If true, the resource is in the android: framework |
java.lang.String |
name
Name of resource |
boolean |
theme
Whether this is a theme resource reference |
com.android.resources.ResourceType |
type
Type of resource |
| Method Summary | |
|---|---|
static ResourceUrl |
create(com.android.resources.ResourceType type,
java.lang.String name,
boolean framework,
boolean create)
Creates a new resource URL. |
static ResourceUrl |
create(com.android.ide.common.rendering.api.ResourceValue value)
|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
boolean |
hasValidName()
Checks whether this resource has a valid name. |
static ResourceUrl |
parse(java.lang.String url)
Return the resource type of the given url, and the resource name |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@NonNull public final com.android.resources.ResourceType type
@NonNull public final java.lang.String name
public final boolean framework
public final boolean create
@+id rather than just @id
public boolean theme
| Method Detail |
|---|
public static ResourceUrl create(@NonNull
com.android.resources.ResourceType type,
@NonNull
java.lang.String name,
boolean framework,
boolean create)
parse(String).
type - the resource typename - the nameframework - whether it's a framework resourcecreate - if it's an id resource, whether it's of the form @+id
public static ResourceUrl create(@NonNull
com.android.ide.common.rendering.api.ResourceValue value)
@Nullable
public static ResourceUrl parse(@NonNull
java.lang.String url)
url - the resource url to be parsed
public boolean hasValidName()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||