|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.resource.Resource_ImplBase
org.apache.uima.resource.impl.FileLanguageResource_impl
public class FileLanguageResource_impl
An implementation of ParameterizedDataResource for language-based resources. Initialized
from a FileLanguageResourceSpecifier.
| Field Summary |
|---|
| Fields inherited from interface org.apache.uima.resource.Resource |
|---|
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT |
| Constructor Summary | |
|---|---|
FileLanguageResource_impl()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Releases all resources held by this Resource. |
DataResource |
getDataResource(java.lang.String[] aParams)
Gets a DataResource object that can be used to access the data that is appropriate for
the given parameter values. |
boolean |
initialize(ResourceSpecifier aSpecifier,
java.util.Map<java.lang.String,java.lang.Object> aAdditionalParams)
Initializes this Resource from a ResourceSpecifier. |
| Methods inherited from class org.apache.uima.resource.Resource_ImplBase |
|---|
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.uima.resource.Resource |
|---|
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger |
| Constructor Detail |
|---|
public FileLanguageResource_impl()
| Method Detail |
|---|
public boolean initialize(ResourceSpecifier aSpecifier,
java.util.Map<java.lang.String,java.lang.Object> aAdditionalParams)
throws ResourceInitializationException
ResourceResource from a ResourceSpecifier. Applications
do not need to call this method. It is called automatically by the ResourceFactory
and cannot be called a second time.
initialize in interface Resourceinitialize in class Resource_ImplBaseaSpecifier - specifies how to create a resource or locate an existing resource service.aAdditionalParams - a Map containing additional parameters. May be null if there are no
parameters. Each class that implements this interface can decide what additional
parameters it supports.
ResourceSpecifier is not of an appropriate type for this Resource. If
the ResourceSpecifier is of an appropriate type but is invalid or if
some other failure occurs, an exception should be thrown.
ResourceInitializationException - if a failure occurs during initialization.Resource.initialize(org.apache.uima.resource.ResourceSpecifier,
java.util.Map)public void destroy()
ResourceResource.
destroy in interface Resourcedestroy in class Resource_ImplBaseResource.destroy()
public DataResource getDataResource(java.lang.String[] aParams)
throws ResourceInitializationException
ParameterizedDataResourceDataResource object that can be used to access the data that is appropriate for
the given parameter values.
getDataResource in interface ParameterizedDataResourceaParams - parameter values
null
ResourceInitializationException - if no DataResource could be initialized from the specified parametersParameterizedDataResource.getDataResource(java.lang.String[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||