org.eclipse.gmt.umlx.registry.model
Interface Accessor

All Known Implementing Classes:
ModelNameAccessor, URIAccessor

public interface Accessor

An Accessor defines a key by which models can be accessed in the model registry. The derived class defines the key type or kind and should return a distinctive value as getKind(). The key value should be returned via getName().


Method Summary
 java.lang.String getKind()
          Return the name by which this kind of accessor is known.
 java.lang.String getName()
          Return the name that is accessed.
 Accessor newInstance(java.lang.String name)
          Create a new accessor of this kind for a name
 

Method Detail

getKind

java.lang.String getKind()
Return the name by which this kind of accessor is known.

Returns:
the human friendly accessor class name

getName

java.lang.String getName()
Return the name that is accessed.

Returns:
the accessed name

newInstance

Accessor newInstance(java.lang.String name)
                     throws java.lang.Exception
Create a new accessor of this kind for a name

Returns:
the accessor for name
Throws:
java.lang.Exception