Package no.unit.nva.model
Enum Level
- java.lang.Object
-
- java.lang.Enum<Level>
-
- no.unit.nva.model.Level
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERROR_TEMLATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LevelgetLevel(java.lang.Integer integer)In cases where an integer is supplied, it must be checked that the level is correct.static LevelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Level[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
ERROR_TEMLATE
public static final java.lang.String ERROR_TEMLATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Level[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Level c : Level.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Level valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getLevel
public static Level getLevel(java.lang.Integer integer) throws InvalidNpiLevelException
In cases where an integer is supplied, it must be checked that the level is correct.- Parameters:
integer- The level value as integer- Returns:
- Level value
- Throws:
InvalidNpiLevelException- In cases where the the input level is not a valid level
-
-