org.knime.core.node.util
Class CombinedColumnFilter

java.lang.Object
  extended by org.knime.core.node.util.CombinedColumnFilter
All Implemented Interfaces:
ColumnFilter

public class CombinedColumnFilter
extends Object
implements ColumnFilter

This ColumnFilter implementation filters all columns which are filter by at least one of the given filters. It returns only columns which pass ALL of the given filter. The filters are applied in the order they are added. Thus the most restrictive filter should be the first.

Author:
Tobias Koetter, University of Konstanz

Constructor Summary
CombinedColumnFilter(ColumnFilter... filters)
          Constructor for class CombinedColumnFilter.
 
Method Summary
 String allFilteredMsg()
          
 boolean includeColumn(DataColumnSpec colSpec)
          Checks if the column with the given DataColumnSpec should be included or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedColumnFilter

public CombinedColumnFilter(ColumnFilter... filters)
Constructor for class CombinedColumnFilter.

Parameters:
filters - the filters to use
Method Detail

allFilteredMsg

public String allFilteredMsg()

Specified by:
allFilteredMsg in interface ColumnFilter
Returns:
the message to display if all columns are filtered

includeColumn

public boolean includeColumn(DataColumnSpec colSpec)
Checks if the column with the given DataColumnSpec should be included or not.

Specified by:
includeColumn in interface ColumnFilter
Parameters:
colSpec - the column specification of the column to check
Returns:
true if the column should be included or false if the column is filtered.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.