Class StringExpression

java.lang.Object
org.ametys.plugins.repository.query.expression.StringExpression
All Implemented Interfaces:
Expression

public class StringExpression extends Object implements Expression
Constructs an Expression corresponding to the String comparison with a metadata.
  • Constructor Details

    • StringExpression

      public StringExpression(String metadata, Expression.Operator operator, String value)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
      operator - the operator to make the comparison
      value - the String value
    • StringExpression

      public StringExpression(String metadata, Expression.Operator operator, String value, ExpressionContext context)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
      operator - the operator to make the comparison
      value - the String value
      context - the expression context
  • Method Details

    • build

      public String build()
      Description copied from interface: Expression
      Build the expression.
      Specified by:
      build in interface Expression
      Returns:
      The XPath view of the expression.