Package eu.de4a.iem.error
Enum EDE4AErrorSeverity
- java.lang.Object
-
- java.lang.Enum<EDE4AErrorSeverity>
-
- eu.de4a.iem.error.EDE4AErrorSeverity
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.commons.state.IErrorIndicator,Serializable,Comparable<EDE4AErrorSeverity>
public enum EDE4AErrorSeverity extends Enum<EDE4AErrorSeverity> implements com.helger.commons.id.IHasID<String>, com.helger.commons.state.IErrorIndicator
Source: ErrorSeverity-CodeList.gc- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EDE4AErrorSeveritygetFromIDOrNull(String sID)StringgetID()booleanisError()static EDE4AErrorSeverityvalueOf(String name)Returns the enum constant of this type with the specified name.static EDE4AErrorSeverity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WARNING
public static final EDE4AErrorSeverity WARNING
-
FAILURE
public static final EDE4AErrorSeverity FAILURE
-
-
Method Detail
-
values
public static EDE4AErrorSeverity[] 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 (EDE4AErrorSeverity c : EDE4AErrorSeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EDE4AErrorSeverity valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
isError
public boolean isError()
- Specified by:
isErrorin interfacecom.helger.commons.state.IErrorIndicator
-
getFromIDOrNull
@Nullable public static EDE4AErrorSeverity getFromIDOrNull(@Nullable String sID)
-
-