public class StopListFilter extends AbstractSingleTermFilter
Modifier and Type | Field and Description |
---|---|
protected StopList |
stopList
The stop list for the filter to use.
|
Constructor and Description |
---|
StopListFilter()
Creates a new
StopListFilter . |
StopListFilter(StopList stopList)
Creates a new
StopListFilter with the given stop list. |
Modifier and Type | Method and Description |
---|---|
TermOccurrence |
filterTerm(TermOccurrence occurence)
Takes a single term occurrence and filters that occurrence into a new
occurrence or returns null, indicating that the filter rejects that
term.
|
StopList |
getStopList()
Gets the stop list used by the filter.
|
void |
setStopList(StopList stopList)
Sets the stop list for the filter to use.
|
filterTerms
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
protected StopList stopList
public StopListFilter()
StopListFilter
.public StopListFilter(StopList stopList)
StopListFilter
with the given stop list.stopList
- The stop list to use.public TermOccurrence filterTerm(TermOccurrence occurence)
SingleTermFilter
occurence
- The term occurrence to filter.public StopList getStopList()
public void setStopList(StopList stopList)
stopList
- The stop list.