gate.gui.annedit
Class AnnotationDataImpl
java.lang.Object
gate.gui.annedit.AnnotationDataImpl
- All Implemented Interfaces:
- AnnotationData
public class AnnotationDataImpl
- extends Object
- implements AnnotationData
A simple reusable implementation of AnnotationData.
ann
Annotation ann
set
AnnotationSet set
AnnotationDataImpl
public AnnotationDataImpl(AnnotationSet set,
Annotation ann)
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