g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IVoLoader


public interface IVoLoader

Definition of a VO loader. A VO loader is a mechanism to import VOs from a remote or local repository.


Method Summary
 void createVo(java.net.URI uri, java.lang.String name, IProgressMonitor monitor)
          Create the VO with the specified name from the specified URI.
 java.net.URI[] getPredefinedURIs()
          Gets a list of predefined import locations for this VO loader.
 java.lang.String[] getVoList(java.net.URI uri, IProgressMonitor monitor)
          Get a list of VO names that are found at the specified URI.
 

Method Detail

createVo

void createVo(java.net.URI uri,
              java.lang.String name,
              IProgressMonitor monitor)
              throws ProblemException
Create the VO with the specified name from the specified URI. The URI may be a remote or local repository or file.

Parameters:
uri - The location from which to import the VO.
name - The name of the VO.
monitor - A IProgressMonitor that is used to indicate the progress of the import operation.
Throws:
ProblemException - If the import process either failed or was incomplete.

getVoList

java.lang.String[] getVoList(java.net.URI uri,
                             IProgressMonitor monitor)
                             throws ProblemException
Get a list of VO names that are found at the specified URI. The returned names can be used in combination with the URI to finally retrieve a VO with #getVo(URI, String, IProgressMonitor).

Parameters:
uri - The location to be queried for available VOs.
monitor - A progress monitor for monitoring the progress of this operation.
Returns:
A list of VO names that could be found at the specified location. This may be null if no VOs could be found.
Throws:
ProblemException - If an error occurs while querying the specified location.
See Also:
#getVo(URI, String, IProgressMonitor)

getPredefinedURIs

java.net.URI[] getPredefinedURIs()
Gets a list of predefined import locations for this VO loader.

Returns:
The list of predefined VO repositories.

g-Eclipse
Release 1.0.0