org.eclipse.ecf.examples.provider.remoteservice.identity
Class RSExampleNamespace

java.lang.Object
  extended by org.eclipse.ecf.core.identity.Namespace
      extended by org.eclipse.ecf.examples.provider.remoteservice.identity.RSExampleNamespace
All Implemented Interfaces:
java.io.Serializable, org.eclipse.core.runtime.IAdaptable

public class RSExampleNamespace
extends Namespace

See Also:
Serialized Form

Field Summary
static java.lang.String NAME
           
static java.lang.String SCHEME
           
 
Fields inherited from class org.eclipse.ecf.core.identity.Namespace
SCHEME_SEPARATOR
 
Constructor Summary
RSExampleNamespace()
           
 
Method Summary
 ID createInstance(java.lang.Object[] parameters)
          Make an instance of this namespace.
 java.lang.String getScheme()
          Get the primary scheme associated with this namespace.
 
Methods inherited from class org.eclipse.ecf.core.identity.Namespace
equals, getAdapter, getCompareToForObject, getDescription, getHashCodeForID, getInitStringFromExternalForm, getName, getNameForID, getSupportedParameterTypes, getSupportedSchemes, hashCode, initialize, testIDEquals, toExternalForm, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCHEME

public static final java.lang.String SCHEME
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

RSExampleNamespace

public RSExampleNamespace()
Method Detail

createInstance

public ID createInstance(java.lang.Object[] parameters)
                  throws IDCreateException
Description copied from class: Namespace
Make an instance of this namespace. Namespace subclasses, provided by plugins must implement this method to construct ID instances for the given namespace.

See Namespace.getSupportedParameterTypes() to get information relevant to deciding what parameter types are expected by this method.

Specified by:
createInstance in class Namespace
Parameters:
parameters - an Object[] of parameters for creating ID instances. May be null.
Returns:
a non-null ID instance. The class used may extend BaseID or may implement the ID interface directly
Throws:
IDCreateException - if construction fails

getScheme

public java.lang.String getScheme()
Description copied from class: Namespace
Get the primary scheme associated with this namespace. Subclasses must provide an implementation that returns a non-null scheme identifier. Note that the returned scheme should not contain the Namespace.SCHEME_SEPARATOR (\":\").

Specified by:
getScheme in class Namespace
Returns:
a String scheme identifier. Must not be null.