public interface IRepositoryReader
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllResourcePaths()
Returns a list of all the paths pointing to a resource
|
ICollection |
getCollection(String path)
Returns an
ICollection instance representing the resource at
the specified path. |
IResource |
getResource(String path)
Returns an instance of
IResource which represents the
resource located at the specified path. |
ICollection |
getRoot()
Returns an instance of
ICollection which represents the root
collection of the repository. |
boolean |
hasCollection(String path)
Returns whether a collection with the specified path exists in the
repository.
|
boolean |
hasResource(String path)
Returns whether a resource with the specified path exists in the
repository.
|
void |
initialize()
Performs initialization tasks.
|
void initialize()
throws RepositoryInitializationException
RepositoryInitializationException - in case of an errorICollection getRoot()
ICollection which represents the root
collection of the repository.
This method does not throw any exceptions for convenience but is not guaranteed to return a valid collection.
ICollection instanceICollection getCollection(String path)
ICollection instance representing the resource at
the specified path.
The collection may not exist at the specified path.
path - the ICollection locationICollection instanceboolean hasCollection(String path) throws RepositoryReadException
path - the ICollection locationICollection existsRepositoryReadException - in case the check cannot be performedIResource getResource(String path)
IResource which represents the
resource located at the specified path.
The resource may not exist at the specified path.
boolean hasResource(String path) throws RepositoryReadException
path - the IResource locationIResource existsRepositoryReadException - in case the check cannot be performedList<String> getAllResourcePaths() throws RepositoryReadException
RepositoryReadException - in case of errorCopyright © 2010–2018 Eclipse Foundation. All rights reserved.