Enum Class MessageState
- All Implemented Interfaces:
Serializable
,Comparable<MessageState>
,Constable
Diese Klasse repräsentiert den Status einer Meldung. Fünf verschiedene Zustände erlaubt diese Klasse:
- Fehlermeldung
- Meldung, die keinem der nachfolgenden Zustände entspricht oder wo der Status nicht ermittelt werden kann.
- Gutmeldung
- Meldung, die zu einer zuvor gesandten Meldung gehört und deren Inhalt wieder aufhebt.
- Neue Meldung
- Meldung, die zum ersten Mal erstellt wird.
- Wiederholungsmeldung
- Meldung, die zu einer bereits zuvor gesendeten Meldung gehört und deren Inhalt wiederholt.
- Änderungsmeldung
- Meldung, die zu einer zuvor gesendeten Meldung gehört und deren Inhalt modifiziert.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetState()
toString()
static MessageState
Returns the enum constant of this class with the specified name.static MessageState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MESSAGE
-
GOOD_MESSAGE
-
NEW_MESSAGE
-
REPEAT_MESSAGE
-
CHANGE_MESSAGE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getState
-
toString
- Overrides:
toString
in classEnum<MessageState>
-