|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.ide.common.res2.ResourceItem
com.android.ide.common.res2.GeneratedResourceItem
public class GeneratedResourceItem
A ResourceItem
that is generated, it knows its generate file path, which is not the same
as as the owner ResourceFile.
Field Summary |
---|
Fields inherited from class com.android.ide.common.res2.ResourceItem |
---|
mResourceValue |
Constructor Summary | |
---|---|
GeneratedResourceItem(java.lang.String name,
java.io.File generatedFile,
com.android.resources.ResourceType type,
java.lang.String qualifiers)
|
Method Summary | |
---|---|
java.io.File |
getFile()
For non-values resources, this is the original source file. |
java.lang.String |
getName()
Returns the name of the item. |
java.lang.String |
getQualifiers()
Returns the resource item qualifiers. |
F |
getSource()
Returns the DataFile the item is coming from. |
protected int |
getStatus()
Obtains the full status of the data item; should not generally be used except for debug purposes. |
void |
setSource(F sourceFile)
Sets the DataFile. |
Methods inherited from class com.android.ide.common.res2.ResourceItem |
---|
compareTo, compareValueWith, equals, getConfiguration, getIgnoredFromDiskMerge, getKey, getResourceValue, getSourceType, getType, getValue, getValueText, getXmlString, hashCode, setIgnoredFromDiskMerge, toString, wasTouched |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeneratedResourceItem(@NonNull java.lang.String name, @NonNull java.io.File generatedFile, @NonNull com.android.resources.ResourceType type, @NonNull java.lang.String qualifiers)
Method Detail |
---|
@NonNull public java.lang.String getQualifiers()
ResourceItem
getQualifiers
in class ResourceItem
public java.io.File getFile()
GeneratedResourceItem
overrides it.
@NonNull public java.lang.String getName()
@Nullable public F getSource()
public void setSource(@NonNull F sourceFile)
sourceFile
- the data file, if null then the item is marked as being removed from the
data fileprotected int getStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |