FileDocCategorySizeDatePackage
FrameworkResourceRepository.javaAPI DocAndroid 1.5 API2336Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.adt.sdk

FrameworkResourceRepository

public final class FrameworkResourceRepository extends Object implements com.android.ide.eclipse.common.resources.IResourceRepository
Implementation of the {@link IResourceRepository} interface to hold the system resource Ids parsed by {@link AndroidTargetParser}.

Fields Summary
private Map
mResourcesMap
Constructors Summary
public FrameworkResourceRepository(Map systemResourcesMap)

        mResourcesMap = systemResourcesMap;
    
Methods Summary
public com.android.ide.eclipse.common.resources.ResourceType[]getAvailableResourceTypes()

        if (mResourcesMap != null) {
            Set<ResourceType> types = mResourcesMap.keySet();

            if (types != null) {
                return types.toArray(new ResourceType[types.size()]);
            }
        }

        return null;
    
public com.android.ide.eclipse.common.resources.ResourceItem[]getResources(com.android.ide.eclipse.common.resources.ResourceType type)

        if (mResourcesMap != null) {
            List<ResourceItem> items = mResourcesMap.get(type);

            if (items != null) {
                return items.toArray(new ResourceItem[items.size()]);
            }
        }

        return null;
    
public booleanhasResources(com.android.ide.eclipse.common.resources.ResourceType type)

        if (mResourcesMap != null) {
            List<ResourceItem> items = mResourcesMap.get(type);

            return (items != null && items.size() > 0);
        }

        return false;
    
public booleanisSystemRepository()

        return true;