public enum EErrorLevel extends Enum<EErrorLevel> implements IErrorLevel
| Enum Constant and Description |
|---|
ERROR
Error level
|
FATAL_ERROR
Fatal error
|
INFO
Information level
|
SUCCESS
Success
|
WARN
Warning level.
|
| Modifier and Type | Field and Description |
|---|---|
static EErrorLevel |
HIGHEST
Highest error level within this enum
|
static EErrorLevel |
LOWEST
Lowest error level within this enum
|
| Modifier and Type | Method and Description |
|---|---|
static EErrorLevel |
getFromIDCaseInsensitiveOrDefault(String sID,
EErrorLevel eDefault) |
static EErrorLevel |
getFromIDCaseInsensitiveOrNull(String sID) |
static EErrorLevel |
getFromIDCaseInsensitiveOrThrow(String sID) |
static EErrorLevel |
getFromIDOrDefault(String sID,
EErrorLevel eDefault) |
static EErrorLevel |
getFromIDOrNull(String sID) |
static EErrorLevel |
getFromIDOrThrow(String sID) |
String |
getID()
Get the unique ID of this object.
|
int |
getNumericLevel() |
static EErrorLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EErrorLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetMostSevere, isEqualSevereThan, isError, isFailure, isHighest, isLessOrEqualSevereThan, isLessSevereThan, isMoreOrEqualSevereThan, isMoreSevereThan, isNoError, isSuccessgetComparatorIDand, orpublic static final EErrorLevel SUCCESS
public static final EErrorLevel INFO
public static final EErrorLevel WARN
public static final EErrorLevel ERROR
public static final EErrorLevel FATAL_ERROR
public static final EErrorLevel LOWEST
public static final EErrorLevel HIGHEST
public static EErrorLevel[] values()
for (EErrorLevel c : EErrorLevel.values()) System.out.println(c);
public static EErrorLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull @Nonempty public String getID()
IHasIDString than the
returned value must match an XML NMToken expression (so e.g. no ':' in the
ID)!@Nonnegative public int getNumericLevel()
getNumericLevel in interface IErrorLevel@Nullable public static EErrorLevel getFromIDOrNull(@Nullable String sID)
@Nonnull public static EErrorLevel getFromIDOrThrow(@Nullable String sID)
@Nullable public static EErrorLevel getFromIDOrDefault(@Nullable String sID, @Nullable EErrorLevel eDefault)
@Nullable public static EErrorLevel getFromIDCaseInsensitiveOrNull(@Nullable String sID)
@Nonnull public static EErrorLevel getFromIDCaseInsensitiveOrThrow(@Nullable String sID)
@Nullable public static EErrorLevel getFromIDCaseInsensitiveOrDefault(@Nullable String sID, @Nullable EErrorLevel eDefault)
Copyright © 2014–2017 Philip Helger. All rights reserved.