Class ItemToLicenseTemplateConverter
- java.lang.Object
-
- com.labs64.netlicensing.schema.converter.ItemToLicenseTemplateConverter
-
- All Implemented Interfaces:
Converter<Item,LicenseTemplate>
public class ItemToLicenseTemplateConverter extends Object
ConvertItem
entity intoLicenseTemplate
object.
-
-
Constructor Summary
Constructors Constructor Description ItemToLicenseTemplateConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseTemplate
convert(Item source)
Convert the source of type S to target type T.LicenseTemplate
newTarget()
-
-
-
Method Detail
-
convert
public LicenseTemplate convert(Item source) throws ConversionException
Description copied from interface:Converter
Convert the source of type S to target type T.- Specified by:
convert
in interfaceConverter<Item,LicenseTemplate>
- 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 LicenseTemplate newTarget()
-
-