Class SavedSearchDataConverter
java.lang.Object
ma.glasnost.orika.CustomConverter<FareSearchRequest,SavedSearchData>
de.hybris.platform.coretransportocc.mapping.converters.SavedSearchDataConverter
- All Implemented Interfaces:
ma.glasnost.orika.Converter<FareSearchRequest,,SavedSearchData> ma.glasnost.orika.MappedTypePair<FareSearchRequest,SavedSearchData>
public class SavedSearchDataConverter
extends ma.glasnost.orika.CustomConverter<FareSearchRequest,SavedSearchData>
Converter from FareSearchRequest to SavedSearchData
-
Field Summary
Fields inherited from class ma.glasnost.orika.CustomConverter
destinationType, mapperFacade, sourceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(FareSearchRequest fareSearchRequestWsDTO, ma.glasnost.orika.metadata.Type<? extends SavedSearchData> type, ma.glasnost.orika.MappingContext mappingContext) protected List<PassengerTypeQuantityData>createPassengerTypeQuantityData(String passengerTypes) Prepare the PassengerTypeQuantityData object from the comma separated passengertypesMethods inherited from class ma.glasnost.orika.CustomConverter
canConvert, equals, getAType, getBType, hashCode, setMapperFacade, toString
-
Constructor Details
-
SavedSearchDataConverter
public SavedSearchDataConverter()
-
-
Method Details
-
convert
public SavedSearchData convert(FareSearchRequest fareSearchRequestWsDTO, ma.glasnost.orika.metadata.Type<? extends SavedSearchData> type, ma.glasnost.orika.MappingContext mappingContext) -
createPassengerTypeQuantityData
protected List<PassengerTypeQuantityData> createPassengerTypeQuantityData(String passengerTypes) throws NumberFormatException Prepare the PassengerTypeQuantityData object from the comma separated passengertypes- Parameters:
passengerTypes-- Returns:
- Throws:
NumberFormatException
-