Class RequiredComponentTypeAttributePopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.types.populator.RequiredComponentTypeAttributePopulator
-
- All Implemented Interfaces:
Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
public class RequiredComponentTypeAttributePopulator extends java.lang.Object implements Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
Populator that populates the required field of theComponentTypeAttributeDataPOJO.
-
-
Constructor Summary
Constructors Constructor Description RequiredComponentTypeAttributePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisRequired()voidpopulate(AttributeDescriptorModel source, ComponentTypeAttributeData target)Populate the target instance with values from the source instance.voidsetRequired(boolean required)
-
-
-
Method Detail
-
populate
public void populate(AttributeDescriptorModel source, ComponentTypeAttributeData target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AttributeDescriptorModel,ComponentTypeAttributeData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
setRequired
public void setRequired(boolean required)
-
isRequired
protected boolean isRequired()
-
-