tribble.repository
Interface DocumentFilter<DocType extends Document>


public interface DocumentFilter<DocType extends Document>

Generic repository document search filter.

A document repository contains documents. A repository reader can searhc for documents within the repository, based on some kind of searching criteria. This criteria could be implemented as a simple text string, or it could be a more complex object type such as an expression tree. The criteria could also be implemented as a document search filter, which is a subtype that implements this interface.

Subtypes implementing this interface may be passed as parameters to the RepositoryReader.findDocuments() method.

Note: This requires Java 1.5 or later.

Source code:
http://david.tribble.com/src/java/tribble/repository/DocumentFilter.java
Documentation:
http://david.tribble.com/docs/tribble/repository/DocumentFilter.html

Since:
2008-04-09
Version:
API 2.0, $Revision: 1.1 $ $Date: 2008/04/09 18:06:22 $
Author:
David R. Tribble (david@tribble.com)
Copyright ©2008 by David R. Tribble, all rights reserved.
Permission is granted to any person or entity except those designated by the United States Department of State as a terrorist or terrorist government or agency, to use and distribute this source code provided that the original copyright notice remains present and unaltered.
See Also:
RepositoryReader, Document

Field Summary
static java.lang.String REV
           
 
Method Summary
 boolean accept(DocType doc)
          Accept or reject a document according to this search filter criteria.
 

Field Detail

REV

static final java.lang.String REV
See Also:
Constant Field Values
Method Detail

accept

boolean accept(DocType doc)
Accept or reject a document according to this search filter criteria.

Parameters:
doc - A document to compare against the searching criteria.
Returns:
True if the document matches the filter criteria, otherwise false.
Since:
API 2.0, 2008-04-09