com.rapidminer.repository.resource
Class ResourceFolder

java.lang.Object
  extended by com.rapidminer.repository.resource.ResourceEntry
      extended by com.rapidminer.repository.resource.ResourceFolder
All Implemented Interfaces:
Entry, Folder
Direct Known Subclasses:
ResourceRepository

public class ResourceFolder
extends ResourceEntry
implements Folder

Reference on a folder in the repository.

Author:
Simon Fischer

Field Summary
 
Fields inherited from interface com.rapidminer.repository.Folder
TYPE_NAME
 
Constructor Summary
protected ResourceFolder(ResourceFolder parent, java.lang.String name, java.lang.String resource, ResourceRepository repository)
           
 
Method Summary
 boolean canRefreshChild(java.lang.String childName)
          Returns true iff a child with the given name exists and a Folder.refresh() would find this entry (or it is already loaded).
 boolean containsEntry(java.lang.String name)
           
 BlobEntry createBlobEntry(java.lang.String name)
           
 Folder createFolder(java.lang.String name)
           
 IOObjectEntry createIOObjectEntry(java.lang.String name, IOObject ioobject, Operator callingOperator, ProgressListener newParam)
           
 ProcessEntry createProcessEntry(java.lang.String name, java.lang.String processXML)
           
 java.util.List<DataEntry> getDataEntries()
           
 java.lang.String getDescription()
          Returns a human readable description.
 java.util.List<Folder> getSubfolders()
           
 java.lang.String getType()
          Returns a string describing the type: "folder", "data", "blob", or "process".
 void refresh()
           
 
Methods inherited from class com.rapidminer.repository.resource.ResourceEntry
delete, getContainingFolder, getCustomActions, getLocation, getName, getOwner, getPath, getRepository, getResource, isReadOnly, move, move, rename, setRepository, willBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.rapidminer.repository.Entry
delete, getContainingFolder, getCustomActions, getLocation, getName, getOwner, isReadOnly, move, move, rename, willBlock
 

Constructor Detail

ResourceFolder

protected ResourceFolder(ResourceFolder parent,
                         java.lang.String name,
                         java.lang.String resource,
                         ResourceRepository repository)
Method Detail

containsEntry

public boolean containsEntry(java.lang.String name)
                      throws RepositoryException
Specified by:
containsEntry in interface Folder
Throws:
RepositoryException

createBlobEntry

public BlobEntry createBlobEntry(java.lang.String name)
                          throws RepositoryException
Specified by:
createBlobEntry in interface Folder
Throws:
RepositoryException

createFolder

public Folder createFolder(java.lang.String name)
                    throws RepositoryException
Specified by:
createFolder in interface Folder
Throws:
RepositoryException

createIOObjectEntry

public IOObjectEntry createIOObjectEntry(java.lang.String name,
                                         IOObject ioobject,
                                         Operator callingOperator,
                                         ProgressListener newParam)
                                  throws RepositoryException
Specified by:
createIOObjectEntry in interface Folder
Throws:
RepositoryException

createProcessEntry

public ProcessEntry createProcessEntry(java.lang.String name,
                                       java.lang.String processXML)
                                throws RepositoryException
Specified by:
createProcessEntry in interface Folder
Throws:
RepositoryException

getDataEntries

public java.util.List<DataEntry> getDataEntries()
                                         throws RepositoryException
Specified by:
getDataEntries in interface Folder
Throws:
RepositoryException

getSubfolders

public java.util.List<Folder> getSubfolders()
                                     throws RepositoryException
Specified by:
getSubfolders in interface Folder
Throws:
RepositoryException

refresh

public void refresh()
             throws RepositoryException
Specified by:
refresh in interface Folder
Throws:
RepositoryException

getDescription

public java.lang.String getDescription()
Description copied from interface: Entry
Returns a human readable description.

Specified by:
getDescription in interface Entry

getType

public java.lang.String getType()
Description copied from interface: Entry
Returns a string describing the type: "folder", "data", "blob", or "process".

Specified by:
getType in interface Entry

canRefreshChild

public boolean canRefreshChild(java.lang.String childName)
                        throws RepositoryException
Description copied from interface: Folder
Returns true iff a child with the given name exists and a Folder.refresh() would find this entry (or it is already loaded).

Specified by:
canRefreshChild in interface Folder
Throws:
RepositoryException


Copyright © 2001-2009 by Rapid-I