public final class AnnotationFactory extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Annotation> |
createAnnotation(JCas jCas,
int begin,
int end,
Class<T> cls)
Provides a convenient way to create an annotation and addToIndexes in a single line.
|
public static <T extends Annotation> T createAnnotation(JCas jCas, int begin, int end, Class<T> cls) throws UIMAException
UIMAException
Copyright © 2012–2013 The Apache Software Foundation. All rights reserved.