|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Pipe
Defines a segment of a data flow pipe. A pipe accepts an input value
(via input(Object)
), optionally performs some translation, and
passes the (possibly translated) value as the input to one or more child
pipes that are connected to it (via connect(Pipe)
). The child pipes
may later output values back into the parent (via output(Object)
).
Notes:
Method Summary | |
---|---|
Pipe |
connect(Pipe pipe)
Connect the output of this pipe to the input of a child pipe. |
void |
dispose()
Release any resources acquired by the pipe. |
boolean |
flush()
Cause any uncommitted changes to any pipe segments in the tree to be pushed back into the pipe sequence (using output(Object) ). |
Pipe |
getParent()
Get the parent pipe. |
boolean |
input(Object value)
Input a value into the pipe tree. |
boolean |
isDisposed()
Test if pipe has been disposed. |
boolean |
output(Object value)
Output a value from a child into the pipe (the reverse of input ()). |
void |
setErrorHandler(PipeErrorHandler handler)
Set the handler for any errors encountered while loading/unloading the pipe. |
void |
setParent(Pipe pipe)
Set the parent pipe. |
Method Detail |
---|
boolean flush()
output(Object)
). This
is designed for use by pipes connect editors such as text fields that are
not committed immediately: most pipes will simply forward this call on to
their children.
for more info on handling errors.
boolean input(Object value)
for more info on handling errors.
boolean output(Object value)
for more info on handling errors.
void setParent(Pipe pipe)
output(Object)
method.
Pipe getParent()
setParent(Pipe)
Pipe connect(Pipe pipe)
void setErrorHandler(PipeErrorHandler handler)
PipeErrorHandler
void dispose()
dispose
in interface Disposable
boolean isDisposed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |