@Test public void testCreateAggregateByNotName() throws Exception { ArrayList<String> primitives = new ArrayList<String>(); primitives.add(rootDirectory + "src/test/resources/desc/gov/va/vinci/leo/ae/WhitespaceTokenizerDescriptor.xml"); primitives.add(rootDirectory + "src/test/resources/desc/gov/va/vinci/leo/ae/WordTokenizerDescriptor.xml"); AnalysisEngineDescription aed = AggregateEngineFactory.createAggregateDescription("My Aggregate", primitives, false); 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);  }