Class MultilingualStringExpression

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

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

    • MultilingualStringExpression

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

      public MultilingualStringExpression(String metadata, Expression.Operator operator, String value, String lang, boolean unversioned)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
      operator - the operator to make the comparison
      value - the String value
      lang - the language code
      unversioned - true if the metadata is unversioned, false otherwise.
    • MultilingualStringExpression

      public MultilingualStringExpression(String metadata, Expression.Operator operator, String value, String lang, boolean unversioned, boolean caseInsensitive)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
      operator - the operator to make the comparison
      value - the String value
      lang - the language code
      unversioned - true if the metadata is unversioned, false otherwise.
      caseInsensitive - true if the search must be case insensitive.
  • 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.