S - ItemToMapConversionContext which contains information about the IntegrationObject and the ItemModelT - it is a target to populate the values as a Map from given ItemModelpublic abstract class AbstractItem2MapPopulator<S extends ItemToMapConversionContext,T extends java.util.Map<java.lang.String,java.lang.Object>> extends java.lang.Object implements Populator<S,T>
| Constructor and Description |
|---|
AbstractItem2MapPopulator() |
| Modifier and Type | Method and Description |
|---|---|
protected ModelService |
getModelService()
Gets a reference to the
ModelService |
protected abstract boolean |
isApplicable(AttributeDescriptorModel attributeDescriptor)
Indicates whether this Populator is applicable to process the attribute
|
void |
populate(S source,
T target)
Populate the target instance with values from the source instance.
|
protected abstract void |
populateToMap(IntegrationObjectItemAttributeModel attr,
java.lang.String qualifier,
S source,
T target)
Implements the logic to populate the target
|
void |
setModelService(ModelService modelService) |
public void populate(S source, T target)
Populatorpopulate in interface Populator<S extends ItemToMapConversionContext,T extends java.util.Map<java.lang.String,java.lang.Object>>source - the source objecttarget - the target to fillprotected abstract void populateToMap(IntegrationObjectItemAttributeModel attr, java.lang.String qualifier, S source, T target)
attr - IntegrationObjectItemAttributeModel used in the implementation to populate the targetqualifier - Attribute's qualifier used in the implementation to populate the targetsource - Source used in the implementation to populate the targettarget - Populate the target with the resultprotected abstract boolean isApplicable(AttributeDescriptorModel attributeDescriptor)
attributeDescriptor - AttributeDescriptorModel used to test whether the Populator can operate on the attributetrue, if the Populator is applicable, otherwise falseprotected ModelService getModelService()
ModelServicepublic void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.