Package overit.geocall.model.converters
Class FromLocalizedStringToStringConverter
java.lang.Object
overit.geocall.model.converters.FromLocalizedStringToStringConverter
- All Implemented Interfaces:
Converter<LocalizedString,,String> ConditionalConverter<LocalizedString,String>
public class FromLocalizedStringToStringConverter
extends Object
implements ConditionalConverter<LocalizedString,String>
Convert LocalizedString properties into String properties, extracting the value
associated to the current Identity language.
This converter is added to the M2Mapper and is used for map BO with LocalizedString properties to DTO without LocalizedString properties.
This converter is added to the M2Mapper and is used for map BO with LocalizedString properties to DTO without LocalizedString properties.
- Since:
- 10.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.modelmapper.spi.ConditionalConverter
ConditionalConverter.MatchResult -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FromLocalizedStringToStringConverter
public FromLocalizedStringToStringConverter()
-
-
Method Details
-
match
- Specified by:
matchin interfaceConditionalConverter<LocalizedString,String>
-
convert
- Specified by:
convertin interfaceConverter<LocalizedString,String>
-