org.eclipse.cdt.debug.core.model
Interface ICDebugElementStatus

All Known Implementing Classes:
AbstractCValue, AbstractCVariable, CCoreFileDebugTarget, CDebugElement, CDebugTarget, CDummyStackFrame, CExpression, CFloatingPointValue, CGlobalValue, CGlobalVariable, CIndexedValue, CLocalVariable, CMemoryBlockExtension, CModule, CRegister, CRegisterGroup, CSignal, CStackFrame, CThread, CValue, CVariable, Disassembly

public interface ICDebugElementStatus

Represents the status of a C/C++ debug model element.


Field Summary
static int ERROR
          Status severity constant (value 2) indicating indicating this status represents an error.
static int OK
          Status severity constant (value 0) indicating this status represents the nominal case.
static int WARNING
          Status severity constant (value 1) indicating indicating this status represents a warning.
 
Method Summary
 java.lang.String getMessage()
          Returns the message describing the outcome.
 int getSeverity()
          Returns the severity.
 boolean isOK()
          Returns whether this status indicates everything is okay (neither warning, nor error).
 

Field Detail

OK

static final int OK
Status severity constant (value 0) indicating this status represents the nominal case.

See Also:
Constant Field Values

WARNING

static final int WARNING
Status severity constant (value 1) indicating indicating this status represents a warning.

See Also:
Constant Field Values

ERROR

static final int ERROR
Status severity constant (value 2) indicating indicating this status represents an error.

See Also:
Constant Field Values
Method Detail

isOK

boolean isOK()
Returns whether this status indicates everything is okay (neither warning, nor error).

Returns:
true if this status has severity OK, and false otherwise

getSeverity

int getSeverity()
Returns the severity. The severities are as follows (in descending order):

Returns:
the severity: one of OK, ERROR, or WARNING

getMessage

java.lang.String getMessage()
Returns the message describing the outcome.

Returns:
a message