Interface PropertyService
-
- All Known Implementing Classes:
DefaultImportCockpitPropertyService,DefaultPropertyService
public interface PropertyServiceContains service methods dealing withPropertyDescriptors.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getDefaultEditorType
java.lang.String getDefaultEditorType(java.lang.String typeCode, boolean localized)Returns 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.- 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.
-
getMultiplicityString
java.lang.String getMultiplicityString(PropertyDescriptor propertyDescriptor)
Get the multiplicity for aPropertyDescriptoras a string.- Returns:
- A
Stringindicating the multiplicity, usually one of the constantsPropertyEditorDescriptor.DEFAULT,PropertyEditorDescriptor.MULTIorPropertyEditorDescriptor.RANGE.
-
isInitial
boolean isInitial(PropertyDescriptor propertyDescriptor)
Checks if aPropertyDescriptoris initial.
-
isPartof
boolean isPartof(PropertyDescriptor propertyDescriptor)
Checks if aPropertyDescriptoris partOf.
-
isMandatory
boolean isMandatory(PropertyDescriptor propertyDescriptor, boolean creationMode)
Checks if aPropertyDescriptoris mandatory.
-
-