There are a couple of different ways to get a pointer to specific Type object.  

jcas.getRequiredType(“mypackage.AnnotationType”);
(cas|jcas).getTypeSystem.getType(“mypackage.AnnotationType”);

The question is what do you want to do with the Type object once you have it.

Thanks,

Thomas Ginter
801-448-7676
thomas.gin...@utah.edu




On Feb 13, 2014, at 6:03 AM, hannes schantl <johannes.scha...@gmail.com> wrote:

> Hi,
> 
> Is there a way to get an annotation Type from the cas(or Jcas) from a
> string.
> For example, i am looking for something like that:
> jcas.getCasType("AnnotationName")
> 
> greetings Hannes

Reply via email to