Alignment API and Server 4.1.${version.update}

fr.inrialpes.exmo.align.impl.edoal
Class ClassId

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.edoal.Expression
      extended by fr.inrialpes.exmo.align.impl.edoal.ClassExpression
          extended by fr.inrialpes.exmo.align.impl.edoal.ClassId
All Implemented Interfaces:
Id, Cloneable, Visitable

public class ClassId
extends ClassExpression
implements Id

A simple Id to represent a Class.

Author:
richi

Field Summary
private  String id
          Holds the identifier.
(package private)  URI uri
           
 
Fields inherited from class fr.inrialpes.exmo.align.impl.edoal.Expression
variable
 
Constructor Summary
ClassId()
          Creates an anonymous class pattern
ClassId(String id)
           
ClassId(URI u)
           
 
Method Summary
 boolean equals(Object obj)
           
 URI getURI()
          Returns a plain representation of the value of this id.
 int hashCode()
           
 String plainText()
          Returns a plain representation of the value of this id.
 String toString()
           Returns a simple description of this object.
 
Methods inherited from class fr.inrialpes.exmo.align.impl.edoal.Expression
accept, accept, getVariable, setVariable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private String id
Holds the identifier.


uri

URI uri
Constructor Detail

ClassId

public ClassId()
Creates an anonymous class pattern


ClassId

public ClassId(String id)
        throws AlignmentException
Throws:
AlignmentException

ClassId

public ClassId(URI u)
Method Detail

getURI

public URI getURI()
Description copied from interface: Id
Returns a plain representation of the value of this id.

Specified by:
getURI in interface Id
Returns:
the plain text representation.

plainText

public String plainText()
Description copied from interface: Id
Returns a plain representation of the value of this id.

Specified by:
plainText in interface Id
Returns:
the plain text representation.

toString

public String toString()

Returns a simple description of this object. The format of the returned String is undocumented and subject to change.

An expamle return String could be: classId: http://my/super/class

Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Alignment API and Server 4.1.${version.update}

(C) INRIA & friends, 2003-${curryear}