public class ConfigurationParameterUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static Map<String,String> |
javaTypeToUimaType
Map of Java type strings to UIMA configuration parameter types.
|
Constructor and Description |
---|
ConfigurationParameterUtils() |
Modifier and Type | Method and Description |
---|---|
protected static void |
getParameterTypeFromField(Field field,
org.apache.uima.resource.metadata.ConfigurationParameter param)
Get the multivalued and type parameter information from the field object.
|
static <T,V> V |
getParameterValue(T configObj,
String paramName,
org.apache.uima.UimaContext context)
Return the value set in the configuration for the parameter named.
|
static <T> ConfigurationParameterImpl[] |
getParams(Class<T> c) |
static <T> Map<ConfigurationParameterImpl,?> |
getParamsToValuesMap(T paramObject) |
static <T> void |
initParameterValues(T configObj,
org.apache.uima.UimaContext context) |
public static <T> Map<ConfigurationParameterImpl,?> getParamsToValuesMap(T paramObject)
public static <T> ConfigurationParameterImpl[] getParams(Class<T> c) throws IllegalAccessException
IllegalAccessException
public static <T> void initParameterValues(T configObj, org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static <T,V> V getParameterValue(T configObj, String paramName, org.apache.uima.UimaContext context)
T
- Type of the configuration ObjectV
- Type of the value that is returnedconfigObj
- object whose parameter value will be discoveredparamName
- name of the parametercontext
- UimaContext with the parameter valuesprotected static void getParameterTypeFromField(Field field, org.apache.uima.resource.metadata.ConfigurationParameter param)
ConfigurationParamter.TYPE_STRING
.field
- field object from which class information can be retrieved.param
- ConfigurationParameter to store type and multi-value information.Copyright © 2018 Department of Veterans Affairs. All Rights Reserved.