de.bsvrz.sys.usv.enums
Enum WechselSpannung

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

public enum WechselSpannung
extends Enum<WechselSpannung>

Zuordnung der Zustände des Attributs WechselSpannung der Attributgruppe USV-Status

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

Enum Constant Summary
na
          Die WechselSpannung "Nicht ermittelbar" (-1).
normal
          Die WechselSpannung "in Ordnung" (0).
Ueberspannung
          Die WechselSpannung "Überspannung" (1).
Unterspannung
          Die WechselSpannung "Unterspannung" (2).
 
Field Summary
private  String m_text
           
private  int m_value
           
 
Method Summary
 String getText()
          Liefert der Namen des WechselSpannungs Zustandes.
 int getValue()
          Liefert die Ordinalzahl des WechselSpannungs Zustandes.
static WechselSpannung valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WechselSpannung[] 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 WechselSpannung na
Die WechselSpannung "Nicht ermittelbar" (-1).


normal

public static final WechselSpannung normal
Die WechselSpannung "in Ordnung" (0).


Ueberspannung

public static final WechselSpannung Ueberspannung
Die WechselSpannung "Überspannung" (1).


Unterspannung

public static final WechselSpannung Unterspannung
Die WechselSpannung "Unterspannung" (2).

Field Detail

m_text

private final String m_text

m_value

private final int m_value
Method Detail

values

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

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

valueOf

public static WechselSpannung 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 der Namen des WechselSpannungs Zustandes.

Returns:
der Name des WechselSpannungs Zustandes.

getValue

public int getValue()
Liefert die Ordinalzahl des WechselSpannungs Zustandes.

Returns:
die Ordinalzahl des WechselSpannungs Zustandes.