public static enum ProblemHandler.Severity extends Enum<ProblemHandler.Severity>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 are declared.
|
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.public static ProblemHandler.Severity[] values()
for (ProblemHandler.Severity c : ProblemHandler.Severity.values()) System.out.println(c);
public static ProblemHandler.Severity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getDiagnosticSeverity()
public boolean isOK()
OK
public String toString()
toString
in class Enum<ProblemHandler.Severity>
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.