com.kuka.nav.systemfailureevent
Enum SystemFailureLevel

java.lang.Object
  extended by java.lang.Enum<SystemFailureLevel>
      extended by com.kuka.nav.systemfailureevent.SystemFailureLevel
All Implemented Interfaces:
Serializable, Comparable<SystemFailureLevel>

public enum SystemFailureLevel
extends Enum<SystemFailureLevel>

Represents the possible levels of system failure events.


Enum Constant Summary
ERROR
          Error level.
WARNING
          Warning level.
 
Method Summary
static SystemFailureLevel fromString(String levelString)
          Constructs a SystemFailureLevel based on the given string.
 String getString()
           
static SystemFailureLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SystemFailureLevel[] 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

ERROR

public static final SystemFailureLevel ERROR
Error level.


WARNING

public static final SystemFailureLevel WARNING
Warning level.

Method Detail

values

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

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

valueOf

public static SystemFailureLevel 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

getString

public String getString()
Returns:
String value of the level.

fromString

public static SystemFailureLevel fromString(String levelString)
Constructs a SystemFailureLevel based on the given string.

Parameters:
levelString - the string representation of a level
Returns:
the system failure level or throws an exception if there is no matching level found


Copyright © 2019. All rights reserved.