Enum Class NotificationType

java.lang.Object
java.lang.Enum<NotificationType>
com.pnfsoftware.jeb.core.units.NotificationType
All Implemented Interfaces:
Serializable, Comparable<NotificationType>, Constable

@Ser public enum NotificationType extends Enum<NotificationType>
Notification types reported by units.
  • Enum Constant Details

    • UNSUPPORTED_FEATURE

      public static final NotificationType UNSUPPORTED_FEATURE
      Some input cannot be parsed because of a limitation within the unit itself.
    • DEPRECATED_FEATURE

      public static final NotificationType DEPRECATED_FEATURE
      The unit has detected features that have been deprecated.
    • CORRUPTION

      public static final NotificationType CORRUPTION
      Input corruption has been detected.
    • AREA_OF_INTEREST

      public static final NotificationType AREA_OF_INTEREST
      A generic type to signify an area of interest within a unit. Same as INFO.
    • INFO

      public static final NotificationType INFO
      A generic type similar to AREA_OF_INTEREST.
    • WARNING

      public static final NotificationType WARNING
      A generic type to signify a warning in the unit.
    • ERROR

      public static final NotificationType ERROR
      A generic type to signify an error in the unit.
    • POTENTIALLY_HARMFUL

      public static final NotificationType POTENTIALLY_HARMFUL
      This type indicates usage of a feature not recommended by guidelines due to its potential dangerousness.
    • MALICIOUS

      public static final NotificationType MALICIOUS
      The intent is malicious.
  • Method Details

    • values

      public static NotificationType[] 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 NotificationType 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
    • getLevel

      public int getLevel()
      Get the notification level. The level is a number between 0 and 100 that indicates the level of interest associated with the notification.
      Returns:
      the notification level
    • getDescription

      public String getDescription()
      A description string for the notification.
      Returns:
      the description string
    • toString

      public String toString()
      Overrides:
      toString in class Enum<NotificationType>