de.bsvrz.sys.usv.enums
Enum ZustandPhase

java.lang.Object
  extended by java.lang.Enum<ZustandPhase>
      extended by de.bsvrz.sys.usv.enums.ZustandPhase
All Implemented Interfaces:
Serializable, Comparable<ZustandPhase>

public enum ZustandPhase
extends Enum<ZustandPhase>

Zuordnung der Zustände der Attribute ZustandPhase1 .. ZustandPhase3 der Attributgruppe USV-Status

Author:
ObertM, Christian Hösel, BitCtrl Systems GmbH

Enum Constant Summary
na
          Der ZustandPhase "Nicht ermittelbar" (-1).
normal
          Der ZustandPhase "in Ordnung" (0).
Stoerung
          Der ZustandPhase "Störung" (1).
 
Field Summary
private  String m_text
           
private  int m_value
           
 
Method Summary
 String getText()
          Liefert den Namen eines ZustandPhase.
 int getValue()
          Liefert die Ordinalzahl eines ZustandPhase.
static ZustandPhase valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ZustandPhase[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

na

public static final ZustandPhase na
Der ZustandPhase "Nicht ermittelbar" (-1).


normal

public static final ZustandPhase normal
Der ZustandPhase "in Ordnung" (0).


Stoerung

public static final ZustandPhase Stoerung
Der ZustandPhase "Störung" (1).

Field Detail

m_text

private final String m_text

m_value

private final int m_value
Method Detail

values

public static ZustandPhase[] 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 (ZustandPhase c : ZustandPhase.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ZustandPhase 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
NullPointerException - if the argument is null

getText

public String getText()
Liefert den Namen eines ZustandPhase.

Returns:
der Name des ZustandPhase.

getValue

public int getValue()
Liefert die Ordinalzahl eines ZustandPhase.

Returns:
die Ordinalzahl des ZustandPhase.