org.eclipse.ocl.lpg
Enum ProblemHandler.Severity

java.lang.Object
  extended by java.lang.Enum<ProblemHandler.Severity>
      extended by org.eclipse.ocl.lpg.ProblemHandler.Severity
All Implemented Interfaces:
Serializable, Comparable<ProblemHandler.Severity>
Enclosing interface:
ProblemHandler

public static enum ProblemHandler.Severity
extends Enum<ProblemHandler.Severity>

Standard problem severities.

Since:
1.2

Enum Constant Summary
CANCEL
           
ERROR
           
FATAL
           
INFO
           
OK
           
WARNING
           
 
Method Summary
 int getDiagnosticSeverity()
           
 boolean isOK()
          Am I the "OK" severity?
 String toString()
           
static ProblemHandler.Severity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProblemHandler.Severity[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OK

public static final ProblemHandler.Severity OK

INFO

public static final ProblemHandler.Severity INFO

WARNING

public static final ProblemHandler.Severity WARNING

ERROR

public static final ProblemHandler.Severity ERROR

FATAL

public static final ProblemHandler.Severity FATAL

CANCEL

public static final ProblemHandler.Severity CANCEL
Method Detail

values

public static final ProblemHandler.Severity[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ProblemHandler.Severity c : ProblemHandler.Severity.values())
        System.out.println(c);

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

valueOf

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

getDiagnosticSeverity

public int getDiagnosticSeverity()

isOK

public boolean isOK()
Am I the "OK" severity?

Returns:
whether I am OK
See Also:
OK

toString

public String toString()
Overrides:
toString in class Enum<ProblemHandler.Severity>

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.