org.eclipse.ecf.examples.provider.trivial.identity
Class TrivialNamespace
java.lang.Object
org.eclipse.ecf.core.identity.Namespace
org.eclipse.ecf.examples.provider.trivial.identity.TrivialNamespace
- All Implemented Interfaces:
- java.io.Serializable, org.eclipse.core.runtime.IAdaptable
public class TrivialNamespace
- extends Namespace
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
NAME
|
static java.lang.String |
SCHEME
|
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 |
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
TrivialNamespace
public TrivialNamespace()
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
.