org.omwg.mediation.language.objectModel
Class Annotation

java.lang.Object
  extended by org.omwg.mediation.language.objectModel.Annotation

public class Annotation
extends java.lang.Object

Annotations represent additionnal informations to a mapping

Version:
$Revision: 1.5 $ $Date: 2005/06/20 09:13:51 $
Author:
Francois Scharffe Created on 24-Mar-2005 Committed by $Author: grahamhench $ $Source: /cvsroot/dome//dome/src/org/omwg/mediation/language/objectModel/Annotation.java,v $,

Constructor Summary
Annotation()
          Constructor for a new empty annotation
Annotation(Id id, java.lang.String value)
          Constructor for a new annotation
 
Method Summary
 java.lang.Object clone()
          Copies the annotation (both id and value)
 Id getId()
          Returns annotation id when predefined
 java.lang.String getValue()
          Returns value of the annotation when predefined
 void setId(Id id)
          Sets annotation id
 void setValue(java.lang.String value)
          Sets annotation value
 java.lang.String toString()
          Creates a string with the annotation id and value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Annotation

public Annotation()

Constructor for a new empty annotation


Annotation

public Annotation(Id id,
                  java.lang.String value)

Constructor for a new annotation

Parameters:
id - (annotation id)
value - (string type)
Method Detail

clone

public java.lang.Object clone()

Copies the annotation (both id and value)

Overrides:
clone in class java.lang.Object
Returns:
anno (a copy of the annotation)

toString

public java.lang.String toString()

Creates a string with the annotation id and value

Overrides:
toString in class java.lang.Object
Returns:
str (string of annotation description (id and value))

getId

public Id getId()

Returns annotation id when predefined

Returns:
id (annotation id)

setId

public void setId(Id id)

Sets annotation id

Parameters:
id - (annotation id)

getValue

public java.lang.String getValue()

Returns value of the annotation when predefined

Returns:
string stating data value of the annotation

setValue

public void setValue(java.lang.String value)

Sets annotation value

Parameters:
value - (string type stating value of the annotation)