public abstract class AbstractTypeLoader extends Object implements ExtendedTypeLoader
| Constructor and Description |
|---|
AbstractTypeLoader() |
| 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.
|
Collection<ExtendedType> |
getExtendedTypesForTemplate(ItemType type,
String templateCode,
TypeService typeService)
Returns the extended types for a given template.
|
protected ModelService |
getModelService() |
protected PropertyService |
getPropertyService() |
String |
getTypeCodeFromPropertyQualifier(String propertyQualifier)
Splits up a property qualifier and returns the type part of it.
|
protected TypeService |
getTypeService() |
TypeModel |
getValueType(ObjectType enclosingType,
PropertyDescriptor propertyDescriptor,
TypeService typeService)
Returns the value type for the given property descriptor.
|
void |
setCockpitPropertyService(PropertyService propertyService) |
void |
setModelService(ModelService modelService) |
void |
setTypeService(TypeService typeService) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExtendedTypeCodes, loadTypepublic void setTypeService(TypeService typeService)
public void setModelService(ModelService modelService)
public void setCockpitPropertyService(PropertyService propertyService)
protected TypeService getTypeService()
protected ModelService getModelService()
protected PropertyService getPropertyService()
public List<Object> getAvailableValues(TypeModel valueType, PropertyDescriptor propertyDescriptor, TypeService typeService)
ExtendedTypeLoadergetAvailableValues in interface ExtendedTypeLoadervalueType - The value type of the propertypropertyDescriptor - The property.public 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 TypeModel getValueType(ObjectType enclosingType, PropertyDescriptor propertyDescriptor, TypeService typeService)
ExtendedTypeLoadergetValueType in interface ExtendedTypeLoaderenclosingType - The type that owns the propertypublic String getAttributeCodeFromPropertyQualifier(String propertyQualifier)
ExtendedTypeLoadergetAttributeCodeFromPropertyQualifier in interface ExtendedTypeLoaderpublic String getTypeCodeFromPropertyQualifier(String propertyQualifier)
ExtendedTypeLoadergetTypeCodeFromPropertyQualifier in interface ExtendedTypeLoaderCopyright © 2017 SAP SE. All Rights Reserved.