.getOperationalProperties().setOutputsNewCASes(true);
/** * Overridden to set default operational properties if they are not specified in descriptor. */ public void buildFromXMLElement(Element aElement, XMLParser aParser, ParsingOptions aOptions) throws InvalidXMLException { super.buildFromXMLElement(aElement, aParser, aOptions); if (getCollectionReaderMetaData().getOperationalProperties() == null) { OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(true); opProps.setMultipleDeploymentAllowed(false); opProps.setOutputsNewCASes(true); getCollectionReaderMetaData().setOperationalProperties(opProps); } }
/** * Creates a new CasConsumerDescription_impl. Initializes the MetaData and FrameworkImplementation * attributes. */ public FlowControllerDescription_impl() { setMetaData(new ProcessingResourceMetaData_impl()); setFrameworkImplementation(Constants.JAVA_FRAMEWORK_NAME); // set default operational properties (may be overrriden during parsing) OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(false); opProps.setMultipleDeploymentAllowed(true); opProps.setOutputsNewCASes(false); getFlowControllerMetaData().setOperationalProperties(opProps); }
/** * Overridden to set default operational properties if they are not specified in descriptor. */ public void buildFromXMLElement(Element aElement, XMLParser aParser, ParsingOptions aOptions) throws InvalidXMLException { super.buildFromXMLElement(aElement, aParser, aOptions); if (getFlowControllerMetaData().getOperationalProperties() == null) { OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(false); opProps.setMultipleDeploymentAllowed(true); opProps.setOutputsNewCASes(false); getFlowControllerMetaData().setOperationalProperties(opProps); } }
/** * Creates a new CasConsumerDescription_impl. Initializes the MetaData and FrameworkImplementation * attributes. */ public CasConsumerDescription_impl() { setMetaData(new ProcessingResourceMetaData_impl()); setFrameworkImplementation(Constants.JAVA_FRAMEWORK_NAME); // set default operational properties (may be overrriden during parsing) OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(false); opProps.setMultipleDeploymentAllowed(false); opProps.setOutputsNewCASes(false); getCasConsumerMetaData().setOperationalProperties(opProps); }
/** * Creates a new ProcessingResourceMetaData_impl. Initializes the MetaData and * FrameworkImplementation attributes. */ public CollectionReaderDescription_impl() { setMetaData(new ProcessingResourceMetaData_impl()); setFrameworkImplementation(Constants.JAVA_FRAMEWORK_NAME); // set default operational properties (may be overriden during parsing) OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(true); opProps.setMultipleDeploymentAllowed(false); opProps.setOutputsNewCASes(true); getCollectionReaderMetaData().setOperationalProperties(opProps); }
/** * Overridden to set default operational properties if they are not specified in descriptor. */ public void buildFromXMLElement(Element aElement, XMLParser aParser, ParsingOptions aOptions) throws InvalidXMLException { super.buildFromXMLElement(aElement, aParser, aOptions); if (getCasConsumerMetaData().getOperationalProperties() == null) { OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(false); opProps.setMultipleDeploymentAllowed(false); opProps.setOutputsNewCASes(false); getCasConsumerMetaData().setOperationalProperties(opProps); } }
/** * Creates a new CasInitializerDescription_impl. Initializes the MetaData and * FrameworkImplementation attributes. */ public CasInitializerDescription_impl() { setMetaData(new ProcessingResourceMetaData_impl()); setFrameworkImplementation(Constants.JAVA_FRAMEWORK_NAME); // set default operational properties (may be overrriden during parsing) OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(true); opProps.setMultipleDeploymentAllowed(true); opProps.setOutputsNewCASes(false); getCasInitializerMetaData().setOperationalProperties(opProps); }
/** * Overridden to set default operational properties if they are not specified in descriptor. */ public void buildFromXMLElement(Element aElement, XMLParser aParser, ParsingOptions aOptions) throws InvalidXMLException { super.buildFromXMLElement(aElement, aParser, aOptions); if (getCasInitializerMetaData().getOperationalProperties() == null) { OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(true); opProps.setMultipleDeploymentAllowed(true); opProps.setOutputsNewCASes(false); getCasInitializerMetaData().setOperationalProperties(opProps); } }
/** * Creates a new AnalysisEngineDescription_impl. Initializes the MetaData, * DelegateAnalysisEngineSpecifiers, and ExternalResourcesRequired attributes. */ public AnalysisEngineDescription_impl() { setMetaData(new AnalysisEngineMetaData_impl()); setFrameworkImplementation(Constants.JAVA_FRAMEWORK_NAME); // Set default operational properties. These are used if the // descriptor is constructed programatically, rather than parsed. OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(true); opProps.setMultipleDeploymentAllowed(true); opProps.setOutputsNewCASes(false); getAnalysisEngineMetaData().setOperationalProperties(opProps); }
.getSelection(), ops.isMultipleDeploymentAllowed())); } else if (event.widget == outputsNewCASes) { ops.setOutputsNewCASes(setValueChangedBoolean(outputsNewCASes.getSelection(), ops .getOutputsNewCASes())); } else if (event.widget == implName) {
op.setMultipleDeploymentAllowed(componentAnno.multipleDeploymentAllowed()); op.setModifiesCas(componentAnno.modifiesCas()); op.setOutputsNewCASes(componentAnno.outputsNewCases()); } else { OperationalProperties op = desc.getAnalysisEngineMetaData().getOperationalProperties(); op.setMultipleDeploymentAllowed(MULTIPLE_DEPLOYMENT_ALLOWED_DEFAULT); op.setModifiesCas(MODIFIES_CAS_DEFAULT); op.setOutputsNewCASes(OUTPUTS_NEW_CASES_DEFAULT);
@Override public AnalysisEngine buildPipeline(AnyObject config, String pipeline, int stageId, FixedFlow funnel, boolean outputNewCASes) throws Exception { loadTypePriorities(config); Iterable<AnyObject> iterable = config.getIterable(pipeline); FlowControllerDescription fcd = FlowControllerFactory .createFlowControllerDescription(FixedFlowController797182.class); AnalysisEngineDescription aee = buildPipeline(stageId, iterable, fcd); if (funnel != null) { FixedFlow fc = (FixedFlow) aee.getAnalysisEngineMetaData().getFlowConstraints(); funnel.setFixedFlow(fc.getFixedFlow()); aee.getAnalysisEngineMetaData().setFlowConstraints(funnel); } aee.getAnalysisEngineMetaData().getOperationalProperties().setOutputsNewCASes(outputNewCASes); aee.getAnalysisEngineMetaData().setName(pipeline); return AnalysisEngineFactory.createAggregate(aee); }