Class DefaultPropertyService
java.lang.Object
de.hybris.platform.cockpit.services.meta.impl.DefaultPropertyService
- All Implemented Interfaces:
PropertyService
Default implementation of
PropertyService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultEditorType(String typeCode, boolean localized) Returns the default editor type for a property.getMultiplicityString(PropertyDescriptor propertyDescriptor) Get the multiplicity for aPropertyDescriptoras a string.booleanisInitial(PropertyDescriptor propertyDescriptor) Checks if aPropertyDescriptoris initial.booleanisMandatory(PropertyDescriptor propertyDescriptor, boolean creationMode) Checks if aPropertyDescriptoris mandatory.booleanisPartof(PropertyDescriptor propertyDescriptor) Checks if aPropertyDescriptoris partOf.voidsetTypeService(TypeService typeService)
-
Constructor Details
-
DefaultPropertyService
public DefaultPropertyService()
-
-
Method Details
-
getMultiplicityString
Description copied from interface:PropertyServiceGet the multiplicity for aPropertyDescriptoras a string.- Specified by:
getMultiplicityStringin interfacePropertyService- Returns:
- A
Stringindicating the multiplicity, usually one of the constantsPropertyEditorDescriptor.DEFAULT,PropertyEditorDescriptor.MULTIorPropertyEditorDescriptor.RANGE.
-
getDefaultEditorType
Description copied from interface:PropertyServiceReturns the default editor type for a property. Usually only used internally by theTypeService. If the type is a collection or a map, its element type is used.- Specified by:
getDefaultEditorTypein interfacePropertyService- Parameters:
typeCode- The typecode of the properties value.localized- Indicates if the property is localized.- Returns:
- A string representing the editor type. Usually one of the constants defined in
PropertyDescriptor, e.g.PropertyDescriptor.TEXT.
-
isInitial
Description copied from interface:PropertyServiceChecks if aPropertyDescriptoris initial.- Specified by:
isInitialin interfacePropertyService
-
isPartof
Description copied from interface:PropertyServiceChecks if aPropertyDescriptoris partOf.- Specified by:
isPartofin interfacePropertyService
-
isMandatory
Description copied from interface:PropertyServiceChecks if aPropertyDescriptoris mandatory.- Specified by:
isMandatoryin interfacePropertyService
-
setTypeService
-