Package com.kodexa.client.pipeline
Class PipelineContext
- java.lang.Object
-
- com.kodexa.client.pipeline.PipelineContext
-
public class PipelineContext extends Object
The pipeline context is used to manage state through a running pipeline
-
-
Constructor Summary
Constructors Constructor Description PipelineContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStore(String name, DataStore store)
Add the given store to the pipeline contextDocument
getOutputDocument()
Returns the final output document, or null if there isn't oneMap<String,Object>
getParameterMap()
List<PipelineParameter>
getParameters()
The parameters that were passed to the pipelineDataStore
getStore(String name)
Get a specific storeSet<String>
getStoreNames()
Return a set of the names of the stores in the pipelinevoid
setOutputDocument(Document document)
Sets the final output document for the pipelinevoid
setParameters(List<PipelineParameter> parameters)
The parameters that were passed to the pipeline
-
-
-
Constructor Detail
-
PipelineContext
public PipelineContext()
-
-
Method Detail
-
getStore
public DataStore getStore(String name)
Get a specific store- Parameters:
name
- the name of the store to get- Returns:
- The instance of the store (or null if not found)
-
getStoreNames
public Set<String> getStoreNames()
Return a set of the names of the stores in the pipeline- Returns:
- set of names
-
addStore
public void addStore(String name, DataStore store)
Add the given store to the pipeline context- Parameters:
name
- the name of the storestore
- The implementation of the store
-
setOutputDocument
public void setOutputDocument(Document document)
Sets the final output document for the pipeline- Parameters:
document
- the final output document
-
getOutputDocument
public Document getOutputDocument()
Returns the final output document, or null if there isn't one- Returns:
- final output document
-
getParameterMap
public Map<String,Object> getParameterMap()
-
getParameters
public List<PipelineParameter> getParameters()
The parameters that were passed to the pipeline
-
setParameters
public void setParameters(List<PipelineParameter> parameters)
The parameters that were passed to the pipeline
-
-