|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Repository
Repository represents an abstract container of resources (e.g. code, skins, ...). In addition to resources, repositories may contain other repositories, building a hierarchical structure.
Method Summary | |
---|---|
void |
create()
Creates the repository if does not exist yet |
boolean |
exists()
Checks wether the repository actually (or still) exists |
java.util.List |
getAllResources()
Returns all direct and indirect resources |
long |
getChecksum()
Checksum of the repository and all its content. |
java.lang.String |
getName()
Returns the name of the repository; this is a full name including all parent repositories. |
Repository |
getParentRepository()
Returns this repository's parent repository. |
Repository[] |
getRepositories()
Returns this repository's direct child repositories |
Resource |
getResource(java.lang.String resourceName)
Returns a specific direct resource of the repository |
java.util.Iterator |
getResources()
Returns all direct resources |
Repository |
getRootRepository()
Get this repository's logical script root repository. |
java.lang.String |
getShortName()
Returns the name of the repository. |
boolean |
isScriptRoot()
Checks wether the repository is to be considered a top-level repository from a scripting point of view. |
long |
lastModified()
Returns the date the repository was last modified. |
Method Detail |
---|
long getChecksum() throws java.io.IOException
java.io.IOException
long lastModified() throws java.io.IOException
java.io.IOException
Resource getResource(java.lang.String resourceName)
resourceName
- name of the child resource to return
java.util.Iterator getResources() throws java.io.IOException
java.io.IOException
java.util.List getAllResources() throws java.io.IOException
java.io.IOException
Repository[] getRepositories() throws java.io.IOException
java.io.IOException
boolean exists() throws java.io.IOException
java.io.IOException
void create() throws java.io.IOException
java.io.IOException
boolean isScriptRoot()
Repository getParentRepository()
Repository getRootRepository()
{isScriptRoot()}
java.lang.String getName()
java.lang.String getShortName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |