de.bsvrz.dav.daf.main.config
Enum TimeSpecificationType

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

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.

Author:
Kappich+Kniß Systemberatung Aachen (K2S), Stephan Homeyer (sth)

Enum Constant Summary
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
 short getCode()
          Eindeutige Id des Zustands.
static TimeSpecificationType getInstance(short code)
           
static TimeSpecificationType valueOf(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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 final TimeSpecificationType[] values()
Returns an array containing the constants of this enum type, in the order they're 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're declared

valueOf

public static TimeSpecificationType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

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.