Class LocationConverter

java.lang.Object
com.github.dozermapper.core.DozerConverter<String,Location>
org.openwms.wms.location.impl.LocationConverter
All Implemented Interfaces:
com.github.dozermapper.core.ConfigurableCustomConverter, com.github.dozermapper.core.CustomConverter

@Component public class LocationConverter extends com.github.dozermapper.core.DozerConverter<String,Location>
A LocationConverter.
Author:
Heiko Scherrer
  • Field Details

  • Constructor Details

    • LocationConverter

      public LocationConverter()
  • Method Details

    • convertTo

      public Location convertTo(String source, Location destination)
      Converts the source field to the destination field and return the resulting destination value.
      Specified by:
      convertTo in class com.github.dozermapper.core.DozerConverter<String,Location>
      Parameters:
      source - the value of the source field
      destination - the current value of the destination field (or null)
      Returns:
      the resulting value for the destination field
    • convertFrom

      public String convertFrom(Location source, String destination)
      Converts the source field to the destination field and return the resulting destination value
      Specified by:
      convertFrom in class com.github.dozermapper.core.DozerConverter<String,Location>
      Parameters:
      source - the value of the source field
      destination - the current value of the destination field (or null)
      Returns:
      the resulting value for the destination field