Interface ValueSource

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear the feedback accumulated by a prior interpolation run.
    Return the feedback about resolution failures for a particular expression.
    getValue(String expression)
     
    default Object
    getValue(String expression, String expressionStartDelimiter, String expressionEndDelimiter)
    Returns a value resolved from an expression.
  • Method Details

    • getValue

      default Object getValue(String expression, String expressionStartDelimiter, String expressionEndDelimiter)
      Returns a value resolved from an expression. The return value is recursively resolved via BasicInterpolator.interpolate(String), i.e. might contain expressions as well.
      Parameters:
      expression - The string expression.
      expressionStartDelimiter - A valid start delimiter of the expression to be used with the calling Interpolator (by default ${).
      expressionEndDelimiter - A valid end delimiter of the expression to be used with the calling Interpolator (by default }).
      Returns:
      the value related to the expression, or null if not found. This value might contain other expressions separated by expressionStartDelimiter and expressionEndDelimiter
      Since:
      1.28
    • getValue

      Object getValue(String expression)
      Parameters:
      expression - The string expression.
      Returns:
      the value related to the expression, or null if not found.
      See Also:
    • getFeedback

      List getFeedback()
      Return the feedback about resolution failures for a particular expression.
      Returns:
      a combination of String and Throwable instances, where strings related to throwables are listed first.
    • clearFeedback

      void clearFeedback()
      Clear the feedback accumulated by a prior interpolation run.