@Api(allMethods=true)
public interface PipelineContext
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key)
Returns true if the context contains the specified key.
|
Object |
get(String key)
Get the value for a key.
|
<TYPE> TYPE |
get(String key,
Class<TYPE> type)
Get the value for a key.
|
Object |
getOptional(String key)
Get the value for a key.
|
<TYPE> TYPE |
getOptional(String key,
Class<TYPE> type)
Get the value for a key.
|
<TYPE> TYPE |
getOptional(String key,
Class<TYPE> type,
TYPE defaultValue)
Get the value for a key.
|
boolean |
isFinished()
Has the pipeline finished execution?
Has a pipeline step indicated that the pipeline should finish executing?
|
Object |
put(String key,
Object value)
Put context value which may be accessed by later pipeline steps.
|
void |
setFinished(boolean finished)
By setting this to true, you can indicate that following steps in the pipeline should not be executed.
|
boolean containsKey(String key)
key - key which needs to be checked.Object get(String key) throws GeomajasException
key - key for which the value needs to be obtained.GeomajasException - no value found for keyObject getOptional(String key)
key - key for which the value needs to be obtained.<TYPE> TYPE get(String key, Class<TYPE> type) throws GeomajasException
TYPE - type for the object which needs to be getkey - key for which the value needs to be obtained.type - class which needs to be used for the parameterGeomajasException - no value of correct type found for key<TYPE> TYPE getOptional(String key, Class<TYPE> type)
TYPE - type for the object which needs to be getkey - key for which the value needs to be obtained.type - class which needs to be used for the parameter<TYPE> TYPE getOptional(String key, Class<TYPE> type, TYPE defaultValue)
TYPE - type for the object which needs to be getkey - key for which the value needs to be obtained.type - class which needs to be used for the parameterdefaultValue - default value to be returned in case the value is missingObject put(String key, Object value)
key - key for valuevalue - value for keyboolean isFinished()
void setFinished(boolean finished)
finished - indicates whether the pipeline should stopCopyright © 2015 Geosparc. All Rights Reserved.