|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.repository.RepositoryLocation
public class RepositoryLocation
A location in a repository. Format: //Repository/path/to/object All constructors throw IllegalArugmentExceptions if names are malformed, contain illegal characters etc.
| Field Summary | |
|---|---|
static java.lang.String |
REPOSITORY_PREFIX
|
static char |
SEPARATOR
|
| Constructor Summary | |
|---|---|
RepositoryLocation(RepositoryLocation parent,
java.lang.String childName)
Appends a child entry to a given parent location. |
|
RepositoryLocation(java.lang.String absoluteLocation)
Constructs a RepositoryLocation from a string of the form //Repository/path/to/object. |
|
RepositoryLocation(java.lang.String repositoryName,
java.lang.String[] pathComponents)
Creates a RepositoryLocation for a given repository and a set of path components which will be concatenated by a /. |
|
| Method Summary | |
|---|---|
Folder |
createFoldersRecursively()
Creates this folder and its parents. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAbsoluteLocation()
Returns the absolute location of this RepoositoryLocation. |
RepositoryAccessor |
getAccessor()
|
java.lang.String |
getName()
Returns the last path component. |
java.lang.String |
getPath()
Returns the path within the repository. |
Repository |
getRepository()
Returns the repository associated with this location. |
java.lang.String |
getRepositoryName()
Returns the name of the repository associated with this location. |
int |
hashCode()
|
static boolean |
isAbsolute(java.lang.String loc)
|
Entry |
locateEntry()
Locates the corresponding entry in the repository. |
java.lang.String |
makeRelative(RepositoryLocation relativeToFolder)
Assume absoluteLocation == "//MyRepos/foo/bar/object" and relativeToFolder=//MyRepos/foo/baz/, then this method will return .. |
RepositoryLocation |
parent()
|
void |
setAccessor(RepositoryAccessor accessor)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char SEPARATOR
public static final java.lang.String REPOSITORY_PREFIX
| Constructor Detail |
|---|
public RepositoryLocation(java.lang.String absoluteLocation)
throws MalformedRepositoryLocationException
MalformedRepositoryLocationException
public RepositoryLocation(java.lang.String repositoryName,
java.lang.String[] pathComponents)
throws MalformedRepositoryLocationException
MalformedRepositoryLocationException
public RepositoryLocation(RepositoryLocation parent,
java.lang.String childName)
throws MalformedRepositoryLocationException
MalformedRepositoryLocationException| Method Detail |
|---|
public java.lang.String getAbsoluteLocation()
public Repository getRepository()
throws RepositoryException
RepositoryExceptionpublic java.lang.String getRepositoryName()
public java.lang.String getPath()
public Entry locateEntry()
throws RepositoryException
RepositoryExceptionpublic java.lang.String getName()
public RepositoryLocation parent()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String makeRelative(RepositoryLocation relativeToFolder)
public static boolean isAbsolute(java.lang.String loc)
public Folder createFoldersRecursively()
throws RepositoryException
RepositoryExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void setAccessor(RepositoryAccessor accessor)
public RepositoryAccessor getAccessor()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||