|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.framework.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 |
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 name)
Get a resource contained in this repository identified by the given local name. |
java.util.Iterator |
getResources()
Get an iterator over the resources contained in this repository. |
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 |
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 helma.framework.repository.Repository |
---|
create, exists, getChecksum, 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 Repository
public java.lang.String getShortName()
getShortName
in interface Repository
public Repository getRootRepository()
getRootRepository
in interface Repository
{isScriptRoot()}
public Resource getResource(java.lang.String name)
exists()
returns false.
- Specified by:
getResource
in interface Repository
- Parameters:
name
- name of the child resource to return
- Returns:
- specified child resource
public java.util.Iterator getResources()
getResources
in interface Repository
public Repository[] getRepositories()
getRepositories
in interface Repository
public Repository getParentRepository()
getParentRepository
in interface Repository
public java.util.List getAllResources() throws java.io.IOException
getAllResources
in interface Repository
java.io.IOException
public 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 |