public interface ExtendedTypeLoader
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeCodeFromPropertyQualifier(String propertyQualifier)
Splits up a property qualifier and returns the attribute part of it.
|
List<Object> |
getAvailableValues(TypeModel valueType,
PropertyDescriptor propertyDescriptor,
TypeService typeService)
Returns all possible values for the given property, e.g.
|
Set<String> |
getExtendedTypeCodes(TypedObject item)
Returns the type codes of all extended types for the given item.
|
Collection<ExtendedType> |
getExtendedTypesForTemplate(ItemType type,
String templateCode,
TypeService typeService)
Returns the extended types for a given template.
|
String |
getTypeCodeFromPropertyQualifier(String propertyQualifier)
Splits up a property qualifier and returns the type part of it.
|
TypeModel |
getValueType(ObjectType enclosingType,
PropertyDescriptor propertyDescriptor,
TypeService typeService)
Returns the value type for the given property descriptor.
|
ExtendedType |
loadType(String code,
TypeService typeService)
Returns an extended type for the given code.
|
ExtendedType loadType(String code, TypeService typeService)
code - The code of the desired typetypeService - The cockpit type serviceTypeModel getValueType(ObjectType enclosingType, PropertyDescriptor propertyDescriptor, TypeService typeService)
enclosingType - The type that owns the propertyList<Object> getAvailableValues(TypeModel valueType, PropertyDescriptor propertyDescriptor, TypeService typeService)
valueType - The value type of the propertypropertyDescriptor - The property.Set<String> getExtendedTypeCodes(TypedObject item)
String getAttributeCodeFromPropertyQualifier(String propertyQualifier)
String getTypeCodeFromPropertyQualifier(String propertyQualifier)
Collection<ExtendedType> getExtendedTypesForTemplate(ItemType type, String templateCode, TypeService typeService)
type - The item type of the template.templateCode - The template code (without the type part, e.g. CPU for Product.CPU).Copyright © 2017 SAP SE. All Rights Reserved.