com.sap.tc.cmi.messages

Enum CMIMessageSeverity

java.lang.Object
  extended by java.lang.Enum<CMIMessageSeverity>
      extended by com.sap.tc.cmi.messages.CMIMessageSeverity
All Implemented Interfaces:
Serializable, Comparable<CMIMessageSeverity>

public enum CMIMessageSeverity
extends Enum<CMIMessageSeverity>

Enumeration of the possible severities of a message.

Type Classification Type Classification:

This class is part of the Common Model Interface, so applications may reference it or call any method of this type, but they must not subclass it.


Enum Constant Summary
ERROR
          A message informing the user of a definite problem.
INFO
          A message informing the user of a neutral status within the system.
SUCCESS
          A message confirming that an action has been successfully completed.
WARNING
          A message informing the user of a potential problem.
 
Method Summary
static CMIMessageSeverity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CMIMessageSeverity[] 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

SUCCESS

public static final CMIMessageSeverity SUCCESS
A message confirming that an action has been successfully completed.


INFO

public static final CMIMessageSeverity INFO
A message informing the user of a neutral status within the system.


WARNING

public static final CMIMessageSeverity WARNING
A message informing the user of a potential problem.


ERROR

public static final CMIMessageSeverity ERROR
A message informing the user of a definite problem.

Method Detail

values

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

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

valueOf

public static CMIMessageSeverity 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
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] FRAMEWORK [sap.com] tc/cm/ejb/api api BC-JAS-EJB
[sap.com] FRAMEWORK [sap.com] tc/cmi default BC-WD-JAV-RUN


Copyright 2014 SAP AG Complete Copyright Notice