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>, java.lang.constant.Constable

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.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • 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

    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.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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 type, in the order they are declared.
      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 name
      java.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.