|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.framework.repository.SingleFileRepository
public class SingleFileRepository
Constructor Summary | |
---|---|
SingleFileRepository(java.io.File file)
Constructs a SingleFileRepository using the given argument |
|
SingleFileRepository(java.io.File file,
Repository parent)
Constructs a SingleFileRepository using the given argument |
|
SingleFileRepository(java.lang.String initArgs)
Constructs a SingleFileRepository using the given argument |
Method Summary | |
---|---|
void |
create()
Creates the repository if does not exist yet |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
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 |
protected Resource |
getResource()
Return our single resource. |
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. |
int |
hashCode()
Returns a hash code value for the object. |
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. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SingleFileRepository(java.lang.String initArgs)
initArgs
- absolute path to the script filepublic SingleFileRepository(java.io.File file)
file
- the script filepublic SingleFileRepository(java.io.File file, Repository parent)
file
- the script fileparent
- the parent repository, or nullMethod Detail |
---|
public long getChecksum() throws java.io.IOException
getChecksum
in interface Repository
java.io.IOException
public java.lang.String getShortName()
getShortName
in interface Repository
public java.lang.String getName()
getName
in interface Repository
public Repository getRootRepository()
getRootRepository
in interface Repository
{isScriptRoot()}
public Repository getParentRepository()
getParentRepository
in interface Repository
public boolean isScriptRoot()
isScriptRoot
in interface Repository
public void create() throws java.io.IOException
create
in interface Repository
java.io.IOException
public boolean exists() throws java.io.IOException
exists
in interface Repository
java.io.IOException
public Repository[] getRepositories() throws java.io.IOException
getRepositories
in interface Repository
java.io.IOException
public java.util.List getAllResources() throws java.io.IOException
getAllResources
in interface Repository
java.io.IOException
public java.util.Iterator getResources() throws java.io.IOException
getResources
in interface Repository
java.io.IOException
public Resource getResource(java.lang.String resourceName)
getResource
in interface Repository
resourceName
- name of the child resource to return
public long lastModified() throws java.io.IOException
lastModified
in interface Repository
java.io.IOException
protected Resource getResource()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |