| |||||||||||
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 List | children
The message. |
protected int | code
The code. |
protected List | data
The data. |
protected String | message
The message. |
protected int | severity
The severity. |
protected 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,
String source,
int code,
String message,
Object[] data)
| |
BasicDiagnostic(String source,
int code,
List children,
String message,
Object[] data)
| |
BasicDiagnostic(String source,
int code,
String message,
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 List | dataAsList(Object[] data)
|
List | getChildren()
Returns the list of child diagnostics. |
int | getCode()
Returns source-specific identity code. |
List | getData()
Returns the arbitrary associated list of data. |
String | getMessage()
Returns a message describing the situation. |
int | getSeverity()
Returns an indicator of the severity of the problem. |
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. |
String | toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int severity
protected String message
protected List children
protected List data
protected String source
protected int code
Constructor Detail |
public BasicDiagnostic(String source, int code, String message, Object[] data)
public BasicDiagnostic(int severity, String source, int code, String message, Object[] data)
public BasicDiagnostic(String source, int code, List children, String message, Object[] data)
Method Detail |
protected List dataAsList(Object[] data)
public int getSeverity()
public String getMessage()
public List getData()
public List getChildren()
public String getSource()
public int getCode()
public void add(Diagnostic diagnostic)
public void addAll(Diagnostic diagnostic)
public void merge(Diagnostic diagnostic)
public int recomputeSeverity()
public static IStatus toIStatus(Diagnostic diagnostic)
public 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 |