com.sap.sl.sdk.framework
Enum Severity

java.lang.Object
  extended by java.lang.Enum<Severity>
      extended by com.sap.sl.sdk.framework.Severity
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Severity>

public enum Severity
extends java.lang.Enum<Severity>

Defines severity values through an enumeration.


Enum Constant Summary
CANCEL
           
ERROR
           
INFO
           
OK
           
WARNING
           
 
Method Summary
 int getValue()
          Returns the bit mask value of a severity.
 boolean match(int mask)
          Tells if the Severity instance matches the provided mask.
static Severity valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Severity[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OK

public static final Severity OK

INFO

public static final Severity INFO

WARNING

public static final Severity WARNING

ERROR

public static final Severity ERROR

CANCEL

public static final Severity CANCEL
Method Detail

values

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

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

valueOf

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

getValue

public int getValue()
Returns the bit mask value of a severity.

Returns:
An integer that corresponds to the mask
See Also:
match(int)

match

public boolean match(int mask)
Tells if the Severity instance matches the provided mask.

Parameters:
mask - The mask value
Returns:
true if it matches the mask, false otherwise
See Also:
getValue()


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.