|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helma.repository.AbstractRepository
public abstract class AbstractRepository
Provides common methods and fields for the default implementations of the repository interface
| Constructor Summary | |
|---|---|
AbstractRepository()
|
|
| Method Summary | |
|---|---|
protected abstract Resource |
createResource(java.lang.String name)
Called to create a child resource for this repository |
java.util.List<Resource> |
getAllResources()
Get a deep list of this repository's resources, including all resources contained in sub-reposotories. |
java.lang.String |
getName()
Get the full name that identifies this repository globally |
Repository |
getParentRepository()
Get this repository's parent repository. |
Repository[] |
getRepositories()
Get an iterator over the sub-repositories contained in this repository. |
Resource |
getResource(java.lang.String path)
Get a resource contained in this repository identified by the given local name. |
java.util.Iterator<Resource> |
getResources()
Get an iterator over the resources contained in this repository. |
java.util.List<Resource> |
getResources(java.lang.String path)
Get a list of resources contained in this repository identified by the given local name. |
Repository |
getRootRepository()
Get this repository's logical script root repository. |
java.lang.String |
getShortName()
Get the local name that identifies this repository locally within its parent repository |
void |
mountRepository(Repository child,
java.lang.String pathname)
Mount a child repository under the given path name. |
java.lang.String |
toString()
Returns the repositories full name as string representation. |
abstract void |
update()
Called to check the repository's content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.helma.repository.Repository |
|---|
create, exists, getChecksum, getChildRepository, isScriptRoot, lastModified |
| Constructor Detail |
|---|
public AbstractRepository()
| Method Detail |
|---|
public abstract void update()
protected abstract Resource createResource(java.lang.String name)
public java.lang.String getName()
getName in interface Repositorypublic java.lang.String getShortName()
getShortName in interface Repositorypublic Repository getRootRepository()
getRootRepository in interface Repository{isScriptRoot()}
public void mountRepository(Repository child,
java.lang.String pathname)
mountRepository in interface Repositorypathname - the path namechild - the child elementpublic Resource getResource(java.lang.String path)
exists() returns false.
- Specified by:
getResource in interface Repository
- Parameters:
path - name of the child resource to return
- Returns:
- specified child resource
public java.util.List<Resource> getResources(java.lang.String path)
getResources in interface Repositorypath - the repository path
public java.util.Iterator<Resource> getResources()
getResources in interface Repositorypublic Repository[] getRepositories()
getRepositories in interface Repositorypublic Repository getParentRepository()
getParentRepository in interface Repository
public java.util.List<Resource> getAllResources()
throws java.io.IOException
getAllResources in interface Repositoryjava.io.IOException - an I/O error occurredpublic java.lang.String toString()
toString in class java.lang.Object{getName()}
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||