public interface TypeService
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkItemAlive(TypedObject typedItem)
Check item alive.
|
int |
countAllInstancesOf(ObjectType type)
Count all instances of the given type
|
Collection<TypedObject> |
getAllInstancesOf(ObjectType type)
Gets all instances of the given type.
|
Collection<TypedObject> |
getAllInstancesOf(ObjectType type,
String sortBy,
String ascending)
Gets all instances of the given type according to given sort criteria.
|
Set<ObjectType> |
getAllSubtypes(ObjectType type)
Gets the all subtypes.
|
List<ObjectType> |
getAllSupertypes(ObjectType type)
Gets the all supertypes.
|
String |
getAttributeCodeFromPropertyQualifier(String propertyQualifier)
Gets the attribute code from property qualifier.
|
List<Object> |
getAvailableValues(PropertyDescriptor propertyDescriptor)
Gets the available values.
|
List<Object> |
getAvailableValues(PropertyDescriptor propertyDescriptor,
TypedObject object)
Gets the available values.
|
BaseType |
getBaseType(String code)
Gets the base type.
|
ObjectTemplate |
getBestTemplate(TypedObject object)
Gets the best template.
|
ExtendedType |
getExtendedType(String code)
Gets the extended type.
|
ObjectTemplate |
getObjectTemplate(String code)
Gets the object template.
|
List<ObjectTemplate> |
getObjectTemplates(BaseType type)
Gets the object templates.
|
ObjectType |
getObjectType(String code)
Gets the object type.
|
ObjectType |
getObjectTypeFromPropertyQualifier(String propertyQualifier)
Gets the object type from property qualifier.
|
PropertyDescriptor |
getPropertyDescriptor(ObjectType type,
String qualifier)
Gets the property descriptor.
|
PropertyDescriptor |
getPropertyDescriptor(String propertyQualifier)
Gets the property descriptor.
|
Collection<PropertyDescriptor> |
getReverseSelectionOf(PropertyDescriptor descriptor)
returns the list of all property descriptors that the give property descriptor is "selectionOf"
|
PropertyDescriptor |
getSelectionOf(PropertyDescriptor descriptor)
returns the "selectionOf" property of the given property descriptor
|
String |
getTypeCodeFromPropertyQualifier(String propertyQualifier)
The type (base or extended) part of the property qualifier.
|
String |
getValueTypeCode(PropertyDescriptor propertyDescriptor)
Gets the value type code.
|
List<ItemModel> |
unwrapItems(Collection<TypedObject> typedObjects)
Unwrap items to models
|
TypedObject |
wrapItem(Object item)
Wrap item.
|
List<TypedObject> |
wrapItems(Collection<? extends Object> items)
Wrap items.
|
BaseType getBaseType(String code)
code - the codeExtendedType getExtendedType(String code)
code - the codeObjectTemplate getObjectTemplate(String code)
code - the codeSet<ObjectType> getAllSubtypes(ObjectType type)
type - the typeList<ObjectType> getAllSupertypes(ObjectType type)
type - the typeList<ObjectTemplate> getObjectTemplates(BaseType type)
type - the typePropertyDescriptor getPropertyDescriptor(ObjectType type, String qualifier)
type - the typequalifier - the qualifierObjectType getObjectType(String code)
code - the codeString getTypeCodeFromPropertyQualifier(String propertyQualifier)
propertyQualifier - the property qualifierString getAttributeCodeFromPropertyQualifier(String propertyQualifier)
propertyQualifier - the property qualifierObjectType getObjectTypeFromPropertyQualifier(String propertyQualifier)
propertyQualifier - the property qualifierPropertyDescriptor getPropertyDescriptor(String propertyQualifier)
propertyQualifier - the property qualifierString getValueTypeCode(PropertyDescriptor propertyDescriptor)
propertyDescriptor - the property descriptorList<Object> getAvailableValues(PropertyDescriptor propertyDescriptor)
propertyDescriptor - the property descriptorList<Object> getAvailableValues(PropertyDescriptor propertyDescriptor, TypedObject object)
propertyDescriptor - the property descriptorTypedObject wrapItem(Object item)
item - the itemList<TypedObject> wrapItems(Collection<? extends Object> items)
items - the itemsList<ItemModel> unwrapItems(Collection<TypedObject> typedObjects)
typedObjects - ObjectTemplate getBestTemplate(TypedObject object)
object - the objectboolean checkItemAlive(TypedObject typedItem)
typedItem - the typed itemCollection<TypedObject> getAllInstancesOf(ObjectType type)
countAllInstancesOf(ObjectType) before calling this methodtype - the typeCollection<TypedObject> getAllInstancesOf(ObjectType type, String sortBy, String ascending)
countAllInstancesOf(ObjectType) before calling this methodtype - the typesortBy - given sort propertyascending - given sort orderint countAllInstancesOf(ObjectType type)
type - the typePropertyDescriptor getSelectionOf(PropertyDescriptor descriptor)
descriptor - the source property descriptorCollection<PropertyDescriptor> getReverseSelectionOf(PropertyDescriptor descriptor)
descriptor - the source property descriptorCopyright © 2017 SAP SE. All Rights Reserved.