public enum MessageType extends java.lang.Enum<MessageType>
Enum Constant and Description |
---|
ERROR
Input is not valid because of a invalid user input
|
INFO
Input is valid but some info should be given to the user (e.g. at initial state)
|
INFO_ERROR
Input not valid, but user did not make any mistake yet
(e.g. field is mandatory and empty or input could be completed to an valid input)
|
OK
Input is ok
|
WARNING
Input is valid but seems to be unusual
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalOrWorse(MessageType messageType)
Checks if the severity of this type is equal or worse
than the severity of the given type.
|
boolean |
isValid() |
static MessageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
boolean |
worse(MessageType messageType)
Checks if the severity of this type is worse
than the severity of the given type.
|
public static final MessageType OK
public static final MessageType INFO
public static final MessageType WARNING
public static final MessageType INFO_ERROR
public static final MessageType ERROR
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType 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 boolean isValid()
public boolean equalOrWorse(MessageType messageType)
message
- The type to check againstpublic boolean worse(MessageType messageType)
message
- The type to check againstSiehe auch Jowidgets Nutzerhandbuch