Alignment API and Server 4.6 (1875M)

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

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.edoal.Expression
      extended by fr.inrialpes.exmo.align.impl.edoal.PathExpression
          extended by fr.inrialpes.exmo.align.impl.edoal.PropertyExpression
              extended by fr.inrialpes.exmo.align.impl.edoal.PropertyId
All Implemented Interfaces:
Id, ValueExpression, Cloneable

public class PropertyId
extends PropertyExpression
implements Id

A simple Id to represent a Property.

Version:
$Id: PropertyId.java 1710 2012-03-23 19:53:25Z euzenat $

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
PropertyId()
          Creates an anonymous property pattern
PropertyId(URI u)
           
 
Method Summary
 void accept(EDOALVisitor visitor)
           
 TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor)
           
 URI getURI()
          Returns a plain representation of the value of this id.
 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
getVariable, setVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private String id
Holds the identifier.


uri

URI uri
Constructor Detail

PropertyId

public PropertyId()
Creates an anonymous property pattern


PropertyId

public PropertyId(URI u)
Method Detail

accept

public void accept(EDOALVisitor visitor)
            throws AlignmentException
Specified by:
accept in interface ValueExpression
Specified by:
accept in class Expression
Throws:
AlignmentException

accept

public TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor)
                                throws AlignmentException
Specified by:
accept in interface ValueExpression
Specified by:
accept in class Expression
Throws:
AlignmentException

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: attributeId: http://my/super/attribute

Overrides:
toString in class Object

Alignment API and Server 4.6 (1875M)

(C) INRIA & friends, 2003-2014