If by "the value" you mean the text that the annotation covers, you can access that using
gate.Utils.stringFor(document, annotation)
For this you obviously need a reference to the gate.Document
that the annotation belongs to, as well as the Annotation
object itself - annotations do not routinely store their covered string directly, they just store offsets that point into the document's content.