/** * Creates the fs index key description. * * @return the fs index key description */ public FsIndexKeyDescription createFsIndexKeyDescription() { return UIMAFramework.getResourceSpecifierFactory().createFsIndexKeyDescription(); }
/** * @see org.apache.uima.resource.metadata.Capability#addInputFeature(java.lang.String) */ public void addInputFeature(String aFeatureName) { TypeOrFeature feat = UIMAFramework.getResourceSpecifierFactory().createTypeOrFeature(); feat.setType(false); feat.setName(aFeatureName); TypeOrFeature[] oldArr = getInputs(); TypeOrFeature[] newArr = new TypeOrFeature[oldArr.length + 1]; System.arraycopy(oldArr, 0, newArr, 0, oldArr.length); newArr[newArr.length - 1] = feat; setInputs(newArr); }
/** * @see org.apache.uima.resource.metadata.Capability#addOutputFeature(java.lang.String) */ public void addOutputFeature(String aFeatureName) { TypeOrFeature feat = UIMAFramework.getResourceSpecifierFactory().createTypeOrFeature(); feat.setType(false); feat.setName(aFeatureName); TypeOrFeature[] oldArr = getOutputs(); TypeOrFeature[] newArr = new TypeOrFeature[oldArr.length + 1]; System.arraycopy(oldArr, 0, newArr, 0, oldArr.length); newArr[newArr.length - 1] = feat; setOutputs(newArr); }
/** * Gets the fs index collection. * * @return the fs index collection */ protected FsIndexCollection getFsIndexCollection() { FsIndexCollection fsic = getAnalysisEngineMetaData().getFsIndexCollection(); if (null == fsic) getAnalysisEngineMetaData().setFsIndexCollection( fsic = UIMAFramework.getResourceSpecifierFactory().createFsIndexCollection()); return fsic; }
/** * @see org.apache.uima.resource.metadata.Capability#addInputType(java.lang.String, * boolean) */ public void addInputType(String aTypeName, boolean aAllAnnotatorFeatures) { TypeOrFeature type = UIMAFramework.getResourceSpecifierFactory().createTypeOrFeature(); type.setType(true); type.setName(aTypeName); type.setAllAnnotatorFeatures(aAllAnnotatorFeatures); TypeOrFeature[] oldArr = getInputs(); TypeOrFeature[] newArr = new TypeOrFeature[oldArr.length + 1]; System.arraycopy(oldArr, 0, newArr, 0, oldArr.length); newArr[newArr.length - 1] = type; setInputs(newArr); }
/** * @see org.apache.uima.resource.metadata.Capability#addOutputType(java.lang.String, * boolean) */ public void addOutputType(String aTypeName, boolean aAllAnnotatorFeatures) { TypeOrFeature type = UIMAFramework.getResourceSpecifierFactory().createTypeOrFeature(); type.setType(true); type.setName(aTypeName); type.setAllAnnotatorFeatures(aAllAnnotatorFeatures); TypeOrFeature[] oldArr = getOutputs(); TypeOrFeature[] newArr = new TypeOrFeature[oldArr.length + 1]; System.arraycopy(oldArr, 0, newArr, 0, oldArr.length); newArr[newArr.length - 1] = type; setOutputs(newArr); }
/** * Gets the resource manager configuration. * * @return the resource manager configuration */ public ResourceManagerConfiguration getResourceManagerConfiguration() { ResourceManagerConfiguration rmc = editor.getAeDescription().getResourceManagerConfiguration(); if (null == rmc) { rmc = UIMAFramework.getResourceSpecifierFactory().createResourceManagerConfiguration(); editor.getAeDescription().setResourceManagerConfiguration(rmc); } return rmc; }
/** * Gets the type priorities. * * @return the type priorities */ protected TypePriorities getTypePriorities() { TypePriorities tps = getAnalysisEngineMetaData().getTypePriorities(); if (null == tps) { getAnalysisEngineMetaData().setTypePriorities( tps = UIMAFramework.getResourceSpecifierFactory().createTypePriorities()); } return tps; }
/** * Creates the and link local processing descriptors to ae. * * @param d the d * @throws ResourceInitializationException the resource initialization exception */ private void createAndLinkLocalProcessingDescriptorsToAe(CasConsumerDescription d) throws ResourceInitializationException { aeDescription = UIMAFramework.getResourceSpecifierFactory().createAnalysisEngineDescription(); aeDescription.setAnnotatorImplementationName(d.getImplementationName()); aeDescription.setFrameworkImplementation(d.getFrameworkImplementation()); linkLocalProcessingDescriptorsToAe(d); }
/** * Creates the and link local processing descriptors to ae. * * @param d the d * @throws ResourceInitializationException the resource initialization exception */ private void createAndLinkLocalProcessingDescriptorsToAe(CollectionReaderDescription d) throws ResourceInitializationException { aeDescription = UIMAFramework.getResourceSpecifierFactory().createAnalysisEngineDescription(); aeDescription.setAnnotatorImplementationName(d.getImplementationName()); aeDescription.setFrameworkImplementation(d.getFrameworkImplementation()); linkLocalProcessingDescriptorsToAe(d); }
/** * Creates the and link local processing descriptors to ae. * * @param d the d * @throws ResourceInitializationException the resource initialization exception */ private void createAndLinkLocalProcessingDescriptorsToAe(FlowControllerDescription d) throws ResourceInitializationException { aeDescription = UIMAFramework.getResourceSpecifierFactory().createAnalysisEngineDescription(); aeDescription.setAnnotatorImplementationName(d.getImplementationName()); aeDescription.setFrameworkImplementation(d.getFrameworkImplementation()); linkLocalProcessingDescriptorsToAe(d); }
/** * Creates the and link local processing descriptors to ae. * * @param d the d * @throws ResourceInitializationException the resource initialization exception */ private void createAndLinkLocalProcessingDescriptorsToAe(CasInitializerDescription d) throws ResourceInitializationException { aeDescription = UIMAFramework.getResourceSpecifierFactory().createAnalysisEngineDescription(); aeDescription.setAnnotatorImplementationName(d.getImplementationName()); aeDescription.setFrameworkImplementation(d.getFrameworkImplementation()); linkLocalProcessingDescriptorsToAe(d); }
/** * 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); } }
/** * 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 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 (getCollectionReaderMetaData().getOperationalProperties() == null) { OperationalProperties opProps = UIMAFramework.getResourceSpecifierFactory() .createOperationalProperties(); opProps.setModifiesCas(true); opProps.setMultipleDeploymentAllowed(false); opProps.setOutputsNewCASes(true); getCollectionReaderMetaData().setOperationalProperties(opProps); } }