g-Eclipse
Release 1.0.0

eu.geclipse.core.filesystem
Class GEclipseURI

java.lang.Object
  extended by eu.geclipse.core.filesystem.GEclipseURI

public class GEclipseURI
extends java.lang.Object

The GEclipseURI takes care about the conversion from master and slave URIs. A master URI therefore is a URI that belongs to the gecl-filesystem, i.e. the g-Eclipse EFS implementation that is used as a wrapper for other EFS implementations. The slave URI may be any URI that can be resolved to another EFS implementation.


Constructor Summary
GEclipseURI(java.net.URI uri)
          Create a new GEclipseURI from the specified URI.
 
Method Summary
static java.lang.String getScheme()
          Get the gecl-scheme.
 java.lang.String getSlaveScheme()
          Get the scheme of the slave system.
 java.net.URI toMasterURI()
          Get the master URI corresponding to this GEclipseURI.
 java.net.URI toSlaveURI()
          Get the slave URI corresponding to this GEclipseURI.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GEclipseURI

public GEclipseURI(java.net.URI uri)
Create a new GEclipseURI from the specified URI.

Parameters:
uri - The URI for which to create a new GEclipseURI. This may be either a master or a slave URI. This constructor handles both cases correctly.
Method Detail

getScheme

public static java.lang.String getScheme()
Get the gecl-scheme.

Returns:
The gecl-scheme.

getSlaveScheme

public java.lang.String getSlaveScheme()
Get the scheme of the slave system.

Returns:
The slave system's scheme.

toMasterURI

public java.net.URI toMasterURI()
Get the master URI corresponding to this GEclipseURI.

Returns:
The associated master URI.

toSlaveURI

public java.net.URI toSlaveURI()
Get the slave URI corresponding to this GEclipseURI.

Returns:
The associated slave URI.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

g-Eclipse
Release 1.0.0