Class ItemToLicenseeConverter

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

public class ItemToLicenseeConverter extends Object
Convert Item entity into Licensee object.
  • Constructor Details

    • ItemToLicenseeConverter

      public ItemToLicenseeConverter()
  • Method Details

    • convert

      public Licensee 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,Licensee>
      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 Licensee newTarget()