Class BooleanExpression

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

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

    • BooleanExpression

      public BooleanExpression(String metadata, boolean value)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
      value - the boolean value
    • BooleanExpression

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

      public BooleanExpression(String metadata, boolean value, boolean unversioned)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
      value - the boolean value
      unversioned - true if the metadata is unversioned, false otherwise.
    • BooleanExpression

      public BooleanExpression(String metadata, Expression.Operator operator, boolean value, boolean unversioned)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
      operator - the operator to make the comparison
      value - the boolean value
      unversioned - true if the metadata is unversioned, false otherwise.
  • 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.