|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.emf.common.util.BasicDiagnostic
A basic implementation of a diagostic that that also acts as a chain.
| Field Summary | |
protected java.util.List |
children
The message. |
protected int |
code
The code. |
protected java.util.List |
data
The data. |
protected java.lang.String |
message
The message. |
protected int |
severity
The severity. |
protected java.lang.String |
source
The source. |
| Fields inherited from interface org.eclipse.emf.common.util.Diagnostic |
CANCEL, ERROR, INFO, OK, OK_INSTANCE, WARNING |
| Constructor Summary | |
BasicDiagnostic(int severity,
java.lang.String source,
int code,
java.lang.String message,
java.lang.Object[] data)
|
|
BasicDiagnostic(java.lang.String source,
int code,
java.util.List children,
java.lang.String message,
java.lang.Object[] data)
|
|
BasicDiagnostic(java.lang.String source,
int code,
java.lang.String message,
java.lang.Object[] data)
|
|
| Method Summary | |
void |
add(Diagnostic diagnostic)
Adds the diagnostic to the chain. |
void |
addAll(Diagnostic diagnostic)
Adds the children of the diagnostic to the chain. |
protected java.util.List |
dataAsList(java.lang.Object[] data)
|
java.util.List |
getChildren()
Returns the list of child diagnostics. |
int |
getCode()
Returns source-specific identity code. |
java.util.List |
getData()
Returns the arbitrary associated list of data. |
java.lang.String |
getMessage()
Returns a message describing the situation. |
int |
getSeverity()
Returns an indicator of the severity of the problem. |
java.lang.String |
getSource()
Returns the unique identifier of the source. |
void |
merge(Diagnostic diagnostic)
If the diagnostic has children,
adds those children,
otherwise, adds the diagnostic. |
int |
recomputeSeverity()
|
static IStatus |
toIStatus(Diagnostic diagnostic)
Return the diagnostic viewed as an IStatus. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int severity
getSeverity()protected java.lang.String message
getMessage()protected java.util.List children
getMessage()protected java.util.List data
getData()protected java.lang.String source
getSource()protected int code
getCode()| Constructor Detail |
public BasicDiagnostic(java.lang.String source,
int code,
java.lang.String message,
java.lang.Object[] data)
public BasicDiagnostic(int severity,
java.lang.String source,
int code,
java.lang.String message,
java.lang.Object[] data)
public BasicDiagnostic(java.lang.String source,
int code,
java.util.List children,
java.lang.String message,
java.lang.Object[] data)
| Method Detail |
protected java.util.List dataAsList(java.lang.Object[] data)
public int getSeverity()
Diagnostic
getSeverity in interface Diagnosticpublic java.lang.String getMessage()
Diagnostic
getMessage in interface Diagnosticpublic java.util.List getData()
Diagnostic
getData in interface Diagnosticpublic java.util.List getChildren()
Diagnosticdiagnostics.
getChildren in interface Diagnosticpublic java.lang.String getSource()
Diagnostic
getSource in interface Diagnosticpublic int getCode()
Diagnosticsource-specific identity code.
getCode in interface Diagnosticpublic void add(Diagnostic diagnostic)
DiagnosticChain
add in interface DiagnosticChainpublic void addAll(Diagnostic diagnostic)
DiagnosticChainchildren of the diagnostic to the chain.
addAll in interface DiagnosticChainpublic void merge(Diagnostic diagnostic)
DiagnosticChainchildren,
adds those children,
otherwise, adds the diagnostic.
merge in interface DiagnosticChainpublic int recomputeSeverity()
public static IStatus toIStatus(Diagnostic diagnostic)
IStatus.
public java.lang.String toString()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||