Codota Logo
UIMAFramework.getResourceSpecifierFactory
Code IndexAdd Codota to your IDE (free)

How to use
getResourceSpecifierFactory
method
in
org.apache.uima.UIMAFramework

Best Java code snippets using org.apache.uima.UIMAFramework.getResourceSpecifierFactory (Showing top 20 results out of 315)

origin: org.apache.uima/uimaj-ep-configurator

/**
 * Creates the fs index key description.
 *
 * @return the fs index key description
 */
public FsIndexKeyDescription createFsIndexKeyDescription() {
 return UIMAFramework.getResourceSpecifierFactory().createFsIndexKeyDescription();
}
origin: apache/uima-uimaj

/**
 * @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);
}
origin: apache/uima-uimaj

/**
 * @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);
}
origin: org.apache.uima/uimaj-ep-configurator

/**
 * 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;
}
origin: apache/uima-uimaj

/**
 * @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);
}
origin: apache/uima-uimaj

/**
 * @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);
}
origin: org.apache.uima/uimaj-ep-configurator

/**
 * 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;
}
origin: org.apache.uima/uimaj-ep-configurator

/**
 * 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;
}
origin: org.apache.uima/uimaj-ep-configurator

/**
 * 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);
}
origin: org.apache.uima/uimaj-ep-configurator

/**
 * 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);
}
origin: org.apache.uima/uimaj-ep-configurator

/**
 * 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);
}
origin: org.apache.uima/uimaj-ep-configurator

/**
 * 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);
}
origin: apache/uima-uimaj

/**
 * 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);
 }
}
origin: apache/uima-uimaj

/**
 * 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);
}
origin: apache/uima-uimaj

/**
 * 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);
 }
}
origin: apache/uima-uimaj

/**
 * 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);
}
origin: apache/uima-uimaj

/**
 * 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);
 }
}
origin: apache/uima-uimaj

/**
 * 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);
}
origin: apache/uima-uimaj

/**
 * 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);
}
origin: apache/uima-uimaj

/**
 * 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);
 }
}
org.apache.uimaUIMAFrameworkgetResourceSpecifierFactory

Javadoc

Get a reference to the ResourceSpecifierFactory. This factory is used when constructing ResourceSpecifiers from scratch.

Popular methods of UIMAFramework

  • getXMLParser
  • produceAnalysisEngine
  • newDefaultResourceManager
  • getLogger
  • newConfigurationManager
  • newUimaContext
  • produceCollectionReader
  • produceCollectionProcessingEngine
    Produces a CollectionProcessingEngine instance from a cpeDescription.
  • getDefaultPerformanceTuningProperties
  • produceCasConsumer
  • getVersionString
  • produceResource
  • getVersionString,
  • produceResource,
  • _getBuildRevision,
  • _getDefaultPerformanceTuningProperties,
  • _getLogger,
  • _getMajorVersion,
  • _getMinorVersion,
  • _getResourceFactory,
  • _getResourceSpecifierFactory

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getSystemService (Context)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now