org.crosswire.jsword.index.lucene.analysis
Class AbstractBookTokenFilter
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.crosswire.jsword.index.lucene.analysis.AbstractBookTokenFilter
- Direct Known Subclasses:
- KeyFilter, StrongsNumberFilter, XRefFilter
public class AbstractBookTokenFilter
- extends org.apache.lucene.analysis.TokenFilter
An AbstractBookTokenFilter ties a Lucene TokenFilter to a Book.
- Author:
- DM Smith [dmsmith555 at yahoo dot com]
- See Also:
for license details.
The copyright to this program is held by it's authors.
Fields inherited from class org.apache.lucene.analysis.TokenFilter |
input |
Methods inherited from class org.apache.lucene.analysis.TokenFilter |
close |
Methods inherited from class org.apache.lucene.analysis.TokenStream |
next, next, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
book
private Book book
AbstractBookTokenFilter
public AbstractBookTokenFilter(org.apache.lucene.analysis.TokenStream input)
- Create a TokenFilter not tied to a Book.
- Parameters:
input
- the token stream to filter
AbstractBookTokenFilter
public AbstractBookTokenFilter(Book book,
org.apache.lucene.analysis.TokenStream input)
- Create a TokenFilter tied to a Book.
- Parameters:
input
- the token stream to filter
getBook
public Book getBook()
- Returns:
- the book
setBook
public void setBook(Book book)
- Parameters:
book
- the book to set