Enum Class ParserNotice.Level
- All Implemented Interfaces:
Serializable
,Comparable<ParserNotice.Level>
,Constable
- Enclosing interface:
ParserNotice
Denotes the severity of a parser notice.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of this notice level, as an integer.boolean
Returns whether this level is as sever as, or worse than, another level.static ParserNotice.Level
Returns the enum constant of this class with the specified name.static ParserNotice.Level[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INFO
Indicates an informational notice. -
WARNING
Indicates a warning notice. -
ERROR
Indicates an error notice.
-
-
Field Details
-
value
private final int value
-
-
Constructor Details
-
Level
private Level(int value)
-
-
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
-
getNumericValue
public int getNumericValue()Returns the value of this notice level, as an integer.- Returns:
- A numeric value for this notice level.
-
isEqualToOrWorseThan
Returns whether this level is as sever as, or worse than, another level.- Parameters:
other
- The other level.- Returns:
- Whether this level is equal to or more severe.
-