public class DefaultExtendedTypeChain extends Object implements ExtendedTypeLoader, CachingTypeLoader
| Constructor and Description |
|---|
DefaultExtendedTypeChain() |
| 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 type,
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.
|
protected List<ExtendedTypeLoader> |
getExtendedTypeLoaders() |
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.
|
void |
removeAllCachedTypes() |
void |
removeCachedType(String code) |
void |
removeDefaultCachedTypes() |
void |
setDefaultClearCacheTypeCodes(List<String> defaultClearCacheTypeCodes) |
void |
setExtendedTypeLoaders(List<ExtendedTypeLoader> extendedTypeLoaders) |
public ExtendedType loadType(String code, TypeService typeService)
ExtendedTypeLoaderloadType in interface ExtendedTypeLoadercode - The code of the desired typetypeService - The cockpit type servicepublic TypeModel getValueType(ObjectType enclosingType, PropertyDescriptor propertyDescriptor, TypeService typeService)
ExtendedTypeLoadergetValueType in interface ExtendedTypeLoaderenclosingType - The type that owns the propertypublic List<Object> getAvailableValues(TypeModel type, PropertyDescriptor propertyDescriptor, TypeService typeService)
ExtendedTypeLoadergetAvailableValues in interface ExtendedTypeLoadertype - The value type of the propertypropertyDescriptor - The property.public String getAttributeCodeFromPropertyQualifier(String propertyQualifier)
ExtendedTypeLoadergetAttributeCodeFromPropertyQualifier in interface ExtendedTypeLoaderpublic String getTypeCodeFromPropertyQualifier(String propertyQualifier)
ExtendedTypeLoadergetTypeCodeFromPropertyQualifier in interface ExtendedTypeLoaderpublic Set<String> getExtendedTypeCodes(TypedObject item)
ExtendedTypeLoadergetExtendedTypeCodes in interface ExtendedTypeLoaderpublic Collection<ExtendedType> getExtendedTypesForTemplate(ItemType type, String templateCode, TypeService typeService)
ExtendedTypeLoadergetExtendedTypesForTemplate in interface ExtendedTypeLoadertype - The item type of the template.templateCode - The template code (without the type part, e.g. CPU for Product.CPU).public void setExtendedTypeLoaders(List<ExtendedTypeLoader> extendedTypeLoaders)
protected List<ExtendedTypeLoader> getExtendedTypeLoaders()
public void removeCachedType(String code)
removeCachedType in interface CachingTypeLoaderpublic void removeDefaultCachedTypes()
removeDefaultCachedTypes in interface CachingTypeLoaderpublic void removeAllCachedTypes()
removeAllCachedTypes in interface CachingTypeLoaderCopyright © 2017 SAP SE. All Rights Reserved.