Enum SeverityType
- java.lang.Object
-
- java.lang.Enum<SeverityType>
-
- net.n2oapp.framework.api.exception.SeverityType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SeverityType>,IdAware
public enum SeverityType extends java.lang.Enum<SeverityType> implements IdAware
User: operhod Date: 18.11.13 Time: 14:49
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()voidsetId(java.lang.String id)static SeverityTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SeverityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
danger
public static final SeverityType danger
-
warning
public static final SeverityType warning
-
info
public static final SeverityType info
-
success
public static final SeverityType success
-
-
Method Detail
-
values
public static SeverityType[] 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 (SeverityType c : SeverityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SeverityType 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
-
-