gate.gui.annedit
Class AnnotationDataImpl

java.lang.Object
  extended by gate.gui.annedit.AnnotationDataImpl
All Implemented Interfaces:
AnnotationData

public class AnnotationDataImpl
extends Object
implements AnnotationData

A simple reusable implementation of AnnotationData.


Field Summary
(package private)  Annotation ann
           
(package private)  AnnotationSet set
           
 
Constructor Summary
AnnotationDataImpl(AnnotationSet set, Annotation ann)
           
 
Method Summary
 boolean equals(Object obj)
           
 Annotation getAnnotation()
          Gets the Annotation object represented by this structure.
 AnnotationSet getAnnotationSet()
          Gets the AnnotationSet object containing the annotation stored by this structure.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ann

Annotation ann

set

AnnotationSet set
Constructor Detail

AnnotationDataImpl

public AnnotationDataImpl(AnnotationSet set,
                          Annotation ann)
Method Detail

getAnnotation

public Annotation getAnnotation()
Description copied from interface: AnnotationData
Gets the Annotation object represented by this structure.

Specified by:
getAnnotation in interface AnnotationData
Returns:
the ann

getAnnotationSet

public AnnotationSet getAnnotationSet()
Description copied from interface: AnnotationData
Gets the AnnotationSet object containing the annotation stored by this structure.

Specified by:
getAnnotationSet in interface AnnotationData
Returns:
the set

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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