org.eclipse.emf.common.util
Class BasicDiagnostic.DiagnosticWrapper

java.lang.Object
  extended by org.eclipse.emf.common.util.BasicDiagnostic.DiagnosticWrapper
All Implemented Interfaces:
Diagnostic
Enclosing class:
BasicDiagnostic

private static class BasicDiagnostic.DiagnosticWrapper
extends java.lang.Object
implements Diagnostic


Field Summary
protected  java.util.List<java.lang.Object> data
           
protected  org.eclipse.core.runtime.IStatus status
           
protected  java.util.List<Diagnostic> unmodifiableWrappedChildren
           
protected  java.util.List<Diagnostic> wrappedChildren
           
 
Fields inherited from interface org.eclipse.emf.common.util.Diagnostic
CANCEL, CANCEL_INSTANCE, ERROR, INFO, OK, OK_INSTANCE, WARNING
 
Constructor Summary
BasicDiagnostic.DiagnosticWrapper(org.eclipse.core.runtime.IStatus status)
           
 
Method Summary
 java.util.List<Diagnostic> basicGetChildren()
           
static Diagnostic convert(org.eclipse.core.runtime.IStatus status)
           
 java.util.List<Diagnostic> 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.Throwable getException()
          Returns the relevant low-level exception, or null if none.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

status

protected org.eclipse.core.runtime.IStatus status

wrappedChildren

protected java.util.List<Diagnostic> wrappedChildren

unmodifiableWrappedChildren

protected java.util.List<Diagnostic> unmodifiableWrappedChildren

data

protected java.util.List<java.lang.Object> data
Constructor Detail

BasicDiagnostic.DiagnosticWrapper

public BasicDiagnostic.DiagnosticWrapper(org.eclipse.core.runtime.IStatus status)
Method Detail

getCode

public int getCode()
Description copied from interface: Diagnostic
Returns source-specific identity code.

Specified by:
getCode in interface Diagnostic

getMessage

public java.lang.String getMessage()
Description copied from interface: Diagnostic
Returns a message describing the situation.

Specified by:
getMessage in interface Diagnostic

getSeverity

public int getSeverity()
Description copied from interface: Diagnostic
Returns an indicator of the severity of the problem.

Specified by:
getSeverity in interface Diagnostic

getSource

public java.lang.String getSource()
Description copied from interface: Diagnostic
Returns the unique identifier of the source.

Specified by:
getSource in interface Diagnostic

getException

public java.lang.Throwable getException()
Description copied from interface: Diagnostic
Returns the relevant low-level exception, or null if none.

Specified by:
getException in interface Diagnostic

basicGetChildren

public java.util.List<Diagnostic> basicGetChildren()

getChildren

public java.util.List<Diagnostic> getChildren()
Description copied from interface: Diagnostic
Returns the list of child diagnostics.

Specified by:
getChildren in interface Diagnostic

getData

public java.util.List<?> getData()
Description copied from interface: Diagnostic
Returns the arbitrary associated list of data. The first element is typically the object that is the primary source of the problem; the second element is typically some object describing the problematic feature or aspect of the primary source, and the remaining elements are additional objects associated with or describing the problem.

Specified by:
getData in interface Diagnostic

convert

public static Diagnostic convert(org.eclipse.core.runtime.IStatus status)


Copyright © 2001-2010 Eclipse Foundation. All Rights Reserved.