Enum Class ExpressionLanguageScope

java.lang.Object
java.lang.Enum<ExpressionLanguageScope>
org.apache.nifi.expression.ExpressionLanguageScope
All Implemented Interfaces:
Serializable, Comparable<ExpressionLanguageScope>, Constable

public enum ExpressionLanguageScope extends Enum<ExpressionLanguageScope>
Indicates the scope of expression language on a property descriptor. Scope of the expression language is hierarchical. NONE -> ENVIRONMENT -> FLOWFILE_ATTRIBUTES When scope is set to FlowFiles attributes, variables are evaluated against attributes of each incoming flow file. If no matching attribute is found, env/syst properties will be checked. NONE - expression language is not supported ENVIRONMENT - Environment variables defined at JVM level and system properties. FLOWFILE_ATTRIBUTES - will check attributes of each individual flow file
  • Enum Constant Details

    • NONE

      public static final ExpressionLanguageScope NONE
      Expression language is disabled
    • ENVIRONMENT

      public static final ExpressionLanguageScope ENVIRONMENT
      Expression language is evaluated against variables in registry
    • FLOWFILE_ATTRIBUTES

      public static final ExpressionLanguageScope FLOWFILE_ATTRIBUTES
      Expression language is evaluated per flow file using attributes
  • Field Details

    • description

      private String description
  • Constructor Details

    • ExpressionLanguageScope

      private ExpressionLanguageScope(String description)
  • Method Details

    • values

      public static ExpressionLanguageScope[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ExpressionLanguageScope valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDescription

      public String getDescription()