Class DefaultComponentTypeStructure
java.lang.Object
de.hybris.platform.cmsfacades.types.service.impl.DefaultComponentTypeStructure
- All Implemented Interfaces:
ComponentTypeStructure
Default implementation of
ComponentTypeStructure.
The attributes should be populated by getAttributes(), then using Set.add(Object) or
Set.addAll(java.util.Collection).
For backward compatibility purposes, default category value is assigned to enum type
StructureTypeCategory.COMPONENT.
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionGet the attributes that should be considered by the ComponentTypeStructure.Get the category in which this type belongs to.Get the populators to be used when converting the representingComposedTypeModelto aComponentTypeData.Get the typecode identifying theComposedTypeModel.Get the concrete Type Data class representing this typevoidsetCategory(StructureTypeCategory category) Sets the category for this component type.voidsetPopulators(List<Populator<ComposedTypeModel, ComponentTypeData>> populators) Sets the populators to be used when converting the representingComposedTypeModelto aComponentTypeData.voidsetTypecode(String typecode) Sets the typecode identifying theComposedTypeModel.voidsetTypeDataClass(Class typeDataClass) Optional.
-
Constructor Details
-
DefaultComponentTypeStructure
public DefaultComponentTypeStructure() -
DefaultComponentTypeStructure
-
-
Method Details
-
getTypecode
Description copied from interface:ComponentTypeStructureGet the typecode identifying theComposedTypeModel.- Specified by:
getTypecodein interfaceComponentTypeStructure- Returns:
- the typecode
-
setTypecode
Description copied from interface:ComponentTypeStructureSets the typecode identifying theComposedTypeModel.- Specified by:
setTypecodein interfaceComponentTypeStructure- Parameters:
typecode- - the typecode
-
getCategory
Description copied from interface:ComponentTypeStructureGet the category in which this type belongs to. By default and for backwards compatibility, all categories are set to COMPONENT enum type.- Specified by:
getCategoryin interfaceComponentTypeStructure- Returns:
- the category
-
setCategory
Description copied from interface:ComponentTypeStructureSets the category for this component type. By default, if the category is not set, the category is of the COMPONENT enum type.- Specified by:
setCategoryin interfaceComponentTypeStructure
-
getTypeDataClass
Description copied from interface:ComponentTypeStructureGet the concrete Type Data class representing this type- Specified by:
getTypeDataClassin interfaceComponentTypeStructure- Returns:
- the concrete class that represents the Type Structure
-
setTypeDataClass
Description copied from interface:ComponentTypeStructureOptional. Sets the concrete Type Data class representing this type.- Specified by:
setTypeDataClassin interfaceComponentTypeStructure- Parameters:
typeDataClass- The concrete class that represents the Type Structure
-
getAttributes
Description copied from interface:ComponentTypeStructureGet the attributes that should be considered by the ComponentTypeStructure.- Specified by:
getAttributesin interfaceComponentTypeStructure- Returns:
- the attributes or an empty set
-
getPopulators
Description copied from interface:ComponentTypeStructureGet the populators to be used when converting the representingComposedTypeModelto aComponentTypeData.- Specified by:
getPopulatorsin interfaceComponentTypeStructure- Returns:
- the populators
-
setPopulators
Description copied from interface:ComponentTypeStructureSets the populators to be used when converting the representingComposedTypeModelto aComponentTypeData.- Specified by:
setPopulatorsin interfaceComponentTypeStructure- Parameters:
populators- - the populators
-