@Deprecated public abstract class ResourceFile extends java.lang.Object implements Configurable
| Modifier | Constructor and Description |
|---|---|
protected |
ResourceFile(com.android.io.IAbstractFile file,
ResourceFolder folder)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
dispose(ScanningContext context)
Deprecated.
|
FolderConfiguration |
getConfiguration()
Deprecated.
Returns the
FolderConfiguration for this object. |
com.android.io.IAbstractFile |
getFile()
Deprecated.
Returns the IFile associated with the ResourceFile.
|
ResourceFolder |
getFolder()
Deprecated.
Returns the parent folder as a
ResourceFolder. |
ResourceRepository |
getRepository()
Deprecated.
|
abstract java.util.Collection<com.android.resources.ResourceType> |
getResourceTypes()
Deprecated.
Returns the list of
ResourceType generated by the file. |
abstract 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. |
abstract boolean |
hasResources(com.android.resources.ResourceType type)
Deprecated.
Returns whether the file generated a resource of a specific type.
|
boolean |
isFramework()
Deprecated.
Returns whether the resource is a framework resource.
|
protected abstract void |
load(ScanningContext context)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
protected abstract void |
update(ScanningContext context)
Deprecated.
|
protected ResourceFile(com.android.io.IAbstractFile file,
ResourceFolder folder)
protected abstract void load(ScanningContext context)
protected abstract void update(ScanningContext context)
protected abstract void dispose(ScanningContext context)
public FolderConfiguration getConfiguration()
ConfigurableFolderConfiguration for this object.getConfiguration in interface Configurablepublic final com.android.io.IAbstractFile getFile()
public final ResourceFolder getFolder()
ResourceFolder.public final ResourceRepository getRepository()
public final boolean isFramework()
public abstract java.util.Collection<com.android.resources.ResourceType> getResourceTypes()
ResourceType generated by the file. This is never null.public abstract boolean hasResources(com.android.resources.ResourceType type)
type - The ResourceTypepublic abstract com.android.ide.common.rendering.api.ResourceValue getValue(com.android.resources.ResourceType type,
java.lang.String name)
ResourceType and name.
If no resource match, null is returned.
type - the type of the resource.name - the name of the resource.public java.lang.String toString()
toString in class java.lang.Object