Package de.bsvrz.dav.daf.main.config
Enum Class TimeSpecificationType
- All Implemented Interfaces:
Serializable
,Comparable<TimeSpecificationType>
,Constable
Dieses Enum listet alle möglichen Gültigkeitszeitraum-Typen auf. Er gibt die Art und Weise an, wie der Gültigkeitszeitraum zu betrachten ist.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFür Objekte, die aktuell gültig sind.Für Objekte, die zu einem bestimmten Zeitpunkt gültig waren.Für Objekte, die während des gesamten Zeitraumes gültig waren.Für Objekte, die an mindestens einem Zeitpunkt des angegebenen Zeitbereichs gültig waren. -
Method Summary
Modifier and TypeMethodDescriptionshort
getCode()
Eindeutige Id des Zustands.static final TimeSpecificationType
getInstance
(short code) static TimeSpecificationType
Returns the enum constant of this class with the specified name.static TimeSpecificationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VALID
Für Objekte, die aktuell gültig sind. -
VALID_AT_TIME
Für Objekte, die zu einem bestimmten Zeitpunkt gültig waren. -
VALID_IN_PERIOD
Für Objekte, die an mindestens einem Zeitpunkt des angegebenen Zeitbereichs gültig waren. -
VALID_DURING_PERIOD
Für Objekte, die während des gesamten Zeitraumes gültig waren.
-
-
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
-
getInstance
-
getCode
public short getCode()Eindeutige Id des Zustands. Diese ID kann benutzt werden um das Objekt zu serialisieren und später wieder zu deserialisieren.- Returns:
- Zahl, die den Zustand eindeutig identifiziert.
-