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()StringgetErrorMessage()A string with the error message if the parser fails to parse the supplied string.StringgetSymbol(String text)Return the symbol related to an operator text which can be used with this parser.booleanisCaseSensitive()booleanisValid(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)voidsetCaseSensitive(boolean caseSensitive)voidsetConverter(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:ParserChecks if the supplied text is valid or not.
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:ParserA string with the error message if the parser fails to parse the supplied string.- Specified by:
getErrorMessagein interfaceParser<T>- Returns:
- An error message if the parse fails.
-
operators
public List<String> operators()
Description copied from interface:ParserReturns the list of operators which can be used with this parser.
-
-