|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xsmeral.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()
ProcessingContext
null
).
getParameterNames
in interface ProcessingContext
public Object getParameterValue(String name)
getParameterValue
in interface ProcessingContext
IllegalArgumentException
- If name is nullpublic void setParameterValue(String name, Object value)
setParameterValue
in interface ProcessingContext
name
- Parameter namevalue
- Parameter value
IllegalArgumentException
- If name is nullpublic Object setParameter(String name, Object value)
setParameter
in interface ProcessingContext
name
- Parameter namevalue
- Parameter value
IllegalArgumentException
- If name is nullpublic void removeParameter(String name)
ProcessingContext
removeParameter
in interface ProcessingContext
public Pipe getPipe()
Pipe
public void setWorkingDir(String path)
FSContext
setWorkingDir
in interface FSContext
public String getWorkingDir()
FSContext
getWorkingDir
in interface FSContext
public 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 |