Class LanguageExpression

java.lang.Object
org.ametys.cms.repository.LanguageExpression
All Implemented Interfaces:
Expression

public class LanguageExpression extends Object implements Expression
Constructs an Expression corresponding to a language comparison.
  • Constructor Details

    • LanguageExpression

      public LanguageExpression(Expression.Operator operator, String value)
      Creates the expression.
      Parameters:
      operator - the operator to make the comparison (only Operator.EQ and Operator.NE allowed)
      value - the tag value
    • LanguageExpression

      public LanguageExpression(Expression.Operator operator, String[] values)
      Creates the expression.
      Parameters:
      operator - the operator to make the comparison (only Operator.EQ and Operator.NE allowed)
      values - the tags value in a array
  • 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.