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

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

public class URIAccessor
extends java.lang.Object
implements Accessor

A URIAccesor defines a key to access model registry entries by a URI.


Field Summary
static java.lang.String KIND
           
 
Constructor Summary
URIAccessor()
           
URIAccessor(java.net.URI uri)
           
 
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.
 java.net.URI getURI()
           
 URIAccessor 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

URIAccessor

public URIAccessor()

URIAccessor

public URIAccessor(java.net.URI uri)
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

getURI

public java.net.URI getURI()

newInstance

public URIAccessor newInstance(java.lang.String name)
                        throws java.net.URISyntaxException
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.net.URISyntaxException

toString

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