Interface VariableTypes
-
- All Known Implementing Classes:
DefaultVariableTypes
@Internal public interface VariableTypes
Interface describing a container for all availableVariableTypes of variables.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VariableTypesaddType(VariableType type)VariableTypesaddType(VariableType type, int index)Add type at the given index.VariableTypefindVariableType(java.lang.Object value)intgetTypeIndex(java.lang.String typeName)intgetTypeIndex(VariableType type)VariableTypegetVariableType(java.lang.String typeName)VariableTypesremoveType(VariableType type)
-
-
-
Method Detail
-
getVariableType
VariableType getVariableType(java.lang.String typeName)
- Returns:
- the type for the given type name. Returns null if no type was found with the name.
-
findVariableType
VariableType findVariableType(java.lang.Object value)
- Returns:
- the variable type to be used to store the given value as a variable.
- Throws:
ActivitiException- When no available type is capable of storing the value.
-
addType
VariableTypes addType(VariableType type)
-
addType
VariableTypes addType(VariableType type, int index)
Add type at the given index. The index is used when finding a type for an object. When different types can store a specific object value, the one with the smallest index will be used.
-
getTypeIndex
int getTypeIndex(VariableType type)
-
getTypeIndex
int getTypeIndex(java.lang.String typeName)
-
removeType
VariableTypes removeType(VariableType type)
-
-