public interface SingleNamespaceResourceRepository extends ResourceRepository
| Modifier and Type | Method and Description |
|---|---|
default void |
getLeafResourceRepositories(java.util.Collection<SingleNamespaceResourceRepository> result)
Returns all leaf resource repositories contained in this resource, or this repository itself,
if it does not contain any other repositories and implements
SingleNamespaceResourceRepository. |
com.android.ide.common.rendering.api.ResourceNamespace |
getNamespace()
The namespace that all items in this repository belong to.
|
default java.util.Set<com.android.ide.common.rendering.api.ResourceNamespace> |
getNamespaces()
Returns the namespaces that the resources in this repository belong to.
|
java.lang.String |
getPackageName()
The package name from the manifest corresponding to this repository.
|
accept, getAllResources, getPublicResources, getResources, getResources, getResources, getResources, getResourceTypes, hasResources, hasResources@NonNull com.android.ide.common.rendering.api.ResourceNamespace getNamespace()
ResourceNamespace.RES_AUTO in non-namespaced projects or the namespace corresponding to the
package name returned by getPackageName() in namespaced projects.@Nullable java.lang.String getPackageName()
When the project is namespaced, this corresponds to the namespace returned by getNamespace(). In non-namespaced projects, the namespace is ResourceNamespace.RES_AUTO but the value returned from this method can be used when
automatically migrating a project to use namespaces.
@NonNull default java.util.Set<com.android.ide.common.rendering.api.ResourceNamespace> getNamespaces()
ResourceRepositorygetNamespaces in interface ResourceRepositorydefault void getLeafResourceRepositories(@NonNull
java.util.Collection<SingleNamespaceResourceRepository> result)
ResourceRepositorySingleNamespaceResourceRepository.getLeafResourceRepositories in interface ResourceRepositoryresult - the collection to add the leaf repositories to