@Test public void testRelation() throws UIMAException { JCas jCas = JCasSingleton.getJCasInstance(); Class<?> c = TypeUtils.getType("Relation", jCas); assertEquals(Relation.class, c); }
public static Class<? extends AnnotationBase> getType(String typeName, JCas jCas) { return getType(typeName, jCas.getTypeSystem()); }
TypeUtils { public static Class<? extends AnnotationBase> getType(String typeName, JCas jCas) { return getType(typeName, jCas.getTypeSystem()); } }
TypeUtils { public static Class<? extends AnnotationBase> getType(String typeName, JCas jCas) { return getType(typeName, jCas.getTypeSystem()); } private  TypeUtils(); }
TypeUtils { public static Class<? extends AnnotationBase> getType(String typeName, JCas jCas) { return getType(typeName, jCas.getTypeSystem()); } private  TypeUtils(); static Class<? extends AnnotationBase> getType(String typeName, JCas jCas); @SuppressWarnings("unchecked") static Class<AnnotationBase> getType(String typeName, TypeSystem typeSystem); @SuppressWarnings("unchecked") static Class<? extends Entity> getEntityClass(String typeName, JCas jCas); @SuppressWarnings({"unchecked", "squid:S2175" /* false positive */}) static List<T> filterAnnotations(
      Collection<? extends BaleenAnnotation> collection, Set<Class<? extends T>> annotationTypes); static Set<Class<? extends T>> getAnnotationClasses(
      Class<T> annotationType); static Set<Class<? extends T>> getTypeClasses(
      Class<T> parentClass, String... typeNames); }
TypeUtils { public static Class<? extends AnnotationBase> getType(String typeName, JCas jCas) { return getType(typeName, jCas.getTypeSystem()); } private  TypeUtils(); static Class<? extends AnnotationBase> getType(String typeName, JCas jCas); @SuppressWarnings("unchecked") static Class<AnnotationBase> getType(String typeName, TypeSystem typeSystem); @SuppressWarnings("unchecked") static Class<? extends Entity> getEntityClass(String typeName, JCas jCas); @SuppressWarnings({"unchecked", "squid:S2175" /* false positive */}) static List<T> filterAnnotations(
      Collection<? extends BaleenAnnotation> collection, Set<Class<? extends T>> annotationTypes); static Set<Class<? extends T>> getAnnotationClasses(
      Class<T> annotationType); static Set<Class<? extends T>> getTypeClasses(
      Class<T> parentClass, String... typeNames);  }