public final class PunctuationFilter extends AbstractTextFilter
inverted
Constructor and Description |
---|
PunctuationFilter() |
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 |
isStringFilter()
Returns true if filter can be applied to a string.
|
boolean |
isTokenFilter()
Returns true if filter can be applied to tokenized text.
|
isInverted, setInverted
public boolean isStringFilter()
TextFilter
isStringFilter
in interface TextFilter
isStringFilter
in class AbstractTextFilter
public boolean isTokenFilter()
TextFilter
isTokenFilter
in interface TextFilter
isTokenFilter
in class AbstractTextFilter
public boolean filterText(String text)
TextFilter
filterText
in interface TextFilter
filterText
in class AbstractTextFilter
text
- the string to testpublic TextContainer filterText(TextContainer text)
TextFilter
filterText
in interface TextFilter
filterText
in class AbstractTextFilter
text
- the tokenized text to filterCopyright © 2016 Actian Corporation. All Rights Reserved.