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
-
FilterCollection()
- Class constructor.
-
FilterCollection(Vector)
- Class constructor specifying the filters to use and the order.
-
apply(Pattern)
- Applies the filters on a Pattern
-
setFilters(Vector)
- Sets filters that the FilterCollection will use
FilterCollection
public FilterCollection()
- Class constructor.
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
setFilters
public void setFilters(Vector fs)
- Sets filters that the FilterCollection will use
- Parameters:
- fs - A vector of filters.
element in the vector.
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