2010-02-03 03:29:47 +01:00
|
|
|
package com.metaweb.gridworks.browsing;
|
2010-01-27 08:52:05 +01:00
|
|
|
|
2010-02-03 03:29:47 +01:00
|
|
|
import com.metaweb.gridworks.model.Project;
|
2010-01-27 08:52:05 +01:00
|
|
|
|
2010-03-21 08:14:39 +01:00
|
|
|
/**
|
|
|
|
* Interface for anything that can decide which rows match and which rows don't match
|
|
|
|
* based on some particular criteria.
|
|
|
|
*/
|
2010-01-27 08:52:05 +01:00
|
|
|
public interface FilteredRows {
|
2010-03-21 08:14:39 +01:00
|
|
|
/**
|
|
|
|
* Go through the rows of the given project, determine which match and which don't,
|
|
|
|
* and call visitor.visit() on those that match, and possibly their context and
|
|
|
|
* dependent rows.
|
|
|
|
*
|
|
|
|
* @param project
|
|
|
|
* @param visitor
|
|
|
|
*/
|
2010-03-03 05:19:58 +01:00
|
|
|
public void accept(Project project, RowVisitor visitor);
|
2010-01-27 08:52:05 +01:00
|
|
|
}
|