public class StringAccessor extends MetaPropertyAccessor
log
Constructor and Description |
---|
StringAccessor() |
Modifier and Type | Method and Description |
---|---|
Object |
getKey()
Always returns "string", the name of the meta-property which this
accessor provides.
|
Object |
getValue(Annotation annot,
AnnotationSet context)
Return the underlying string for the annotation.
|
equals, hashCode, setKey, toString
public StringAccessor()
public Object getValue(Annotation annot, AnnotationSet context)
Document
or an AnnotationSet
which
points to the document.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.public Object getKey()
getKey
in interface AnnotationAccessor
getKey
in class MetaPropertyAccessor