Class ParametersDisabledEvaluationContext

java.lang.Object
org.apache.nifi.attribute.expression.language.ParametersDisabledEvaluationContext
All Implemented Interfaces:
EvaluationContext

public class ParametersDisabledEvaluationContext extends Object implements EvaluationContext
Delegating implementation of Evaluation Context that blocks access to Parameter Values
  • Field Details

  • Constructor Details

    • ParametersDisabledEvaluationContext

      public ParametersDisabledEvaluationContext(EvaluationContext evaluationContext)
  • Method Details

    • getExpressionValue

      public String getExpressionValue(String name)
      Description copied from interface: EvaluationContext
      Returns the name of an attribute, variable, environment variable, or system variable that can be referenced in the Expression Language
      Specified by:
      getExpressionValue in interface EvaluationContext
      Parameters:
      name - the name of the attribute, variable, etc.
      Returns:
      the value assigned to the attribute, variable, etc. or null if no such value exists
    • getExpressionKeys

      public Set<String> getExpressionKeys()
      Description copied from interface: EvaluationContext
      Returns the names of all attributes, variables, etc. that can be used in Expression Language
      Specified by:
      getExpressionKeys in interface EvaluationContext
      Returns:
      the names of all keys that can be used in Expression Language
    • getState

      public String getState(String key)
      Specified by:
      getState in interface EvaluationContext
    • getEvaluatorState

      public EvaluatorState getEvaluatorState()
      Specified by:
      getEvaluatorState in interface EvaluationContext
    • getParameter

      public Parameter getParameter(String parameterName)
      Get Parameter returns null in all cases to block access to Parameter Values
      Specified by:
      getParameter in interface EvaluationContext
      Parameters:
      parameterName - Parameter Name
      Returns:
      Null Parameter