@Test public void testCreateAggregateByName() throws Exception { ArrayList<String> primitives = new ArrayList<String>(); primitives.add("desc.gov.va.vinci.leo.ae.WhitespaceTokenizerDescriptor"); primitives.add("desc.gov.va.vinci.leo.ae.WordTokenizerDescriptor"); AnalysisEngineDescription aed = AggregateEngineFactory.createAggregateDescription("My Aggregate", primitives, true); validateCreatedAggregate(aed); }
public static AnalysisEngineDescription createAggregateDescription(String name, List<String> primitives, boolean byName) throws Exception { List<ResourceSpecifier> specs = new ArrayList<ResourceSpecifier>(); for (String p : primitives) { if (byName) { specs.add(ResourceSpecifierFactory.createResourceSpecifier(LeoUtils.createURL(p))); } else { specs.add(ResourceSpecifierFactory.createResourceSpecifier(p)); } } return createAggregateDescription(name, specs); }
AggregateEngineFactory { public static AnalysisEngineDescription createAggregateDescription(String name, List<String> primitives, boolean byName) throws Exception { List<ResourceSpecifier> specs = new ArrayList<ResourceSpecifier>(); for (String p : primitives) { if (byName) { specs.add(ResourceSpecifierFactory.createResourceSpecifier(LeoUtils.createURL(p))); } else { specs.add(ResourceSpecifierFactory.createResourceSpecifier(p)); } } return createAggregateDescription(name, specs); } }
AggregateEngineFactory { public static AnalysisEngineDescription createAggregateDescription(String name, List<String> primitives, boolean byName) throws Exception { List<ResourceSpecifier> specs = new ArrayList<ResourceSpecifier>(); for (String p : primitives) { if (byName) { specs.add(ResourceSpecifierFactory.createResourceSpecifier(LeoUtils.createURL(p))); } else { specs.add(ResourceSpecifierFactory.createResourceSpecifier(p)); } } return createAggregateDescription(name, specs); }  }
AggregateEngineFactory { public static AnalysisEngineDescription createAggregateDescription(String name, List<String> primitives, boolean byName) throws Exception { List<ResourceSpecifier> specs = new ArrayList<ResourceSpecifier>(); for (String p : primitives) { if (byName) { specs.add(ResourceSpecifierFactory.createResourceSpecifier(LeoUtils.createURL(p))); } else { specs.add(ResourceSpecifierFactory.createResourceSpecifier(p)); } } return createAggregateDescription(name, specs); }  static AnalysisEngineDescription createAggregateDescription(String name, List<String> primitives, boolean byName); static AnalysisEngineDescription createAggregateDescription(List<LeoDelegate> specs, String name); static AnalysisEngineDescription createAggregateDescription(List<LeoDelegate> specs, FlowControllerDescription flowControllerDescription, String name); static AnalysisEngineDescription createAggregateDescription(String name, List<ResourceSpecifier> specs); }
AggregateEngineFactory { public static AnalysisEngineDescription createAggregateDescription(String name, List<String> primitives, boolean byName) throws Exception { List<ResourceSpecifier> specs = new ArrayList<ResourceSpecifier>(); for (String p : primitives) { if (byName) { specs.add(ResourceSpecifierFactory.createResourceSpecifier(LeoUtils.createURL(p))); } else { specs.add(ResourceSpecifierFactory.createResourceSpecifier(p)); } } return createAggregateDescription(name, specs); }  static AnalysisEngineDescription createAggregateDescription(String name, List<String> primitives, boolean byName); static AnalysisEngineDescription createAggregateDescription(List<LeoDelegate> specs, String name); static AnalysisEngineDescription createAggregateDescription(List<LeoDelegate> specs, FlowControllerDescription flowControllerDescription, String name); static AnalysisEngineDescription createAggregateDescription(String name, List<ResourceSpecifier> specs);  }