org.treebind
Class DefaultPipeElementImplementation

java.lang.Object
  extended byorg.treebind.DefaultPipeElementImplementation
All Implemented Interfaces:
PipeElement
Direct Known Subclasses:
DefaultFilterImplementation, JavaObjectSink, JavaObjectSource, JenaRdfSource, LdapSource, TraceSink, XmlSaxSink, XmlSaxSource

public class DefaultPipeElementImplementation
extends java.lang.Object
implements PipeElement

Default implementation of a TreeBind pipe element. This class takes care of setting and getting the pipe in which a pipe element may be embedded.

Author:
vdv
See Also:
PipeElement

Constructor Summary
DefaultPipeElementImplementation()
          Creates a pipe element.
DefaultPipeElementImplementation(Pipe pipe)
          Creates a pipe element in a pipe.
 
Method Summary
 Pipe getPipe()
          Get the pipe.
 void setPipe(Pipe pipe)
          Sets the pipe.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPipeElementImplementation

public DefaultPipeElementImplementation(Pipe pipe)
Creates a pipe element in a pipe.

Parameters:
pipe - the pipe containing the pipe element.

DefaultPipeElementImplementation

public DefaultPipeElementImplementation()
Creates a pipe element.

Method Detail

setPipe

public void setPipe(Pipe pipe)
Description copied from interface: PipeElement
Sets the pipe.

Specified by:
setPipe in interface PipeElement
Parameters:
pipe - the pipe.

getPipe

public Pipe getPipe()
Description copied from interface: PipeElement
Get the pipe.

Specified by:
getPipe in interface PipeElement
Returns:
the pipe.