|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rapidminer.repository.local.SimpleEntry
com.rapidminer.repository.local.SimpleFolder
com.rapidminer.repository.local.LocalRepository
public class LocalRepository
A repository backed by the local file system. Each entry is backed by one or more files.
Field Summary |
---|
Fields inherited from class com.rapidminer.repository.local.SimpleEntry |
---|
PROPERTIES_SUFFIX |
Fields inherited from interface com.rapidminer.repository.Folder |
---|
TYPE_NAME |
Constructor Summary | |
---|---|
LocalRepository(java.lang.String name,
java.io.File root)
|
Method Summary | |
---|---|
void |
addRepositoryListener(RepositoryListener l)
|
org.w3c.dom.Element |
createXML(org.w3c.dom.Document doc)
Returns a piece of XML to store the repository in a configuration file. |
void |
delete()
Deletes the entry and its contents from the repository. |
protected void |
fireEntryAdded(Entry newEntry,
Folder parent)
|
protected void |
fireEntryRemoved(Entry removedEntry,
Folder parent,
int index)
|
protected void |
fireEntryRenamed(Entry entry)
|
void |
fireRefreshed(Folder folder)
|
static LocalRepository |
fromXML(org.w3c.dom.Element element)
|
java.lang.String |
getDescription()
Returns a human readable description. |
java.io.File |
getFile()
|
java.lang.String |
getIconName()
Returns the icon name for the repository. |
RepositoryLocation |
getLocation()
A location, that can be used, e.g. as a parameter in the RepositorySource or which can be used
to locate the entry using RepositoryManager#resolve(String) . |
java.io.File |
getRoot()
|
java.lang.String |
getState()
Returns some user readable information about the state of this repository. |
boolean |
isConfigurable()
Returns true if the repository is configurable. |
Entry |
locate(java.lang.String entry)
This will return the entry if existing or null if it can't be found. |
RepositoryConfigurationPanel |
makeConfigurationPanel()
|
void |
postInstall()
Called after the repository is added. |
void |
preRemove()
|
void |
removeRepositoryListener(RepositoryListener l)
|
boolean |
rename(java.lang.String newName)
Changes the name of the entry. |
void |
setRoot(java.io.File root)
|
boolean |
shouldSave()
|
Methods inherited from class com.rapidminer.repository.local.SimpleFolder |
---|
canRefreshChild, containsEntry, createBlobEntry, createFolder, createIOObjectEntry, createProcessEntry, getDataEntries, getSubfolders, getType, isReadOnly, mkdir, move, move, refresh |
Methods inherited from class com.rapidminer.repository.local.SimpleEntry |
---|
getContainingFolder, getCustomActions, getName, getOwner, getProperty, getRepository, putProperty, setRepository, toString, willBlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.rapidminer.repository.Folder |
---|
canRefreshChild, containsEntry, createBlobEntry, createFolder, createIOObjectEntry, createProcessEntry, getDataEntries, getSubfolders, refresh |
Methods inherited from interface com.rapidminer.repository.Entry |
---|
getContainingFolder, getCustomActions, getName, getOwner, getType, isReadOnly, move, move, willBlock |
Constructor Detail |
---|
public LocalRepository(java.lang.String name, java.io.File root) throws RepositoryException
RepositoryException
Method Detail |
---|
public java.io.File getRoot()
public boolean rename(java.lang.String newName)
Entry
rename
in interface Entry
rename
in class SimpleFolder
public java.io.File getFile()
getFile
in class SimpleFolder
public void setRoot(java.io.File root)
public void addRepositoryListener(RepositoryListener l)
addRepositoryListener
in interface Repository
public void removeRepositoryListener(RepositoryListener l)
removeRepositoryListener
in interface Repository
protected void fireEntryRenamed(Entry entry)
protected void fireEntryAdded(Entry newEntry, Folder parent)
public void fireRefreshed(Folder folder)
protected void fireEntryRemoved(Entry removedEntry, Folder parent, int index)
public java.lang.String getDescription()
Entry
getDescription
in interface Entry
getDescription
in class SimpleFolder
public Entry locate(java.lang.String entry) throws RepositoryException
Repository
locate
in interface Repository
RepositoryException
public RepositoryLocation getLocation()
Entry
RepositorySource
or which can be used
to locate the entry using RepositoryManager#resolve(String)
.
getLocation
in interface Entry
getLocation
in class SimpleEntry
public java.lang.String getState()
Repository
getState
in interface Repository
public java.lang.String getIconName()
Repository
getIconName
in interface Repository
public org.w3c.dom.Element createXML(org.w3c.dom.Document doc)
Repository
createXML
in interface Repository
public static LocalRepository fromXML(org.w3c.dom.Element element) throws XMLException, RepositoryException
XMLException
RepositoryException
public void delete()
Entry
delete
in interface Entry
delete
in class SimpleFolder
public boolean shouldSave()
shouldSave
in interface Repository
public void postInstall()
Repository
postInstall
in interface Repository
public void preRemove()
preRemove
in interface Repository
public boolean isConfigurable()
Repository
isConfigurable
in interface Repository
public RepositoryConfigurationPanel makeConfigurationPanel()
makeConfigurationPanel
in interface Repository
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |