public interface IParser
Modifier and Type | Interface and Description |
---|---|
static class |
IParser.InstantFilter
Helper class used on
parseInstantText(String) . |
Modifier and Type | Method and Description |
---|---|
String |
escape(String s)
Escapes a given expression, such that, when parsed, the parser will make
no character/operator substitutions.
|
IParser.InstantFilter |
parseInstantText(String expression)
Parses the text, considered to be a part of the whole text to enter.
|
RowFilter |
parseText(String expression)
Parses the text, returning a filter that can be applied to the table.
|
String |
stripHtml(String s)
Removes any Html content from the passed string, converting special
Html characters to Java characters.
|
RowFilter parseText(String expression) throws ParseException
expression
- the text to parseParseException
IParser.InstantFilter parseInstantText(String expression) throws ParseException
The behaviour of this method is implementation specific; the default implementation considers the expression to be the beginning of the expected final string
This method is invoked when the user inputs text on a filter editor, if instant parsing is enabled, and if the text entered so far does not match any table's row value for the associated column.
Alternative implementations that would consider matching the provided
expression to any substring ('contain' meaning), should set the
autoCompletion flag in the IFilterEditor
to false
expression
- the text to parseParseException
String escape(String s)