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
equals, evaluate, evaluateToBoolean, evaluateToColor, evaluateToDouble, evaluateToDoubleList, evaluateToFloat, evaluateToInteger, evaluateToIntegerSafe, evaluateToNumber, evaluateToString, getExpression, getTextDescription, hashCode, isEmpty, setExpression, test, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTextDescriptionOf
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–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.