Class StringStartsWithExpression

java.lang.Object
org.ametys.plugins.userdirectory.expression.StringStartsWithExpression
All Implemented Interfaces:
Expression

public class StringStartsWithExpression extends Object implements Expression
Constructs an Expression corresponding to the starting with comparison with a metadata, meaning that the Expression will search metadata starting with the specified value.
  • Constructor Details

    • StringStartsWithExpression

      public StringStartsWithExpression(String metadata, String value, boolean caseInsensitive)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name.
      value - the String value.
      caseInsensitive - true if the search must be case insensitive.
    • StringStartsWithExpression

      public StringStartsWithExpression(String metadata, String value, boolean caseInsensitive, boolean unversioned)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name.
      value - the String value.
      caseInsensitive - true if the search must be case insensitive.
      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.