org.apache.uima.resource
Interface ParameterizedDataResource
- All Superinterfaces:
- Resource
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.
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
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.