Package org.apache.uima.resource

# Interface ParameterizedDataResource

All Superinterfaces:
  `Resource`

All Known Implementing Classes:
  `FileLanguageResource_impl`

public interface ParameterizedDataResource extends Resource
A resource that provides access to data, where the data can vary based on parameters. A common example is a dictionary, where the dictionary data is dependent upon the language being analyzed.

The `getDataResource(String[])` takes an array of string parameters and returns a `DataResource` object that can be used to access the data that is appropriate for those parameter values.

- ## Field Summary

  ### Fields inherited from interface org.apache.uima.resource.Resource

  `PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DataResource`
  `getDataResource(String[] aParams)`
  Gets a `DataResource` object that can be used to access the data that is appropriate for the given parameter values.

  ### Methods inherited from interface org.apache.uima.resource.Resource

  `destroy, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, initialize, setLogger`

- ## Method Details

  - ### getDataResource

    DataResource getDataResource(String[] aParams) throws ResourceInitializationException
    Gets a `DataResource` object that can be used to access the data that is appropriate for the given parameter values.
    Parameters:
      `aParams` - parameter values
    Returns:
      an object providing access to the resource data, `null`
    Throws:
      `ResourceInitializationException` - if no `DataResource` could be initialized from the specified parameters