Top Inners Fields Constructors Methods
impl.org.controlsfx.tableview2.filter.parser.string

public Class StringParser<T>

extends Object
implements Parser<T>
Class Inheritance
All Implemented Interfaces
org.controlsfx.control.tableview2.filter.parser.Parser
Imports
impl.org.controlsfx.tableview2.filter.parser.Operation, impl.org.controlsfx.tableview2.filter.parser.aggregate.AggregatorsParser, javafx.util.StringConverter, org.controlsfx.control.tableview2.filter.parser.Parser, java.util.Arrays, .List, .Optional, java.util.function.Predicate, java.util.stream.Collectors, .Stream

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class

Field Summary

Modifier and TypeField and Description
private boolean
private StringConverter<T>
private String
private final List<Operation<T, String>>

Constructor Summary

AccessConstructor and Description
public
public
StringParser(boolean caseSensitive)

public
StringParser(boolean caseSensitive, StringConverter<T> converter)

Method Summary

Modifier and TypeMethod and Description
private String
public StringConverter<T>
public String
getErrorMessage()

Implements org.controlsfx.control.tableview2.filter.parser.Parser.getErrorMessage.

A string with the error message if the parser fails to parse the supplied string.

public String
getSymbol(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.getSymbol.

Return the symbol related to an operator text which can be used with this parser.

private static String
public boolean
public boolean
isValid(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.isValid.

Checks if the supplied text is valid or not.

public List<String>
operators()

Implements org.controlsfx.control.tableview2.filter.parser.Parser.operators.

Returns the list of operators which can be used with this parser.

public Predicate<T>
public void
setCaseSensitive(boolean caseSensitive)

public void
private String
trim(String text, int typeLength)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

caseSensitiveback to summary
private boolean caseSensitive
converterback to summary
private StringConverter<T> converter
errorStringback to summary
private String errorString
operationsback to summary
private final List<Operation<T, String>> operations

Constructor Detail

StringParserback to summary
public StringParser()
StringParserback to summary
public StringParser(boolean caseSensitive)
StringParserback to summary
public StringParser(boolean caseSensitive, StringConverter<T> converter)

Method Detail

casedStringback to summary
private String casedString(String string)
getConverterback to summary
public StringConverter<T> getConverter()
getErrorMessageback to summary
public String getErrorMessage()

Implements org.controlsfx.control.tableview2.filter.parser.Parser.getErrorMessage.

Doc from org.controlsfx.control.tableview2.filter.parser.Parser.getErrorMessage.

A string with the error message if the parser fails to parse the supplied string.

Annotations
@Override
getSymbolback to summary
public String getSymbol(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.getSymbol.

Doc from org.controlsfx.control.tableview2.filter.parser.Parser.getSymbol.

Return the symbol related to an operator text which can be used with this parser.

Annotations
@Override
i18nStringback to summary
private static String i18nString(String key)
isCaseSensitiveback to summary
public boolean isCaseSensitive()
isValidback to summary
public boolean isValid(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.isValid.

Doc from org.controlsfx.control.tableview2.filter.parser.Parser.isValid.

Checks if the supplied text is valid or not.

Annotations
@Override
operatorsback to summary
public List<String> operators()

Implements org.controlsfx.control.tableview2.filter.parser.Parser.operators.

Doc from org.controlsfx.control.tableview2.filter.parser.Parser.operators.

Returns the list of operators which can be used with this parser.

Annotations
@Override
parseback to summary
public Predicate<T> parse(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.parse.

Annotations
@Override
setCaseSensitiveback to summary
public void setCaseSensitive(boolean caseSensitive)
setConverterback to summary
public void setConverter(StringConverter<T> converter)
trimback to summary
private String trim(String text, int typeLength)
impl.org.controlsfx.tableview2.filter.parser.string back to summary

pack-priv Class StringParser.BeginsWith

extends Object
implements Operation<T, String>
Class Inheritance
  • java.lang.Object
  • impl.org.controlsfx.tableview2.filter.parser.string.StringParser.BeginsWith
All Implemented Interfaces
impl.org.controlsfx.tableview2.filter.parser.Operation

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
public String
public int
public Predicate<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BeginsWithback to summary
pack-priv BeginsWith()

Method Detail

getback to summary
public String get()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.get.

Annotations
@Override
getSymbolback to summary
public String getSymbol()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.getSymbol.

Annotations
@Override
lengthback to summary
public int length()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.length.

Annotations
@Override
operateback to summary
public Predicate<T> operate(String text)

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.operate.

Annotations
@Override
impl.org.controlsfx.tableview2.filter.parser.string back to summary

pack-priv Class StringParser.Contains

extends Object
implements Operation<T, String>
Class Inheritance
  • java.lang.Object
  • impl.org.controlsfx.tableview2.filter.parser.string.StringParser.Contains
All Implemented Interfaces
impl.org.controlsfx.tableview2.filter.parser.Operation

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
public String
public int
public Predicate<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Containsback to summary
pack-priv Contains()

Method Detail

getback to summary
public String get()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.get.

Annotations
@Override
getSymbolback to summary
public String getSymbol()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.getSymbol.

Annotations
@Override
lengthback to summary
public int length()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.length.

Annotations
@Override
operateback to summary
public Predicate<T> operate(String text)

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.operate.

Annotations
@Override
impl.org.controlsfx.tableview2.filter.parser.string back to summary

pack-priv Class StringParser.EndsWith

extends Object
implements Operation<T, String>
Class Inheritance
  • java.lang.Object
  • impl.org.controlsfx.tableview2.filter.parser.string.StringParser.EndsWith
All Implemented Interfaces
impl.org.controlsfx.tableview2.filter.parser.Operation

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
public String
public int
public Predicate<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EndsWithback to summary
pack-priv EndsWith()

Method Detail

getback to summary
public String get()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.get.

Annotations
@Override
getSymbolback to summary
public String getSymbol()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.getSymbol.

Annotations
@Override
lengthback to summary
public int length()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.length.

Annotations
@Override
operateback to summary
public Predicate<T> operate(String text)

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.operate.

Annotations
@Override
impl.org.controlsfx.tableview2.filter.parser.string back to summary

pack-priv Class StringParser.EqualsTo

extends Object
implements Operation<T, String>
Class Inheritance
  • java.lang.Object
  • impl.org.controlsfx.tableview2.filter.parser.string.StringParser.EqualsTo
All Implemented Interfaces
impl.org.controlsfx.tableview2.filter.parser.Operation

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
public String
public int
public Predicate<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EqualsToback to summary
pack-priv EqualsTo()

Method Detail

getback to summary
public String get()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.get.

Annotations
@Override
getSymbolback to summary
public String getSymbol()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.getSymbol.

Annotations
@Override
lengthback to summary
public int length()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.length.

Annotations
@Override
operateback to summary
public Predicate<T> operate(String text)

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.operate.

Annotations
@Override
impl.org.controlsfx.tableview2.filter.parser.string back to summary

pack-priv Class StringParser.NotEqualsTo

extends Object
implements Operation<T, String>
Class Inheritance
  • java.lang.Object
  • impl.org.controlsfx.tableview2.filter.parser.string.StringParser.NotEqualsTo
All Implemented Interfaces
impl.org.controlsfx.tableview2.filter.parser.Operation

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
public String
public int
public Predicate<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NotEqualsToback to summary
pack-priv NotEqualsTo()

Method Detail

getback to summary
public String get()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.get.

Annotations
@Override
getSymbolback to summary
public String getSymbol()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.getSymbol.

Annotations
@Override
lengthback to summary
public int length()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.length.

Annotations
@Override
operateback to summary
public Predicate<T> operate(String text)

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.operate.

Annotations
@Override