public interface Converter<FROM,TO>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Converter.MatchRating<FROM>
This interface is intended to be implemented by converter implementations that want to provide a rating on how
well the converter may convert the provided data, or in other word, how well the format of the provided data fits
to the capabilities of the converter.
|
| Modifier and Type | Method and Description |
|---|---|
FROM |
convertBackward(TO to,
String... params)
Converts a given instance
TO back to the origin format FROM using the (optional)
parameters. |
TO |
convertForward(FROM from,
String... params)
Converts a given instance
FROM to the target format TO using the (optional) parameters. |
TO convertForward(FROM from, String... params) throws ConversionException
FROM to the target format TO using the (optional) parameters.from - the originating object that shall be converted to an instance of TOparams - optional parameters that may be passed to the converter that may influence conversionTO which was create from the FROM instanceConversionException - if any error occurs during conversionFROM convertBackward(TO to, String... params) throws ConversionException
TO back to the origin format FROM using the (optional)
parameters.to - the converted object that shall be converted back to an instance of FROMparams - optional parameters that may be passed to the converter that may influence conversionFROM which was create from the TO instanceConversionException - if any error occurs during conversionCopyright © 2012–2026 cismet GmbH. All rights reserved.