Class BarcodeConverter

java.lang.Object
com.github.dozermapper.core.DozerConverter<String,Barcode>
org.openwms.wms.transport.BarcodeConverter
All Implemented Interfaces:
com.github.dozermapper.core.ConfigurableCustomConverter, com.github.dozermapper.core.CustomConverter

public class BarcodeConverter extends com.github.dozermapper.core.DozerConverter<String,Barcode>
A LocationConverter.
Author:
Heiko Scherrer
  • Constructor Details

    • BarcodeConverter

      public BarcodeConverter()
  • Method Details

    • convertTo

      public Barcode convertTo(String source, Barcode 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,Barcode>
      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(Barcode 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,Barcode>
      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