Enum Class NilHandlingPolicy

java.lang.Object
java.lang.Enum<NilHandlingPolicy>
org.apache.nifi.syslog.utils.NilHandlingPolicy
All Implemented Interfaces:
Serializable, Comparable<NilHandlingPolicy>, Constable

public enum NilHandlingPolicy extends Enum<NilHandlingPolicy>
Policies available for handling NIL '-' values. Must match the simple-syslog-5424 NilPolicy
  • Enum Constant Details

    • OMIT

      public static final NilHandlingPolicy OMIT
      a nil value will result msg part being omitted from the map.
    • NULL

      public static final NilHandlingPolicy NULL
      a nil value will result in a null value in the map.
    • DASH

      public static final NilHandlingPolicy DASH
      a nil value will result in a '-' symbol in the map.
  • Constructor Details

    • NilHandlingPolicy

      private NilHandlingPolicy()
  • Method Details

    • values

      public static NilHandlingPolicy[] 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 NilHandlingPolicy 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