|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationAccessor
Provides way to access some property of an Annotation
or
otherwise get a value associated with an annotation (such as the
length of text it spans or the text itself if the associated document
is available).
Method Summary | |
---|---|
Object |
getKey()
Return the key for this accessor. |
Object |
getValue(Annotation annot,
AnnotationSet context)
Obtain the value of some part of the given annotation |
void |
setKey(Object key)
Store a key or name for the accessor to reference when it attempts to obtain the value of an object. |
Method Detail |
---|
void setKey(Object key)
key
- Object getKey()
Object getValue(Annotation annot, AnnotationSet context)
annot
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |