Package com.pnfsoftware.jeb.core.units
Enum Class NotificationType
- All Implemented Interfaces:
Serializable
,Comparable<NotificationType>
,Constable
Notification types reported by
units
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA generic type to signify an area of interest within a unit.Input corruption has been detected.The unit has detected features that have been deprecated.A generic type to signify an error in the unit.A generic type similar toAREA_OF_INTEREST
.The intent is malicious.This type indicates usage of a feature not recommended by guidelines due to its potential dangerousness.Some input cannot be parsed because of a limitation within the unit itself.A generic type to signify a warning in the unit. -
Method Summary
Modifier and TypeMethodDescriptionA description string for the notification.int
getLevel()
Get the notification level.toString()
static NotificationType
Returns the enum constant of this class with the specified name.static NotificationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSUPPORTED_FEATURE
Some input cannot be parsed because of a limitation within the unit itself. -
DEPRECATED_FEATURE
The unit has detected features that have been deprecated. -
CORRUPTION
Input corruption has been detected. -
AREA_OF_INTEREST
A generic type to signify an area of interest within a unit. Same asINFO
. -
INFO
A generic type similar toAREA_OF_INTEREST
. -
WARNING
A generic type to signify a warning in the unit. -
ERROR
A generic type to signify an error in the unit. -
POTENTIALLY_HARMFUL
This type indicates usage of a feature not recommended by guidelines due to its potential dangerousness. -
MALICIOUS
The intent is malicious.
-
-
Method Details
-
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
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 nameNullPointerException
- 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
A description string for the notification.- Returns:
- the description string
-
toString
- Overrides:
toString
in classEnum<NotificationType>
-