edu.nrao.sss.validation
Enum FailureSeverity

java.lang.Object
  extended by java.lang.Enum<FailureSeverity>
      extended by edu.nrao.sss.validation.FailureSeverity
All Implemented Interfaces:
Serializable, Comparable<FailureSeverity>

public enum FailureSeverity
extends Enum<FailureSeverity>

An indication of how severe a ValidationFailure is.

Version Info:

$Revision: 329 $
$Date: 2007-02-06 11:43:05 -0700 (Tue, 06 Feb 2007) $
$Author: dharland $

Since:
2007-02-02
Author:
David M. Harland

Enum Constant Summary
CONCERN
          A moderate severity level that might allow an application to proceed with little or no trouble.
ERROR
          A very high severity level that is likely to cause problems for an application.
FATAL
          A severity level so high that it could cause an application to abort.
WARNING
          A severity level that indicates a potentially harmful situation.
 
Method Summary
static FailureSeverity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FailureSeverity[] 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

FATAL

public static final FailureSeverity FATAL
A severity level so high that it could cause an application to abort.


ERROR

public static final FailureSeverity ERROR
A very high severity level that is likely to cause problems for an application.


WARNING

public static final FailureSeverity WARNING
A severity level that indicates a potentially harmful situation.


CONCERN

public static final FailureSeverity CONCERN
A moderate severity level that might allow an application to proceed with little or no trouble.

Method Detail

values

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

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

valueOf

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


Copyright © 2009. All Rights Reserved.