T
- type of the target object that will be created with the transformer.public interface Transformer<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.Class<Base64Transformer> |
base64
Convenient access to
Base64Transformer , to use in providers ( |
static java.lang.Class<JsonTransformer> |
json
Convenient access to
JsonTransformer , to use in providers ( |
Modifier and Type | Method and Description |
---|---|
T |
applyTransformation(java.lang.String value,
java.lang.Class<T> targetClass)
Apply a transformation on the input value (String)
|
static final java.lang.Class<JsonTransformer> json
JsonTransformer
, to use in providers (provider.withTransformation(json))
static final java.lang.Class<Base64Transformer> base64
Base64Transformer
, to use in providers (provider.withTransformation(base64))
T applyTransformation(java.lang.String value, java.lang.Class<T> targetClass) throws TransformationException
value
- the parameter value to transformtargetClass
- class of the target objectTransformationException
- when a transformation error occursCopyright © 2022. All rights reserved.