public abstract class AbstractPKDataToModelConverter extends java.lang.Object implements Converter<VersionPayloadDescriptor,ItemModel>
| Constructor and Description |
|---|
AbstractPKDataToModelConverter() |
| Modifier and Type | Method and Description |
|---|---|
ItemModel |
convert(VersionPayloadDescriptor payloadDescriptor)
Uses the source
S object and produces an new instance of T. |
abstract ItemModel |
getItemModelByVersion(CMSVersionModel cmsVersion)
Returns an
ItemModel represented by CMSVersionModel. |
protected ModelService |
getModelService() |
protected TypeService |
getTypeService() |
protected boolean |
isAssignableFromVersion(java.lang.String itemTypeCode)
Returns
true if the itemTypeCode is a super type of CMSVersionModel OR the same type,
false otherwise. |
void |
setModelService(ModelService modelService) |
void |
setTypeService(TypeService typeService) |
public ItemModel convert(VersionPayloadDescriptor payloadDescriptor)
ConverterS object and produces an new instance of T.convert in interface Converter<VersionPayloadDescriptor,ItemModel>payloadDescriptor - the input to be converted.T, converted from the input source.public abstract ItemModel getItemModelByVersion(CMSVersionModel cmsVersion)
ItemModel represented by CMSVersionModel.cmsVersion - the CMSVersionModel that is used to retrieve an ItemModel.ItemModel.protected boolean isAssignableFromVersion(java.lang.String itemTypeCode)
true if the itemTypeCode is a super type of CMSVersionModel OR the same type,
false otherwise.protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected TypeService getTypeService()
public void setTypeService(TypeService typeService)
Copyright © 2018 SAP SE. All Rights Reserved.