Interface UniqueIdentifierConverter<T extends ItemModel>

    • Method Detail

      • getItemType

        java.lang.String getItemType()
        Returns the item type ItemModel#getItemType where the converter should be applied to.
        Returns:
        item type
      • convert

        ItemData convert​(T itemModel)
        Convert an ItemModel object to the corresponding ItemData instance.
        Parameters:
        itemModel - - the item model entity that will be converted.
        Returns:
        an instance of the ItemData class that corresponds to the given ItemModel getItemType().
        Throws:
        java.lang.IllegalArgumentException - when itemModel is null.