|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ProblemHandler.Severity>
org.eclipse.ocl.lpg.ProblemHandler.Severity
public static enum ProblemHandler.Severity
Standard problem severities. The values are defined in increasing order of their severity.
Enum Constant Summary | |
---|---|
CANCEL
Severity constant indicating a deliberate cancellation of the parsing operation by the user. |
|
ERROR
Severity constant indicating an error problem that does not prevent the parser from proceeding, but which does indicate an ill-formed construct. |
|
FATAL
Severity constant indicating an error problem that prevents the parser from continuing to process the remainder of the input. |
|
INFO
Severity constant indicating an informational message that, really, is not a problem but a hint or suggestion. |
|
OK
Severity constant indicating absence of any problem. |
|
WARNING
Severity constant indicating a warning problem. |
Method Summary | |
---|---|
int |
getDiagnosticSeverity()
|
boolean |
isOK()
Am I the "OK" severity? |
java.lang.String |
toString()
|
static ProblemHandler.Severity |
valueOf(java.lang.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 are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ProblemHandler.Severity OK
Diagnostic
severity
Diagnostic.OK
and Eclipse IStatus.OK.
public static final ProblemHandler.Severity INFO
Diagnostic
severity
Diagnostic.INFO
and Eclipse IStatus.INFO.
public static final ProblemHandler.Severity WARNING
Diagnostic
severity
Diagnostic.WARNING
and Eclipse IStatus.WARNING.
public static final ProblemHandler.Severity ERROR
Diagnostic
severity
Diagnostic.ERROR
and Eclipse IStatus.ERROR.
public static final ProblemHandler.Severity FATAL
Diagnostic
severity
Diagnostic.ERROR
and Eclipse IStatus.ERROR,
because these frameworks do not distinguish between fatal
and non-fatal conditions.
public static final ProblemHandler.Severity CANCEL
Diagnostic
severity
Diagnostic.CANCEL
and Eclipse IStatus.CANCEL.
Cancellation in both of these frameworks, and in OCL, does
not actually indicate an error condition despite its having
the highest value. However, an operation that was canceled
is incomplete and any results produced are necessarily invalid
as in the case of FATAL
errors.
Method Detail |
---|
public static ProblemHandler.Severity[] values()
for (ProblemHandler.Severity c : ProblemHandler.Severity.values()) System.out.println(c);
public static ProblemHandler.Severity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getDiagnosticSeverity()
public boolean isOK()
OK
public java.lang.String toString()
toString
in class java.lang.Enum<ProblemHandler.Severity>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |