xsmeral.pipe.context
Interface ProcessingContext

All Known Implementing Classes:
PipeContext

public interface ProcessingContext

A processing context is a shared space and possibly a communication channel between processors.
Can be used to share resources.
It stores arbitrary objects, mapped by String values.


Method Summary
 Set<String> getParameterNames()
          Returns set of all parameter names currently present in the map (also those mapped to null).
 Object getParameterValue(String name)
          Returns the parameter value for supplied name.
 void removeParameter(String name)
          Removes the parameter for the supplied name.
 Object setParameter(String name, Object value)
          Creates the parameter for the supplied name and assigns value.
 void setParameterValue(String name, Object value)
          Sets parameter value without warning
 

Method Detail

getParameterValue

Object getParameterValue(String name)
Returns the parameter value for supplied name.


setParameter

Object setParameter(String name,
                    Object value)
Creates the parameter for the supplied name and assigns value. Should warn if the parameter already existed.

Parameters:
name - Parameter name
value - Parameter value

setParameterValue

void setParameterValue(String name,
                       Object value)
Sets parameter value without warning

Parameters:
name - Parameter name
value - Parameter value

getParameterNames

Set<String> getParameterNames()
Returns set of all parameter names currently present in the map (also those mapped to null).


removeParameter

void removeParameter(String name)
Removes the parameter for the supplied name. Does nothing if parameter for the name does not exist.