Interface PropertyService
-
- All Known Implementing Classes:
DefaultImportCockpitPropertyService
,DefaultPropertyService
public interface PropertyService
Contains service methods dealing withPropertyDescriptor
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDefaultEditorType(java.lang.String typeCode, boolean localized)
Returns the default editor type for a property.java.lang.String
getMultiplicityString(PropertyDescriptor propertyDescriptor)
Get the multiplicity for aPropertyDescriptor
as a string.boolean
isInitial(PropertyDescriptor propertyDescriptor)
Checks if aPropertyDescriptor
is initial.boolean
isMandatory(PropertyDescriptor propertyDescriptor, boolean creationMode)
Checks if aPropertyDescriptor
is mandatory.boolean
isPartof(PropertyDescriptor propertyDescriptor)
Checks if aPropertyDescriptor
is 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 aPropertyDescriptor
as a string.- Returns:
- A
String
indicating the multiplicity, usually one of the constantsPropertyEditorDescriptor.DEFAULT
,PropertyEditorDescriptor.MULTI
orPropertyEditorDescriptor.RANGE
.
-
isInitial
boolean isInitial(PropertyDescriptor propertyDescriptor)
Checks if aPropertyDescriptor
is initial.
-
isPartof
boolean isPartof(PropertyDescriptor propertyDescriptor)
Checks if aPropertyDescriptor
is partOf.
-
isMandatory
boolean isMandatory(PropertyDescriptor propertyDescriptor, boolean creationMode)
Checks if aPropertyDescriptor
is mandatory.
-
-