All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class merlin.filter.FilterCollection

java.lang.Object
   |
   +----merlin.filter.Filter
           |
           +----merlin.filter.FilterCollection

public class FilterCollection
extends Filter
The representation of a FilterCollection. A FilterCollection is a filter that is a made of a collection of filters. Filters that will be applied in a certain order.

Version:
1.0
Author:
Stefan Hellkvist

Constructor Index

 o FilterCollection()
Class constructor.
 o FilterCollection(Vector)
Class constructor specifying the filters to use and the order.

Method Index

 o apply(Pattern)
Applies the filters on a Pattern
 o setFilters(Vector)
Sets filters that the FilterCollection will use

Constructors

 o FilterCollection
 public FilterCollection()
Class constructor.

 o FilterCollection
 public FilterCollection(Vector fs)
Class constructor specifying the filters to use and the order. The filters are placed in a vector with the filter to be applied first at the first position in the vector.

Parameters:
fs - The vecor of filters to use

Methods

 o setFilters
 public void setFilters(Vector fs)
Sets filters that the FilterCollection will use

Parameters:
fs - A vector of filters. element in the vector.
 o apply
 public Pattern apply(Pattern p)
Applies the filters on a Pattern

Parameters:
p - The pattern to preprocess. The filters will be applied in the order that they are in the vector starting with the first element
Returns:
The new preprocessed pattern
Overrides:
apply in class Filter

All Packages  Class Hierarchy  This Package  Previous  Next  Index