@Test public void testGetTypeSystemDescription() throws Exception { TypeDescription typeDescription = TypeLibrarian.getTypeSystemDescription("gov.va.vinci.leo.TestType", new FeatureNameType("Bob", "uima.cas.String")); assertEquals("gov.va.vinci.leo.TestType", typeDescription.getName()); FeatureDescription[] featureDescriptions = typeDescription.getFeatures(); assertNotNull(featureDescriptions); assertEquals("Bob", featureDescriptions[0].getName()); assertEquals("uima.cas.String", featureDescriptions[0].getRangeTypeName()); }
public static TypeDescription getTypeSystemDescription(String className, FeatureNameType... params) { TypeDescriptionBuilder builder = TypeDescriptionBuilder.create().setName(className); for (FeatureNameType p: params) { builder.addFeature(p.getName(), p.getName(), p.getType()); } return builder.getTypeDescription(); }
TypeLibrarian { public static TypeDescription getTypeSystemDescription(String className, FeatureNameType... params) { TypeDescriptionBuilder builder = TypeDescriptionBuilder.create().setName(className); for (FeatureNameType p: params) { builder.addFeature(p.getName(), p.getName(), p.getType()); } return builder.getTypeDescription(); } }
TypeLibrarian { public static TypeDescription getTypeSystemDescription(String className, FeatureNameType... params) { TypeDescriptionBuilder builder = TypeDescriptionBuilder.create().setName(className); for (FeatureNameType p: params) { builder.addFeature(p.getName(), p.getName(), p.getType()); } return builder.getTypeDescription(); }  }
TypeLibrarian { public static TypeDescription getTypeSystemDescription(String className, FeatureNameType... params) { TypeDescriptionBuilder builder = TypeDescriptionBuilder.create().setName(className); for (FeatureNameType p: params) { builder.addFeature(p.getName(), p.getName(), p.getType()); } return builder.getTypeDescription(); }  static TypeDescription getValidationAnnotationTypeSystemDescription(); static TypeDescription getRelationshipAnnotationTypeSystemDescription(); static TypeDescription getCSITypeSystemDescription(); static TypeDescription getTypeSystemDescription(String className, FeatureNameType... params); }
TypeLibrarian { public static TypeDescription getTypeSystemDescription(String className, FeatureNameType... params) { TypeDescriptionBuilder builder = TypeDescriptionBuilder.create().setName(className); for (FeatureNameType p: params) { builder.addFeature(p.getName(), p.getName(), p.getType()); } return builder.getTypeDescription(); }  static TypeDescription getValidationAnnotationTypeSystemDescription(); static TypeDescription getRelationshipAnnotationTypeSystemDescription(); static TypeDescription getCSITypeSystemDescription(); static TypeDescription getTypeSystemDescription(String className, FeatureNameType... params);  }