java.lang.Object
ma.glasnost.orika.CustomConverter<TransportOfferingData,Flight>
de.hybris.platform.coreairlinecommonsocc.mapping.converters.FlightConverter
All Implemented Interfaces:
ma.glasnost.orika.Converter<TransportOfferingData,Flight>, ma.glasnost.orika.MappedTypePair<TransportOfferingData,Flight>

public class FlightConverter extends ma.glasnost.orika.CustomConverter<TransportOfferingData,Flight>
Converter to convert the Flight from TransportOfferingData.
  • Field Summary

    Fields inherited from class ma.glasnost.orika.CustomConverter

    destinationType, mapperFacade, sourceType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(TransportOfferingData transportOfferingData, ma.glasnost.orika.metadata.Type<? extends Flight> type, ma.glasnost.orika.MappingContext mappingContext)
    Populates the flight from the transportOfferingData.
    protected LocalDate
    getLocalDate(Date date, ZoneId zoneId)
    Gets local date from given date and zone id.

    Methods inherited from class ma.glasnost.orika.CustomConverter

    canConvert, equals, getAType, getBType, hashCode, setMapperFacade, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FlightConverter

      public FlightConverter()
  • Method Details

    • convert

      public Flight convert(TransportOfferingData transportOfferingData, ma.glasnost.orika.metadata.Type<? extends Flight> type, ma.glasnost.orika.MappingContext mappingContext)
      Populates the flight from the transportOfferingData.
      Parameters:
      transportOfferingData - transportOfferingData
      type - the type of the conversion
      mappingContext - the mapping context
      Returns:
      the Flight
    • getLocalDate

      protected LocalDate getLocalDate(Date date, ZoneId zoneId)
      Gets local date from given date and zone id.
      Parameters:
      date - the date
      zoneId - the zone id
      Returns:
      the local date