Class RequiredComponentTypeAttributePopulator
java.lang.Object
de.hybris.platform.cmsfacades.types.populator.RequiredComponentTypeAttributePopulator
- All Implemented Interfaces:
Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
public class RequiredComponentTypeAttributePopulator
extends Object
implements Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
Populator that populates the required field of the
ComponentTypeAttributeData POJO.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidpopulate(AttributeDescriptorModel source, ComponentTypeAttributeData target) Populate the target instance with values from the source instance.voidsetRequired(boolean required)
-
Constructor Details
-
RequiredComponentTypeAttributePopulator
public RequiredComponentTypeAttributePopulator()
-
-
Method Details
-
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()
-