dsto.dfc.swt.forms
Class AbstractPipe

java.lang.Object
  extended by dsto.dfc.swt.forms.AbstractPipe
All Implemented Interfaces:
Pipe, Disposable
Direct Known Subclasses:
AbstractBiDiPipe, BeanEndpoint, MultiPipe, PipeEndpoint

public abstract class AbstractPipe
extends Object
implements Pipe

Base class for the Pipe interface. Provides parent and error handling implementations.

Version:
$Revision$
Author:
mpp

Field Summary
protected  PipeErrorHandler errorHandler
           
protected  Pipe parent
           
 
Constructor Summary
AbstractPipe()
           
 
Method Summary
 void dispose()
          Default implementation: does nothing.
 Pipe getParent()
          Get the parent pipe.
protected  void handlePipeError(String message)
           
 void setErrorHandler(PipeErrorHandler errorHandler)
          Set the handler for any errors encountered while loading/unloading the pipe.
 void setParent(Pipe parent)
          Set the parent pipe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dsto.dfc.swt.forms.Pipe
connect, flush, input, isDisposed, output
 

Field Detail

parent

protected Pipe parent

errorHandler

protected PipeErrorHandler errorHandler
Constructor Detail

AbstractPipe

public AbstractPipe()
Method Detail

dispose

public void dispose()
Default implementation: does nothing.

Specified by:
dispose in interface Pipe
Specified by:
dispose in interface Disposable

setParent

public void setParent(Pipe parent)
Description copied from interface: Pipe
Set the parent pipe. The child should push new values back up the chain by calling its parent's Pipe.output(Object) method.

Specified by:
setParent in interface Pipe

getParent

public Pipe getParent()
Description copied from interface: Pipe
Get the parent pipe.

Specified by:
getParent in interface Pipe
See Also:
Pipe.setParent(Pipe)

setErrorHandler

public void setErrorHandler(PipeErrorHandler errorHandler)
Description copied from interface: Pipe
Set the handler for any errors encountered while loading/unloading the pipe. This will also set the handler for all children.

Specified by:
setErrorHandler in interface Pipe
See Also:
PipeErrorHandler

handlePipeError

protected void handlePipeError(String message)


Copyright © 2008 Commonwealth of Australia