Class LongExpression

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

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

    • LongExpression

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

      public LongExpression(String metadata, Expression.Operator operator, long value, ExpressionContext context)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
      operator - the operator to make the comparison
      value - the long 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.