idl.tmt.documentparsing.filters
Class ChainedFilter

java.lang.Object
  |
  +--idl.tmt.documentparsing.filters.ChainedFilter
All Implemented Interfaces:
Filter

public class ChainedFilter
extends java.lang.Object
implements Filter

Class that keeps a list of filters and chains them together in the filter() method Created on Mar 23, 2004

Author:
jelsas

Field Summary
private  java.util.List filterChain
           
 
Constructor Summary
ChainedFilter()
          Creates a new ChainedFilter, with an initially empty chain,
 
Method Summary
 void addFilter(Filter filter)
           
 java.lang.String filter(java.lang.String charSeq)
          Filters the character sequence using all the filters added to the filter chain.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

filterChain

private java.util.List filterChain
Constructor Detail

ChainedFilter

public ChainedFilter()
Creates a new ChainedFilter, with an initially empty chain,
Method Detail

addFilter

public void addFilter(Filter filter)

filter

public java.lang.String filter(java.lang.String charSeq)
Filters the character sequence using all the filters added to the filter chain.
Specified by:
filter in interface Filter
See Also:
Filter.filter(java.lang.String)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object