Class StringExpression
java.lang.Object
org.ametys.plugins.repository.query.expression.StringExpression
- All Implemented Interfaces:
Expression
Constructs an
Expression corresponding to the String comparison with a metadata.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.LogicalOperator, Expression.Operator -
Constructor Summary
ConstructorsConstructorDescriptionStringExpression(String metadata, Expression.Operator operator, String value) Creates the comparison Expression.StringExpression(String metadata, Expression.Operator operator, String value, ExpressionContext context) Creates the comparison Expression. -
Method Summary
-
Constructor Details
-
StringExpression
Creates the comparison Expression.- Parameters:
metadata- the metadata nameoperator- the operator to make the comparisonvalue- the String value
-
StringExpression
public StringExpression(String metadata, Expression.Operator operator, String value, ExpressionContext context) Creates the comparison Expression.- Parameters:
metadata- the metadata nameoperator- the operator to make the comparisonvalue- the String valuecontext- the expression context
-
-
Method Details
-
build
Description copied from interface:ExpressionBuild the expression.- Specified by:
buildin interfaceExpression- Returns:
- The XPath view of the expression.
-