Class ExpressionContext

java.lang.Object
org.ametys.plugins.repository.query.expression.ExpressionContext

public class ExpressionContext extends Object
Object that gives some context for expressions
  • Constructor Details

  • Method Details

    • newInstance

      public static ExpressionContext newInstance()
      Creates a new instance of a ExpressionContext
      Returns:
      the created instance
    • unversioned

      public boolean unversioned()
      Determines if the data under the expression is internal
      Returns:
      true if the data is internal, false otherwise
    • withUnversioned

      public ExpressionContext withUnversioned(boolean unversioned)
      Set to true to create an expression for unversioned data (default to false)
      Parameters:
      unversioned - true to create an expression for unversioned data, false otherwise
      Returns:
      the current ExpressionContext
    • internal

      public boolean internal()
      Determines if the data under the expression is internal
      Returns:
      true if the data is internal, false otherwise
    • withInternal

      public ExpressionContext withInternal(boolean internal)
      Set to true to create an expression for internal data (default to false)
      Parameters:
      internal - true to create an expression for internal data, false otherwise
      Returns:
      the current ExpressionContext
    • caseInsensitive

      public boolean caseInsensitive()
      Determines if the expression is not case sensitive
      Returns:
      true if the expression is not case sensitive, false otherwise
    • withCaseInsensitive

      public ExpressionContext withCaseInsensitive(boolean caseInsensitive)
      Set to true to create a case insensitive expression (default to false)
      Parameters:
      caseInsensitive - true to create a case insensitive expression, false otherwise
      Returns:
      the current ExpressionContext