public static enum ResultMessage.Level extends java.lang.Enum<ResultMessage.Level>
Enum Constant and Description |
---|
Error
error result
|
FatalError
fatal error result
|
Info
informational result
|
Warning
warning result
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
classCodes
the class codes
|
private static java.util.Map<java.lang.String,ResultMessage.Level> |
classMap
map from the error classes to the level
|
private java.lang.String |
denicToken
the DENIC token
|
private static java.util.Map<java.lang.String,ResultMessage.Level> |
tokenMap
map from the token to the level
|
Modifier and Type | Method and Description |
---|---|
static ResultMessage.Level |
fromErrorClass(java.lang.String errorClass)
return the level for the given error class
|
static ResultMessage.Level |
fromToken(java.lang.String denicToken)
return the level for the given token
|
java.lang.String |
getDenicToken()
return the DENIC token
|
static ResultMessage.Level |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResultMessage.Level[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultMessage.Level Info
public static final ResultMessage.Level Warning
public static final ResultMessage.Level Error
public static final ResultMessage.Level FatalError
private java.lang.String denicToken
private java.lang.String[] classCodes
private static final java.util.Map<java.lang.String,ResultMessage.Level> tokenMap
private static final java.util.Map<java.lang.String,ResultMessage.Level> classMap
public static ResultMessage.Level[] values()
for (ResultMessage.Level c : ResultMessage.Level.values()) System.out.println(c);
public static ResultMessage.Level valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDenicToken()
public static ResultMessage.Level fromToken(java.lang.String denicToken)
denicToken
- the tokennull
if the
token is not foundpublic static ResultMessage.Level fromErrorClass(java.lang.String errorClass)
errorClass
- the error classnull
if the class
is not foundCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH