Class ItemToBundleConverter

java.lang.Object
com.labs64.netlicensing.schema.converter.ItemToBundleConverter
All Implemented Interfaces:
Converter<Item,Bundle>

public class ItemToBundleConverter extends Object
Convert Item entity into Bundle object.
  • Constructor Details

    • ItemToBundleConverter

      public ItemToBundleConverter()
  • Method Details

    • convert

      public Bundle convert(Item source) throws ConversionException
      Description copied from interface: Converter
      Convert the source of type S to target type T.
      Specified by:
      convert in interface Converter<Item,Bundle>
      Parameters:
      source - the source object to converter, which must be an instance of S
      Returns:
      the converted object, which must be an instance of T
      Throws:
      ConversionException - if the source could not be converted to the desired target type
    • newTarget

      public Bundle newTarget()