@Deprecated public class SingleResourceFile extends ResourceFile
| Constructor and Description |
|---|
SingleResourceFile(com.android.io.IAbstractFile file,
ResourceFolder folder)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispose(ScanningContext context)
Deprecated.
|
java.util.Collection<com.android.resources.ResourceType> |
getResourceTypes()
Deprecated.
Returns the list of
ResourceType generated by the file. |
com.android.ide.common.rendering.api.ResourceValue |
getValue(com.android.resources.ResourceType type,
java.lang.String name)
Deprecated.
Returns the value of a resource generated by this file by
ResourceType and name. |
boolean |
hasResources(com.android.resources.ResourceType type)
Deprecated.
Returns whether the file generated a resource of a specific type.
|
protected void |
load(ScanningContext context)
Deprecated.
|
protected void |
update(ScanningContext context)
Deprecated.
|
getConfiguration, getFile, getFolder, getRepository, isFramework, toStringpublic SingleResourceFile(com.android.io.IAbstractFile file,
ResourceFolder folder)
protected void load(ScanningContext context)
load in class ResourceFileprotected void update(ScanningContext context)
update in class ResourceFileprotected void dispose(ScanningContext context)
dispose in class ResourceFilepublic java.util.Collection<com.android.resources.ResourceType> getResourceTypes()
ResourceFileResourceType generated by the file. This is never null.getResourceTypes in class ResourceFilepublic boolean hasResources(com.android.resources.ResourceType type)
ResourceFilehasResources in class ResourceFiletype - The ResourceTypepublic com.android.ide.common.rendering.api.ResourceValue getValue(com.android.resources.ResourceType type,
java.lang.String name)
ResourceFileResourceType and name.
If no resource match, null is returned.
getValue in class ResourceFiletype - the type of the resource.name - the name of the resource.