Enum Class TimeSpecificationType

java.lang.Object
java.lang.Enum<TimeSpecificationType>
de.bsvrz.dav.daf.main.config.TimeSpecificationType
All Implemented Interfaces:
Serializable, Comparable<TimeSpecificationType>, Constable

public enum TimeSpecificationType extends 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 Details

    • 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 Details

    • values

      public static TimeSpecificationType[] 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

      public static TimeSpecificationType valueOf(String name)
      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 name
      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.