public abstract class AbstractTableFilter extends Object implements ITableFilter
ITableFilter
interface to minimize the effort required to implement a filter. Subclasses
are only required to implement the isValidName(java.lang.String)
method.Constructor and Description |
---|
AbstractTableFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String tableName)
Returns
true if specified table is allowed by this filter. |
String[] |
getTableNames(IDataSet dataSet)
Returns the table names allowed by this filter from the specified dataset.
|
abstract boolean |
isValidName(String tableName)
Returns
true if specified table is allowed by this filter. |
ITableIterator |
iterator(IDataSet dataSet,
boolean reversed)
Returns iterator of tables allowed by this filter from the specified dataset.
|
public abstract boolean isValidName(String tableName) throws DataSetException
true
if specified table is allowed by this filter.
This legacy method, now replaced by accept, still exist for compatibily
with older environmentDataSetException
public boolean accept(String tableName) throws DataSetException
ITableFilterSimple
true
if specified table is allowed by this filter.accept
in interface ITableFilterSimple
DataSetException
public String[] getTableNames(IDataSet dataSet) throws DataSetException
ITableFilter
getTableNames
in interface ITableFilter
dataSet
- the filtered datasetDataSetException
public ITableIterator iterator(IDataSet dataSet, boolean reversed) throws DataSetException
ITableFilter
iterator
in interface ITableFilter
dataSet
- the filtered datasetDataSetException
Copyright © 2002–2017. All rights reserved.