Class DefaultRequiredAttributesFactory
java.lang.Object
com.hybris.backoffice.excel.translators.generic.factory.DefaultRequiredAttributesFactory
- All Implemented Interfaces:
RequiredAttributesFactory
Default implementation of
RequiredAttributesFactory. The services creates hierarchical structure of all
required attributes for given composed type or attribute descriptor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(AttributeDescriptorModel attributeDescriptorModel) Recursively createsRequiredAttributestructure for given attribute.create(ComposedTypeModel composedTypeModel) Recursively createsRequiredAttributestructure for given composed type.intvoidsetFilter(ExcelFilter<AttributeDescriptorModel> filter) voidsetMandatoryFilter(ExcelFilter<AttributeDescriptorModel> mandatoryFilter) voidsetMaxDepth(int maxDepth) voidsetTypeService(TypeService typeService) voidsetUniqueFilter(ExcelFilter<AttributeDescriptorModel> uniqueFilter)
-
Constructor Details
-
DefaultRequiredAttributesFactory
public DefaultRequiredAttributesFactory()
-
-
Method Details
-
create
Description copied from interface:RequiredAttributesFactoryRecursively createsRequiredAttributestructure for given attribute. The mechanism takes into account only unique attributes or not optional attributes without default value for partOf relation.- Specified by:
createin interfaceRequiredAttributesFactory- Parameters:
attributeDescriptorModel- start point of finding hierarchical structure of all required attributes- Returns:
- hierarchical structure of all required attributes
-
create
Description copied from interface:RequiredAttributesFactoryRecursively createsRequiredAttributestructure for given composed type. The mechanism takes into account only unique attributes or not optional attributes without default value for partOf relation.- Specified by:
createin interfaceRequiredAttributesFactory- Parameters:
composedTypeModel- start point of finding hierarchical structure of all required attributes- Returns:
- hierarchical structure of all required attributes
-
getMaxDepth
public int getMaxDepth() -
setMaxDepth
public void setMaxDepth(int maxDepth) -
getTypeService
-
setTypeService
-
getFilter
-
setFilter
-
getUniqueFilter
-
setUniqueFilter
-
getMandatoryFilter
-
setMandatoryFilter
-