Class MapToFormattedString
java.lang.Object
de.gebit.integrity.parameter.conversion.Conversion<Map,FormattedString>
de.gebit.integrity.parameter.conversion.conversions.java.other.AbstractMapToString<FormattedString>
de.gebit.integrity.parameter.conversion.conversions.java.other.MapToFormattedString
A default Integrity conversion.
- Author:
- Rene Schneider - initial API and implementation
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gebit.integrity.parameter.conversion.Conversion
Conversion.Priority -
Field Summary
Fields inherited from class de.gebit.integrity.parameter.conversion.conversions.java.other.AbstractMapToString
MAP_PATH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(Map aSource, Class<? extends FormattedString> aTargetType, ConversionContext aConversionContext) Performs the conversion.Methods inherited from class de.gebit.integrity.parameter.conversion.conversions.java.other.AbstractMapToString
convertToFormattedStringMethods inherited from class de.gebit.integrity.parameter.conversion.Conversion
convertValueRecursive, convertValueToFormattedStringArrayRecursive, setVisitedObjects
-
Constructor Details
-
MapToFormattedString
public MapToFormattedString()
-
-
Method Details
-
convert
public FormattedString convert(Map aSource, Class<? extends FormattedString> aTargetType, ConversionContext aConversionContext) throws ConversionFailedException Description copied from class:ConversionPerforms the conversion.- Specified by:
convertin classConversion<Map,FormattedString> - Parameters:
aSource- the source object to convertaTargetType- TODOaConversionContext- controls some conversion parameters and rules; may be null if the defaultConversionContextvalues shall be used- Returns:
- the converted object
- Throws:
ConversionFailedException- in case of conversion errors
-