T - The type of entriespublic abstract class AbstractMapParameterTransformation<T> extends java.lang.Object implements ParameterTransformation<T>
| Constructor and Description |
|---|
AbstractMapParameterTransformation(java.util.Map<java.lang.String,T> values)
Constructor.
|
AbstractMapParameterTransformation(T... values)
Constructor which uses the toString() method of some values to get a string representation.
|
| Modifier and Type | Method and Description |
|---|---|
T |
transform(java.lang.String arg)
Transforms the given string-typed parameter into some target type T.
|
public AbstractMapParameterTransformation(java.util.Map<java.lang.String,T> values)
values - A map containing the values understood by this transformation.@SafeVarargs public AbstractMapParameterTransformation(T... values)
values - A collection containing all possible values.public T transform(java.lang.String arg) throws ModuleException
ParameterTransformationtransform in interface ParameterTransformation<T>arg - parameterModuleException - thrown when the transformation fails