Module org.controlsfx.controls
Class StringParser<T>
- java.lang.Object
-
- impl.org.controlsfx.tableview2.filter.parser.string.StringParser<T>
-
-
Constructor Summary
Constructors Constructor Description StringParser()
StringParser(boolean caseSensitive)
StringParser(boolean caseSensitive, StringConverter<T> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringConverter<T>
getConverter()
String
getErrorMessage()
A string with the error message if the parser fails to parse the supplied string.String
getSymbol(String text)
Return the symbol related to an operator text which can be used with this parser.boolean
isCaseSensitive()
boolean
isValid(String text)
Checks if the supplied text is valid or not.List<String>
operators()
Returns the list of operators which can be used with this parser.Predicate<T>
parse(String text)
void
setCaseSensitive(boolean caseSensitive)
void
setConverter(StringConverter<T> converter)
-
-
-
Constructor Detail
-
StringParser
public StringParser()
-
StringParser
public StringParser(boolean caseSensitive)
-
StringParser
public StringParser(boolean caseSensitive, StringConverter<T> converter)
-
-
Method Detail
-
getConverter
public StringConverter<T> getConverter()
-
setConverter
public void setConverter(StringConverter<T> converter)
-
isCaseSensitive
public boolean isCaseSensitive()
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
-
isValid
public boolean isValid(String text)
Description copied from interface:Parser
Checks if the supplied text is valid or not.
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:Parser
A string with the error message if the parser fails to parse the supplied string.- Specified by:
getErrorMessage
in interfaceParser<T>
- Returns:
- An error message if the parse fails.
-
operators
public List<String> operators()
Description copied from interface:Parser
Returns the list of operators which can be used with this parser.
-
-