de.bsvrz.ste.rdstmc.allgemein
Enum RDSEreignis
java.lang.Object
java.lang.Enum<RDSEreignis>
de.bsvrz.ste.rdstmc.allgemein.RDSEreignis
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<RDSEreignis>
public enum RDSEreignis
- extends java.lang.Enum<RDSEreignis>
Die möglichen RDS-Ereignisse
- Version:
- $Revision: 1.3 $ / $Date: 2009/01/27 13:54:22 $ / ($Author: Sans $)
- Author:
- Dambach Werke
Field Summary |
int |
id
Numerische Darstellung des Ereignisses |
java.lang.String |
text
Text-Darstellung des Ereignisses |
Method Summary |
static RDSEreignis |
get(int id)
|
java.lang.String |
toString()
|
static RDSEreignis |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RDSEreignis[] |
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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
KEINE_AUSSAGE
public static final RDSEreignis KEINE_AUSSAGE
DICHTER_VERKEHR
public static final RDSEreignis DICHTER_VERKEHR
STOCKENDER_VERKEHR
public static final RDSEreignis STOCKENDER_VERKEHR
STAU
public static final RDSEreignis STAU
id
public final int id
- Numerische Darstellung des Ereignisses
text
public final java.lang.String text
- Text-Darstellung des Ereignisses
values
public static RDSEreignis[] 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 (RDSEreignis c : RDSEreignis.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RDSEreignis 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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<RDSEreignis>
get
public static RDSEreignis get(int id)
- Parameters:
id
- Ereignis-Id
- Returns:
- das zur übergebenen Ereignis-Id gehörende RDSEreignis oder null,
falls es zur Id kein RDSEreignis gibt