Package de.bsvrz.dav.daf.main.config
Enum TimeSpecificationType
- java.lang.Object
-
- java.lang.Enum<TimeSpecificationType>
-
- de.bsvrz.dav.daf.main.config.TimeSpecificationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TimeSpecificationType>
public enum TimeSpecificationType extends java.lang.Enum<TimeSpecificationType>
Dieses Enum listet alle möglichen Gültigkeitszeitraum-Typen auf. Er gibt die Art und Weise an, wie der Gültigkeitszeitraum zu betrachten ist.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VALID
Für Objekte, die aktuell gültig sind.VALID_AT_TIME
Für Objekte, die zu einem bestimmten Zeitpunkt gültig waren.VALID_DURING_PERIOD
Für Objekte, die während des gesamten Zeitraumes gültig waren.VALID_IN_PERIOD
Für Objekte, die an mindestens einem Zeitpunkt des angegebenen Zeitbereichs gültig waren.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getCode()
Eindeutige Id des Zustands.static TimeSpecificationType
getInstance(short code)
static TimeSpecificationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TimeSpecificationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALID
public static final TimeSpecificationType VALID
Für Objekte, die aktuell gültig sind.
-
VALID_AT_TIME
public static final TimeSpecificationType VALID_AT_TIME
Für Objekte, die zu einem bestimmten Zeitpunkt gültig waren.
-
VALID_IN_PERIOD
public static final TimeSpecificationType VALID_IN_PERIOD
Für Objekte, die an mindestens einem Zeitpunkt des angegebenen Zeitbereichs gültig waren.
-
VALID_DURING_PERIOD
public static final TimeSpecificationType VALID_DURING_PERIOD
Für Objekte, die während des gesamten Zeitraumes gültig waren.
-
-
Method Detail
-
values
public static TimeSpecificationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimeSpecificationType c : TimeSpecificationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeSpecificationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getInstance
public static final TimeSpecificationType getInstance(short code)
-
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.
-
-