public class AggregateEngineFactory extends Object
Constructor and Description |
---|
AggregateEngineFactory() |
Modifier and Type | Method and Description |
---|---|
protected static void |
bindExternalResources(org.apache.uima.analysis_engine.AnalysisEngineDescription aed,
org.apache.uima.resource.ResourceCreationSpecifier spec)
Bind external resources from the primitive spec to the aggregate AnalysisEngineDescription.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAggregateDescription(List<LeoDelegate> specs,
org.apache.uima.flow.FlowControllerDescription flowControllerDescription,
String name)
Create an aggregate descriptor from a list of LeoAEDescriptor objects.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAggregateDescription(List<LeoDelegate> specs,
String name)
Create an aggregate descriptor from a list of LeoAEDescriptor objects.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAggregateDescription(String name,
List<org.apache.uima.resource.ResourceSpecifier> specs)
Create an AnalysisEngineDescription from a name and a list of ResourceCreationSpecifiers each one
representing a primitive Analysis engine, CasConsumer, or FlowController.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAggregateDescription(String name,
List<String> primitives,
boolean byName)
Create an AnalysisEngineDescriptor that represents and aggregate analysis engine from a name
and a list of primitive engines.
|
protected static String |
getComponentName(org.apache.uima.resource.Parameter[] parameters,
String... defaultName)
Pull the component name from the list of parameters.
|
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAggregateDescription(String name, List<String> primitives, boolean byName) throws Exception
name
- Name of the AggregateEngine, preferred to be a unique name though not enforcedprimitives
- List of primitive engine descriptors to be included in the aggregatebyName
- Flag that indicates whether or not the list of primitives is to be imported by name or by location, true = import by nameException
- thrown if any errors occurpublic static org.apache.uima.analysis_engine.AnalysisEngineDescription createAggregateDescription(List<LeoDelegate> specs, String name)
specs
- LeoAEDescriptors representing the primitive engines of this aggregatename
- String representation of the name of the aggregatepublic static org.apache.uima.analysis_engine.AnalysisEngineDescription createAggregateDescription(List<LeoDelegate> specs, org.apache.uima.flow.FlowControllerDescription flowControllerDescription, String name)
specs
- LeoAEDescriptors representing the primitive engines of this aggregateflowControllerDescription
- allows the user to specify a custom flow controllername
- String representation of the name of the aggregatepublic static org.apache.uima.analysis_engine.AnalysisEngineDescription createAggregateDescription(String name, List<org.apache.uima.resource.ResourceSpecifier> specs)
name
- unique name of the AggregateEnginespecs
- List of primitive Engine Descriptors to be included in the aggregateprotected static void bindExternalResources(org.apache.uima.analysis_engine.AnalysisEngineDescription aed, org.apache.uima.resource.ResourceCreationSpecifier spec)
aed
- Aggregate AnalysisEngineDescription to bind resources intospec
- primitive engine spec to bind resources fromprotected static String getComponentName(org.apache.uima.resource.Parameter[] parameters, String... defaultName)
parameters
- Array of Parameter objectsCopyright © 2018 Department of Veterans Affairs. All Rights Reserved.