|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generic document entry filter.
Implementations of this interface are used to selectively filter document
entries as they are being searched for by document searchers. (Document
searchers are implementations of the DocumentSearcherI
interface.)
It is recommended that classes that implement this interface provide two kinds of constructors:
class MyFilter implements tribble.search.DocumentFilterI { // Default constructor public MyFilter() { ... } // Constructor public MyFilter(String pred) { ... } ... }
The second constructor takes an argument, pred, which is a string containing some sort of conditional expression (e.g., like an SQL SELECT statement) that specifies the filtering criteria.
This interface was modelled after the FilenameFilter
interface.
DocumentSearcherI
,
DocumentI
Field Summary | |
static java.lang.String |
REV
Revision information. |
static int |
SERIES
Series number. |
Method Summary | |
boolean |
accept(DocumentI doc)
Accept or reject a document entry. |
Field Detail |
public static final java.lang.String REV
public static final int SERIES
Method Detail |
public boolean accept(DocumentI doc) throws java.lang.Exception
doc
- A document entry.
java.lang.Exception
- Thrown if the selection criteria are malformed, or if some other error
occurs.DocumentSearcherI.find(tribble.search.DocumentFilterI)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |