public abstract class AbstractTextFilter extends Object implements TextFilter
Modifier and Type | Field and Description |
---|---|
protected boolean |
inverted |
Constructor and Description |
---|
AbstractTextFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
filterText(String text)
Returns true if the specified String should be filtered.
|
TextContainer |
filterText(TextContainer text)
Returns the tokenized text with the filtered tokens removed.
|
boolean |
isInverted()
Returns true if the filter is inverted.
|
boolean |
isStringFilter()
Returns true if filter can be applied to a string.
|
boolean |
isTokenFilter()
Returns true if filter can be applied to tokenized text.
|
void |
setInverted(boolean invert)
Set whether this filter should be inverted.
|
public boolean isInverted()
TextFilter
isInverted
in interface TextFilter
public boolean isStringFilter()
TextFilter
isStringFilter
in interface TextFilter
public boolean isTokenFilter()
TextFilter
isTokenFilter
in interface TextFilter
public void setInverted(boolean invert)
TextFilter
setInverted
in interface TextFilter
invert
- true if filter should be invertedpublic TextContainer filterText(TextContainer text)
TextFilter
filterText
in interface TextFilter
text
- the tokenized text to filterpublic boolean filterText(String text)
TextFilter
filterText
in interface TextFilter
text
- the string to testCopyright © 2020 Actian Corporation. All rights reserved.