|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.search.AbstractDocumentFilter
Generic document filter.
This base class is a generic search filter that is contructed from a criteria
string. By default, the accept()
method always returns true,
so it should be overridden in classes that extend this base class, so as to do
something meaningful with the search criteria.
DocumentFilterI
Field Summary | |
protected java.lang.String |
m_criteria
Search criteria. |
static int |
SERIES
Series number. |
Constructor Summary | |
protected |
AbstractDocumentFilter()
Default constructor. |
|
AbstractDocumentFilter(java.lang.String crit)
Constructor. |
Method Summary | |
boolean |
accept(DocumentI doc)
Accept or reject a document entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SERIES
protected java.lang.String m_criteria
Constructor Detail |
public AbstractDocumentFilter(java.lang.String crit)
crit
- Search criteria. The format and meaning of this string should be defined
in classes that extend this base class.protected AbstractDocumentFilter()
Method Detail |
public boolean accept(DocumentI doc) throws java.lang.Exception
This method should be overridden in classes that extend this base class, so as to do something meaningful with the search criteria.
accept
in interface DocumentFilterI
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 |