| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxsmeral.pipe.context.PipeContext
public class PipeContext
A processing context with additional possibility of accessing the underlying Pipe
 and the file system.
| Constructor Summary | |
|---|---|
PipeContext(Pipe pipe)
Creates empty parameter map and associates with a Pipe  | 
|
| Method Summary | |
|---|---|
 File | 
getFile(String path)
Returns a file with the specified path.  | 
 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.  | 
 Pipe | 
getPipe()
Returns the underlying Pipe | 
 String | 
getWorkingDir()
Returns the working directory  | 
 void | 
removeParameter(String name)
Removes the parameter for the supplied name.  | 
 Object | 
setParameter(String name,
             Object value)
Sets the context parameter, overwriting any previous value (with a warning).  | 
 void | 
setParameterValue(String name,
                  Object value)
Sets parameter value without warning  | 
 void | 
setWorkingDir(String path)
Sets the working directory to the given path (relative or absolute)  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PipeContext(Pipe pipe)
pipe - The underlying Pipe| Method Detail | 
|---|
public Set<String> getParameterNames()
ProcessingContextnull).
getParameterNames in interface ProcessingContextpublic Object getParameterValue(String name)
getParameterValue in interface ProcessingContextIllegalArgumentException - If name is null
public void setParameterValue(String name,
                              Object value)
setParameterValue in interface ProcessingContextname - Parameter namevalue - Parameter value
IllegalArgumentException - If name is null
public Object setParameter(String name,
                           Object value)
setParameter in interface ProcessingContextname - Parameter namevalue - Parameter value
IllegalArgumentException - If name is nullpublic void removeParameter(String name)
ProcessingContext
removeParameter in interface ProcessingContextpublic Pipe getPipe()
Pipe
public void setWorkingDir(String path)
FSContext
setWorkingDir in interface FSContextpublic String getWorkingDir()
FSContext
getWorkingDir in interface FSContextpublic File getFile(String path)
FSContext
getFile in interface FSContext
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||