gate.creole
Class TestPR.TestAnnotationAccessor

java.lang.Object
  extended by gate.jape.constraint.MetaPropertyAccessor
      extended by gate.creole.TestPR.TestAnnotationAccessor
All Implemented Interfaces:
AnnotationAccessor, Serializable
Enclosing class:
TestPR

public static class TestPR.TestAnnotationAccessor
extends MetaPropertyAccessor

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gate.jape.constraint.MetaPropertyAccessor
log
 
Constructor Summary
TestPR.TestAnnotationAccessor()
           
 
Method Summary
 Object getKey()
          Sub-classes should return the name of the meta-property which they implement.
 Object getValue(Annotation annot, AnnotationSet context)
          Obtain the value of some part of the given annotation
 
Methods inherited from class gate.jape.constraint.MetaPropertyAccessor
equals, hashCode, setKey, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestPR.TestAnnotationAccessor

public TestPR.TestAnnotationAccessor()
Method Detail

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