public class GeneratedResourceItem extends SourcelessResourceItem
ResourceItem
that is generated, it knows its generated file path, which is not the same
as as the owner ResourceFile.mResourceValue
Constructor and Description |
---|
GeneratedResourceItem(java.lang.String name,
java.io.File generatedFile,
com.android.resources.ResourceType type,
java.lang.String qualifiers,
java.lang.String libraryName) |
Modifier and Type | Method and Description |
---|---|
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.
|
getConfiguration
compareTo, compareValueWith, equals, getIgnoredFromDiskMerge, getKey, getLibraryName, getResourceValue, getSourceType, getType, getValue, getValueText, getXmlString, hashCode, setIgnoredFromDiskMerge, toString, wasTouched
public GeneratedResourceItem(@NonNull java.lang.String name, @NonNull java.io.File generatedFile, @NonNull com.android.resources.ResourceType type, @NonNull java.lang.String qualifiers, @Nullable java.lang.String libraryName)
@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()