org.mockcentral.editor.nodes.problem
Enum NodeProblemSeverity

java.lang.Object
  extended by java.lang.Enum<NodeProblemSeverity>
      extended by org.mockcentral.editor.nodes.problem.NodeProblemSeverity
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NodeProblemSeverity>

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

Enum defining severity levels to be associated with NodeProblemCategory values.

Author:
David Hutchinson

Enum Constant Summary
ERROR
          Value indicating an error severity.
IGNORE
          Value indicating an ignorable severity.
WARNING
          Value indicating a warning severity.
 
Method Summary
 java.lang.String getLabel()
          Returns the String.
static NodeProblemSeverity valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NodeProblemSeverity[] 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 NodeProblemSeverity ERROR
Value indicating an error severity.


WARNING

public static final NodeProblemSeverity WARNING
Value indicating a warning severity.


IGNORE

public static final NodeProblemSeverity IGNORE
Value indicating an ignorable severity.

Method Detail

values

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

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

valueOf

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

getLabel

public java.lang.String getLabel()
Returns the String.

Returns:
the String.