Package org.eclipse.m2m.internal.qvt.oml
Class ExecutionDiagnosticImpl
- java.lang.Object
-
- org.eclipse.emf.common.util.BasicDiagnostic
-
- org.eclipse.m2m.internal.qvt.oml.ExecutionDiagnosticImpl
-
- All Implemented Interfaces:
Diagnostic,DiagnosticChain,ExecutionDiagnostic
public final class ExecutionDiagnosticImpl extends BasicDiagnostic implements ExecutionDiagnostic
A diagnostic class representing the result status of a transformation execution.- Since:
- 3.0
- Interface is not intended to be extended by clients.
- This class is not intended to be sub-classed by clients.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.common.util.Diagnostic
CANCEL, CANCEL_INSTANCE, ERROR, INFO, OK, OK_INSTANCE, WARNING
-
Fields inherited from interface org.eclipse.m2m.qvt.oml.ExecutionDiagnostic
EXCEPTION_THROWN, FATAL_ASSERTION, MODEL_PARAMETER_MISMATCH, SOURCE, TRANSFORMATION_LOAD_FAILED, USER_INTERRUPTED, VALIDATION
-
-
Constructor Summary
Constructors Constructor Description ExecutionDiagnosticImpl(int severity, int code, String message)ExecutionDiagnosticImpl(int severity, int code, String message, Object[] data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecutionDiagnosticImplcreateOkInstance()List<ExecutionStackTraceElement>getStackTrace()Gets the stack trace that resulted from interrupted execution either by user termination request or exception thrownvoidprintStackTrace(PrintWriter writer)Prints the execution stack-trace (if available) of this diagnostic to the specified print writer.voidsetStackTrace(List<? extends ExecutionStackTraceElement> stackElements)StringtoString()-
Methods inherited from class org.eclipse.emf.common.util.BasicDiagnostic
add, addAll, getChildren, getCode, getData, getException, getMessage, getSeverity, getSource, merge, recomputeSeverity, toDiagnostic, toDiagnostic, toIStatus, toIStatus
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.common.util.Diagnostic
getChildren, getCode, getData, getException, getMessage, getSeverity, getSource
-
Methods inherited from interface org.eclipse.emf.common.util.DiagnosticChain
add, addAll, merge
-
-
-
-
Method Detail
-
setStackTrace
public void setStackTrace(List<? extends ExecutionStackTraceElement> stackElements)
-
getStackTrace
public List<ExecutionStackTraceElement> getStackTrace()
Gets the stack trace that resulted from interrupted execution either by user termination request or exception thrown- Specified by:
getStackTracein interfaceExecutionDiagnostic- Returns:
- list of trace elements or an empty list
-
printStackTrace
public void printStackTrace(PrintWriter writer)
Prints the execution stack-trace (if available) of this diagnostic to the specified print writer.- Specified by:
printStackTracein interfaceExecutionDiagnostic- Parameters:
writer-PrintWriterto use for output
-
toString
public String toString()
- Overrides:
toStringin classBasicDiagnostic
-
createOkInstance
public static ExecutionDiagnosticImpl createOkInstance()
-
-