org.eclipse.gmt.umlx.registry.model
Class ModelNameAccessor

java.lang.Object
  extended by org.eclipse.gmt.umlx.registry.model.ModelNameAccessor
All Implemented Interfaces:
Accessor

public class ModelNameAccessor
extends java.lang.Object
implements Accessor

A ModelNameAccesor defines a key to access model registry entries by an informal model name.


Field Summary
static java.lang.String KIND
           
 
Constructor Summary
ModelNameAccessor()
           
ModelNameAccessor(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 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.
 ModelNameAccessor newInstance(java.lang.String name)
          Create a new accessor of this kind for a name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KIND

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

ModelNameAccessor

public ModelNameAccessor()

ModelNameAccessor

public ModelNameAccessor(java.lang.String name)
Method Detail

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

getKind

public java.lang.String getKind()
Description copied from interface: Accessor
Return the name by which this kind of accessor is known.

Specified by:
getKind in interface Accessor
Returns:
the human friendly accessor class name

getName

public java.lang.String getName()
Description copied from interface: Accessor
Return the name that is accessed.

Specified by:
getName in interface Accessor
Returns:
the accessed name

newInstance

public ModelNameAccessor newInstance(java.lang.String name)
                              throws java.lang.Exception
Description copied from interface: Accessor
Create a new accessor of this kind for a name

Specified by:
newInstance in interface Accessor
Returns:
the accessor for name
Throws:
java.lang.Exception

toString

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