Interface IProcessingUnitContext
-
- All Known Implementing Classes:
ProcessingUnitContext
public interface IProcessingUnitContextDefines the processing unit context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears the contextjava.lang.Stringget(java.lang.String key)Get a context value of a defined keybooleanhasKey(java.lang.String key)Test if a key is defined or notbooleanisEmpty()Check if the statistic if emptyjava.util.Set<java.lang.String>keySet()Gets a set of the context keys back.java.lang.Stringremove(java.lang.String key)Removes a key in the context and return the removed value.java.lang.Stringset(java.lang.String key, java.lang.String value)Set a context key / value pair
-
-
-
Method Detail
-
set
java.lang.String set(java.lang.String key, java.lang.String value)Set a context key / value pair- Parameters:
key- the keyvalue- the value- Returns:
- the previous value or null
-
get
java.lang.String get(java.lang.String key)
Get a context value of a defined key- Parameters:
key- the key- Returns:
- the value
-
hasKey
boolean hasKey(java.lang.String key)
Test if a key is defined or not- Parameters:
key- the key- Returns:
- true if it exist
-
remove
java.lang.String remove(java.lang.String key)
Removes a key in the context and return the removed value. In case the key don't exist it returns null.- Parameters:
key- the key- Returns:
- the value
-
keySet
java.util.Set<java.lang.String> keySet()
Gets a set of the context keys back.- Returns:
- the keys
-
isEmpty
boolean isEmpty()
Check if the statistic if empty- Returns:
- true if it is empty
-
clear
void clear()
Clears the context
-
-