org.mockcentral.editor.nodes.problem
Enum NodeProblemCategory

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

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

An Enum defining the various categories for NodeProblem instances.

Author:
David Hutchinson

Enum Constant Summary
INVALID_CLASS
          Value indicating that a class name is invalid.
INVALID_CONSTANT
          Value indicating that a constant or enum value is invalid.
INVALID_CONSTRUCTOR
          Value indicating that a constructor definition is invalid.
NON_INTERFACE_METHOD
          Value indicating that method definition does not correspond to an interface method for an enclosing class.
NOT_THROWABLE
          Value indicating that a class selected for use in a "throws" clause is not a Throwable.
UNKNOWN_PROXY
           
UNSPECIFIED
          Value indicating an unspecified problem.
 
Method Summary
 NodeProblemSeverity getDefaultSeverity()
          Returns the NodeProblemSeverity for the value.
 java.lang.String getLabel()
          Returns the label.
static NodeProblemCategory valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NodeProblemCategory[] 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

INVALID_CLASS

public static final NodeProblemCategory INVALID_CLASS
Value indicating that a class name is invalid.


INVALID_CONSTRUCTOR

public static final NodeProblemCategory INVALID_CONSTRUCTOR
Value indicating that a constructor definition is invalid.


UNKNOWN_PROXY

public static final NodeProblemCategory UNKNOWN_PROXY

INVALID_CONSTANT

public static final NodeProblemCategory INVALID_CONSTANT
Value indicating that a constant or enum value is invalid.


NON_INTERFACE_METHOD

public static final NodeProblemCategory NON_INTERFACE_METHOD
Value indicating that method definition does not correspond to an interface method for an enclosing class.


UNSPECIFIED

public static final NodeProblemCategory UNSPECIFIED
Value indicating an unspecified problem.


NOT_THROWABLE

public static final NodeProblemCategory NOT_THROWABLE
Value indicating that a class selected for use in a "throws" clause is not a Throwable.

Method Detail

values

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

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

valueOf

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

getDefaultSeverity

public NodeProblemSeverity getDefaultSeverity()
Returns the NodeProblemSeverity for the value.

Returns:
the NodeProblemSeverity the value.

getLabel

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

Returns:
the label.