public interface ParametersTransformer
| Modifier and Type | Method and Description |
|---|---|
<T> ParameterTransformation<T> |
getTransformation(java.lang.Class<T> klass)
Gets the transformation that can transform objects of the given type.
|
java.lang.String |
getTransformationDescription(java.lang.Class<?> klass)
Gets the description of the transformation for the given klass.
|
java.lang.Object |
transform(java.lang.String arg,
java.lang.Class<?> klass)
Transforms a parameter string to an object of a specific type.
|
java.lang.Object |
transformStream(java.io.InputStream istr,
java.lang.Class<?> klass)
Transforms the contents read from the given stream to an object of a
specific type.
|
java.lang.Object |
transformString(java.lang.String arg,
java.lang.Class<?> klass)
Transforms a parameter string containing the raw parameter value to
an object of a specific type.
|
<T> ParameterTransformation<T> getTransformation(java.lang.Class<T> klass)
T - the type of the object the transformation transformsklass - the class of the object the transformation transformsjava.lang.String getTransformationDescription(java.lang.Class<?> klass)
throws NoSuchTransformationException
klass - the type of the object the transformation transformsNoSuchTransformationException - When no suitable transformation is availablejava.lang.Object transform(java.lang.String arg,
java.lang.Class<?> klass)
throws ModuleException
arg - the parameter stringklass - the type of the object the parameter string should be
transformed toModuleException - When no suitable transformation is availableAptParameterTransformation.fileSource()java.lang.Object transformString(java.lang.String arg,
java.lang.Class<?> klass)
throws ModuleException
arg - the parameter stringklass - the type of the object the parameter string should be
transformed toModuleException - When no suitable transformation is availablejava.lang.Object transformStream(java.io.InputStream istr,
java.lang.Class<?> klass)
throws ModuleException
transformString(String, Class).istr - input stream to readklass - the type of the object the parameter string should be
transformed toModuleException - When no suitable transformation is available