net.sf.mmm.util.filter.base
Class ConjunctionCharFilter

java.lang.Object
  extended by net.sf.mmm.util.filter.base.ConjunctionCharFilter
All Implemented Interfaces:
CharFilter

public class ConjunctionCharFilter
extends Object
implements CharFilter

This is an implementation of the CharFilter interface that combines a given list of filters using a boolean Conjunction.

Since:
2.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
private  Conjunction conjunction
          The boolean conjunction.
private  CharFilter[] filterList
          the filters to check.
 
Fields inherited from interface net.sf.mmm.util.filter.api.CharFilter
ASCII_LETTER_FILTER, ASCII_LOWER_CASE_LETTER_FILTER, ASCII_UPPER_CASE_LETTER_FILTER, IDENTIFIER_FILTER, LATIN_DIGIT_FILTER, LATIN_DIGIT_OR_LETTER_FILTER, WHITESPACE_FILTER
 
Constructor Summary
ConjunctionCharFilter(Conjunction conjunction, CharFilter... filters)
          The constructor.
 
Method Summary
 boolean accept(char c)
          This method determines if the given character c should be accepted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterList

private final CharFilter[] filterList
the filters to check.


conjunction

private final Conjunction conjunction
The boolean conjunction.

Constructor Detail

ConjunctionCharFilter

public ConjunctionCharFilter(Conjunction conjunction,
                             CharFilter... filters)
The constructor.

Parameters:
conjunction - is the Conjunction used to combine the filters.
filters - are the filters to combine.
Method Detail

accept

public boolean accept(char c)
This method determines if the given character c should be accepted.

Specified by:
accept in interface CharFilter
Parameters:
c - is the character to check.
Returns:
true if the given character c is acceptable, false if it should be filtered.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.