de.bsvrz.sys.usv.enums
Enum USVZustand

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

public enum USVZustand
extends Enum<USVZustand>

Zuordnung der Zustände des Attributs UsvZustand der Attributgruppe atg.usvStatus

Author:
ObertM Geprüft 30.9.2008 Hilpp, BitCtrl Systems GmbH, Christian Hösel

Enum Constant Summary
Batterie
          Der USVZustand "Batteriebetrieb" (1).
na
          Der USVZustand "Nicht ermittelbar" (-1).
normal
          Der USVZustand "Normalbetrieb" (0).
 
Field Summary
private  String m_text
           
private  int m_value
           
 
Method Summary
 String getText()
          Liefert den Namen des USVZustand.
 int getValue()
          Liefert die Ordinalzahl des USVZustandes.
static USVZustand valueOf(String name)
          Returns the enum constant of this type with the specified name.
static USVZustand[] 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 USVZustand na
Der USVZustand "Nicht ermittelbar" (-1).


normal

public static final USVZustand normal
Der USVZustand "Normalbetrieb" (0).


Batterie

public static final USVZustand Batterie
Der USVZustand "Batteriebetrieb" (1).

Field Detail

m_text

private final String m_text

m_value

private final int m_value
Method Detail

values

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

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

valueOf

public static USVZustand 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 des USVZustand.

Returns:
der Name.

getValue

public int getValue()
Liefert die Ordinalzahl des USVZustandes.

Returns:
die Ordinalzahl.