// TypeSystemDescription tsd = new TypeSystemDescription_impl();
// tsd.addType("NamedEntity", "", "uima.tcas.Annotation");
// tsd.addType("DocumentStructure", "", "uima.cas.TOP");
// primitiveDesc.getAnalysisEngineMetaData().setTypeSystem(tsd);
Capability cap = new Capability_impl();
cap.addOutputType("NamedEntity", true);
cap.addOutputType("DocumentStructure", true);
Capability[] caps = new Capability[] {cap};
primitiveDesc.getAnalysisEngineMetaData().setCapabilities(caps);
_testProcess(primitiveDesc);
primitiveDesc = new AnalysisEngineDescription_impl();
primitiveDesc.setPrimitive(true);
primitiveDesc
.setAnnotatorImplementationName("org.apache.uima.analysis_engine.impl.TestAnnotator");
primitiveDesc.getMetaData().setName("Test Primitive TAE");
TypeSystemDescription tsd = new TypeSystemDescription_impl();
tsd.addType("NamedEntity", "", "uima.tcas.Annotation");
tsd.addType("DocumentStructure", "", "uima.cas.TOP");
primitiveDesc.getAnalysisEngineMetaData().setTypeSystem(tsd);
cap = new Capability_impl();
cap.addOutputType("NamedEntity", true);
cap.addOutputType("DocumentStructure", true);
caps = new Capability[] {cap};
primitiveDesc.getAnalysisEngineMetaData().setCapabilities(caps);
_testProcess(primitiveDesc);
// test simple aggregate TextAnalysisEngine (again using TestAnnotator class)