Interface PropertyService
- All Known Implementing Classes:
DefaultPropertyService
public interface PropertyService
Contains service methods dealing with
PropertyDescriptors.-
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.
-
Method Details
-
getDefaultEditorType
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
Get the multiplicity for aPropertyDescriptoras a string.- Returns:
- A
Stringindicating the multiplicity, usually one of the constantsPropertyEditorDescriptor.DEFAULT,PropertyEditorDescriptor.MULTIorPropertyEditorDescriptor.RANGE.
-
isInitial
Checks if aPropertyDescriptoris initial. -
isPartof
Checks if aPropertyDescriptoris partOf. -
isMandatory
Checks if aPropertyDescriptoris mandatory.
-