org.oddjob.beanbus
Class AbstractFilter<F,T>

java.lang.Object
  extended by org.oddjob.beanbus.AbstractDestination<F>
      extended by org.oddjob.beanbus.AbstractFilter<F,T>
Type Parameters:
F - From Type
T - To Type
All Implemented Interfaces:
Iterable<F>, Collection<F>, BusFilter<F,T>, Outbound<T>
Direct Known Subclasses:
BeanCapture, OnlyFilter, SQLResultsBean, SQLResultsSheet, TransformerAdaptor, TransformerScript, ValveFilter

public abstract class AbstractFilter<F,T>
extends AbstractDestination<F>
implements BusFilter<F,T>

For Standard Filter Components to extend.

Author:
rob

Constructor Summary
AbstractFilter()
           
 
Method Summary
 boolean add(F bean)
           
protected abstract  T filter(F from)
           
 String getName()
           
 Collection<? super T> getTo()
           
 void setName(String name)
           
 void setTo(Collection<? super T> to)
          Set the out bound destination.
 String toString()
           
 
Methods inherited from class org.oddjob.beanbus.AbstractDestination
addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

AbstractFilter

public AbstractFilter()
Method Detail

add

public final boolean add(F bean)
Specified by:
add in interface Collection<F>

filter

protected abstract T filter(F from)

getTo

public Collection<? super T> getTo()

setTo

public void setTo(Collection<? super T> to)
Description copied from interface: Outbound
Set the out bound destination.

Specified by:
setTo in interface Outbound<T>

getName

public String getName()

setName

public void setName(String name)

toString

public String toString()
Overrides:
toString in class Object