Class DefaultPropertyService
- java.lang.Object
-
- de.hybris.platform.cockpit.services.meta.impl.DefaultPropertyService
-
- All Implemented Interfaces:
PropertyService
public class DefaultPropertyService extends java.lang.Object implements PropertyService
Default implementation ofPropertyService.
-
-
Constructor Summary
Constructors Constructor Description DefaultPropertyService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultEditorType(java.lang.String typeCode, boolean localized)Returns the default editor type for a property.java.lang.StringgetMultiplicityString(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)
-
-
-
Method Detail
-
getMultiplicityString
public java.lang.String getMultiplicityString(PropertyDescriptor propertyDescriptor)
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
public java.lang.String getDefaultEditorType(java.lang.String typeCode, boolean localized)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
public boolean isInitial(PropertyDescriptor propertyDescriptor)
Description copied from interface:PropertyServiceChecks if aPropertyDescriptoris initial.- Specified by:
isInitialin interfacePropertyService
-
isPartof
public boolean isPartof(PropertyDescriptor propertyDescriptor)
Description copied from interface:PropertyServiceChecks if aPropertyDescriptoris partOf.- Specified by:
isPartofin interfacePropertyService
-
isMandatory
public boolean isMandatory(PropertyDescriptor propertyDescriptor, boolean creationMode)
Description copied from interface:PropertyServiceChecks if aPropertyDescriptoris mandatory.- Specified by:
isMandatoryin interfacePropertyService
-
setTypeService
public void setTypeService(TypeService typeService)
-
-