public class DefaultPropertyService extends java.lang.Object implements PropertyService
PropertyService.| Constructor and Description |
|---|
DefaultPropertyService() |
| Modifier and Type | Method and 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 a
PropertyDescriptor as a string. |
boolean |
isInitial(PropertyDescriptor propertyDescriptor)
Checks if a
PropertyDescriptor is initial. |
boolean |
isMandatory(PropertyDescriptor propertyDescriptor,
boolean creationMode)
Checks if a
PropertyDescriptor is mandatory. |
boolean |
isPartof(PropertyDescriptor propertyDescriptor)
Checks if a
PropertyDescriptor is partOf. |
void |
setTypeService(TypeService typeService) |
public java.lang.String getMultiplicityString(PropertyDescriptor propertyDescriptor)
PropertyServicePropertyDescriptor as a string.getMultiplicityString in interface PropertyServiceString indicating the multiplicity, usually one of the constants
PropertyEditorDescriptor.DEFAULT, PropertyEditorDescriptor.MULTI or
PropertyEditorDescriptor.RANGE.public java.lang.String getDefaultEditorType(java.lang.String typeCode,
boolean localized)
PropertyServiceTypeService. If the
type is a collection or a map, its element type is used.getDefaultEditorType in interface PropertyServicetypeCode - The typecode of the properties value.localized - Indicates if the property is localized.PropertyDescriptor,
e.g. PropertyDescriptor.TEXT.public boolean isInitial(PropertyDescriptor propertyDescriptor)
PropertyServicePropertyDescriptor is initial.isInitial in interface PropertyServicepublic boolean isPartof(PropertyDescriptor propertyDescriptor)
PropertyServicePropertyDescriptor is partOf.isPartof in interface PropertyServicepublic boolean isMandatory(PropertyDescriptor propertyDescriptor, boolean creationMode)
PropertyServicePropertyDescriptor is mandatory.isMandatory in interface PropertyServicepublic void setTypeService(TypeService typeService)
Copyright © 2018 SAP SE. All Rights Reserved.