gate.jape.constraint
Class SimpleAnnotationAccessor
java.lang.Object
gate.jape.constraint.MetaPropertyAccessor
gate.jape.constraint.SimpleAnnotationAccessor
- All Implemented Interfaces:
- AnnotationAccessor, Serializable
public class SimpleAnnotationAccessor
- extends MetaPropertyAccessor
Accessor that returns the annotation itself
- Version:
- $Revision$
- Author:
- esword
- See Also:
- Serialized Form
SimpleAnnotationAccessor
public SimpleAnnotationAccessor()
getValue
public Object getValue(Annotation annot,
AnnotationSet context)
- Description copied from interface:
AnnotationAccessor
- Obtain the value of some part of the given annotation
context
- optional parameter with information about the
context in which the annotation has meaning. Normally this
would be a Document
. Not all accessors will
require the context information so it may be null. Some
accessor implementations may throw an exception without
it.
getKey
public Object getKey()
- Description copied from class:
MetaPropertyAccessor
- Sub-classes should return the name of the meta-property which they implement.
- Specified by:
getKey
in interface AnnotationAccessor
- Specified by:
getKey
in class MetaPropertyAccessor