Interface DataToWsConverter<DATA,​WSDTO>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.function.Predicate<java.lang.Object> canConvert()
      Predicate to verify whether the convert method can be used or not.
      WSDTO convert​(DATA source, java.lang.String fields)
      Method to convert a source object to a target object.
      void customize​(ma.glasnost.orika.MapperFactory factory)
      Method to customize conversion between source and target object.
      java.lang.Class getDataClass()
      Class that represents a source object
      java.lang.Class getWsClass()
      Class that represents a target object
    • Method Detail

      • getDataClass

        java.lang.Class getDataClass()
        Class that represents a source object
        Returns:
        the Class
      • getWsClass

        java.lang.Class getWsClass()
        Class that represents a target object
        Returns:
        the Class
      • canConvert

        java.util.function.Predicate<java.lang.Object> canConvert()
        Predicate to verify whether the convert method can be used or not.
        Returns:
        TRUE when {convert(Object, String) can be performed; FALSE otherwise.
      • convert

        WSDTO convert​(DATA source,
                      java.lang.String fields)
        Method to convert a source object to a target object.
        Parameters:
        source - the source object
        fields - the fields that should be populated in target object
        Returns:
        the target object
      • customize

        void customize​(ma.glasnost.orika.MapperFactory factory)
        Method to customize conversion between source and target object. This method is called after the basic conversion is finished.
        Parameters:
        factory - the MapperFactory that can be used to add new customization.