public interface Repository extends Trackable
| Modifier and Type | Field and Description |
|---|---|
static String |
SEPARATOR
String containing file separator characters.
|
| Modifier and Type | Method and Description |
|---|---|
Repository |
getChildRepository(String path)
Get a child repository with the given path
|
String |
getRelativePath()
Get the path of this repository relative to its root repository.
|
Repository[] |
getRepositories()
Returns this repository's direct child repositories
|
Resource |
getResource(String resourceName)
Returns a specific direct resource of the repository
|
Resource[] |
getResources()
Get a list of resources contained in this repository identified by the
given local name.
|
Resource[] |
getResources(boolean recursive)
Get a list of resources contained in this repository identified by the
given local name.
|
Resource[] |
getResources(String resourcePath,
boolean recursive)
Get a list of resources contained in this repository identified by the
given local name.
|
void |
setRoot()
Mark this repository as root repository, disabling any parent access.
|
exists, getChecksum, getModuleName, getName, getParentRepository, getPath, getRootRepository, getUrl, isAbsolute, lastModified, setAbsolutestatic final String SEPARATOR
Resource getResource(String resourceName) throws IOException
resourceName - name of the child resource to returnIOExceptionResource[] getResources() throws IOException
IOExceptionResource[] getResources(boolean recursive) throws IOException
recursive - whether to include nested resourcesIOExceptionResource[] getResources(String resourcePath, boolean recursive) throws IOException
resourcePath - the repository pathrecursive - whether to include nested resourcesIOExceptionRepository[] getRepositories() throws IOException
IOException - an I/O error occurredRepository getChildRepository(String path) throws IOException
path - the path of the repositoryIOException - an IOException occurredvoid setRoot()
String getRelativePath()
getRelativePath in interface TrackableCopyright © 2016. All rights reserved.