public abstract class SourcelessResourceItem extends ResourceItem
mResourceValue
Constructor and Description |
---|
SourcelessResourceItem(java.lang.String name,
com.android.resources.ResourceType type,
org.w3c.dom.Node value,
java.lang.String libraryName) |
Modifier and Type | Method and Description |
---|---|
FolderConfiguration |
getConfiguration()
Determine the FolderConfiguration from the item's qualifiers instead of from
getSource() . |
java.io.File |
getFile()
For non-values resources, this is the original source file.
|
java.lang.String |
getName()
Returns the name of the item.
|
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.
|
compareTo, compareValueWith, equals, getIgnoredFromDiskMerge, getKey, getLibraryName, getQualifiers, getResourceValue, getSourceType, getType, getValue, getValueText, getXmlString, hashCode, setIgnoredFromDiskMerge, toString, wasTouched
public SourcelessResourceItem(@NonNull java.lang.String name, @NonNull com.android.resources.ResourceType type, @Nullable org.w3c.dom.Node value, @Nullable java.lang.String libraryName)
public FolderConfiguration getConfiguration()
getSource()
.getConfiguration
in interface Configurable
getConfiguration
in class ResourceItem
@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()
public java.io.File getFile()
GeneratedResourceItem
overrides it.