public class StringQueryExpression extends DefaultExpressionParameter implements Predicate<String>
DefaultExpressionParameter.List
Constructor and Description |
---|
StringQueryExpression() |
StringQueryExpression(String expression) |
StringQueryExpression(StringQueryExpression other) |
Modifier and Type | Method and Description |
---|---|
String |
generate(ExpressionVariables expressionVariables)
Attempts to run the expression.
|
List<String> |
queryAll(Collection<String> strings,
ExpressionVariables expressionVariables)
Generates an annotation value
|
String |
queryFirst(Collection<String> strings,
ExpressionVariables expressionVariables)
Queries a string out of the list
|
boolean |
test(String string)
Returns true if the query matches the string
|
boolean |
test(String string,
ExpressionVariables expressionVariables)
Returns true if the query matches the string
|
boolean |
testAnyOf(Collection<String> strings)
Returns true of one of the strings matches the query.
|
getAdditionalUIVariables, getEvaluator, getEvaluatorInstance, setAdditionalUIVariables
evaluate, evaluateToBoolean, evaluateToColor, evaluateToDouble, evaluateToFloat, evaluateToInteger, evaluateToNumber, evaluateToString, getExpression, isEmpty, setExpression, test, toString
public StringQueryExpression()
public StringQueryExpression(String expression)
public StringQueryExpression(StringQueryExpression other)
public String generate(ExpressionVariables expressionVariables)
expressionVariables
- expression parameterspublic String queryFirst(Collection<String> strings, ExpressionVariables expressionVariables)
strings
- existing annotations for the dataexpressionVariables
- expression parameterspublic List<String> queryAll(Collection<String> strings, ExpressionVariables expressionVariables)
strings
- existing annotations for the dataexpressionVariables
- expression parameterspublic boolean test(String string)
public boolean test(String string, ExpressionVariables expressionVariables)
string
- the stringpublic boolean testAnyOf(Collection<String> strings)
strings
- the stringsCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.