@Test public void testScanning() throws Exception { TypeSystemDescription tsd = createTypeSystemDescription(); assertNotNull(tsd.getType(Token.class.getName())); assertNotNull(tsd.getType(Sentence.class.getName())); assertNotNull(tsd.getType(AnalyzedText.class.getName())); }
public static TypeSystemDescription createTypeSystemDescription(String... descriptorNames) { TypeSystemDescription typeSystem = new TypeSystemDescription_impl(); List<Import> imports = new ArrayList<>(); for (String descriptorName : descriptorNames) { Import imp = new Import_impl(); imp.setName(descriptorName); imports.add(imp); } Import[] importArray = new Import[imports.size()]; typeSystem.setImports(imports.toArray(importArray)); return typeSystem; }
TypeSystemDescriptionFactory { public static TypeSystemDescription createTypeSystemDescription(String... descriptorNames) { TypeSystemDescription typeSystem = new TypeSystemDescription_impl(); List<Import> imports = new ArrayList<>(); for (String descriptorName : descriptorNames) { Import imp = new Import_impl(); imp.setName(descriptorName); imports.add(imp); } Import[] importArray = new Import[imports.size()]; typeSystem.setImports(imports.toArray(importArray)); return typeSystem; } }
TypeSystemDescriptionFactory { public static TypeSystemDescription createTypeSystemDescription(String... descriptorNames) { TypeSystemDescription typeSystem = new TypeSystemDescription_impl(); List<Import> imports = new ArrayList<>(); for (String descriptorName : descriptorNames) { Import imp = new Import_impl(); imp.setName(descriptorName); imports.add(imp); } Import[] importArray = new Import[imports.size()]; typeSystem.setImports(imports.toArray(importArray)); return typeSystem; } private  TypeSystemDescriptionFactory(); }
TypeSystemDescriptionFactory { public static TypeSystemDescription createTypeSystemDescription(String... descriptorNames) { TypeSystemDescription typeSystem = new TypeSystemDescription_impl(); List<Import> imports = new ArrayList<>(); for (String descriptorName : descriptorNames) { Import imp = new Import_impl(); imp.setName(descriptorName); imports.add(imp); } Import[] importArray = new Import[imports.size()]; typeSystem.setImports(imports.toArray(importArray)); return typeSystem; } private  TypeSystemDescriptionFactory(); static TypeSystemDescription createTypeSystemDescription(String... descriptorNames); static TypeSystemDescription createTypeSystemDescriptionFromPath(
          String... descriptorURIs); static TypeSystemDescription createTypeSystemDescription(); static String[] scanTypeDescriptors(); static void forceTypeDescriptorsScan(); }
TypeSystemDescriptionFactory { public static TypeSystemDescription createTypeSystemDescription(String... descriptorNames) { TypeSystemDescription typeSystem = new TypeSystemDescription_impl(); List<Import> imports = new ArrayList<>(); for (String descriptorName : descriptorNames) { Import imp = new Import_impl(); imp.setName(descriptorName); imports.add(imp); } Import[] importArray = new Import[imports.size()]; typeSystem.setImports(imports.toArray(importArray)); return typeSystem; } private  TypeSystemDescriptionFactory(); static TypeSystemDescription createTypeSystemDescription(String... descriptorNames); static TypeSystemDescription createTypeSystemDescriptionFromPath(
          String... descriptorURIs); static TypeSystemDescription createTypeSystemDescription(); static String[] scanTypeDescriptors(); static void forceTypeDescriptorsScan();  }