public class TOExecutionResult extends ExecutionResult<TransformationOperation,TOExecutionResult,TOExecutionResult.Type>
TransformationOperation
instance has been executed.TOExecutionResult
Modifier and Type | Class and Description |
---|---|
static class |
TOExecutionResult.Type
The type of result after the
TransformationOperation instance has been executed. |
Modifier and Type | Method and Description |
---|---|
R |
addWarning(java.lang.Exception arg0) |
protected void |
changeTypeOnWarning() |
protected boolean |
dependencyFailureCheck() |
static TOExecutionResult |
error(TransformationOperation transformationOperation,
java.lang.Exception exception)
Creates and returns a new
TOExecutionResult.Type.ERROR result |
static TOExecutionResult |
error(TransformationOperation transformationOperation,
java.lang.Exception exception,
java.lang.String details)
Creates and returns a new
TOExecutionResult.Type.ERROR result |
java.lang.String |
getDetails() |
java.lang.Exception |
getException() |
S |
getSource() |
T |
getType() |
java.util.List<java.lang.Exception> |
getWarnings() |
protected boolean |
isExceptionType() |
static TOExecutionResult |
noOp(TransformationOperation transformationOperation,
java.lang.String details)
Creates and returns a new
TOExecutionResult.Type.NO_OP result |
R |
setDetails(java.lang.String arg0) |
protected R |
setException(java.lang.Exception arg0) |
protected R |
setType(T arg0) |
static TOExecutionResult |
success(TransformationOperation transformationOperation,
java.lang.String details)
Creates and returns a new
TOExecutionResult.Type.SUCCESS result |
static TOExecutionResult |
warning(TransformationOperation transformationOperation)
Creates and returns a new
TOExecutionResult.Type.WARNING result |
static TOExecutionResult |
warning(TransformationOperation transformationOperation,
java.lang.Exception exception)
Creates and returns a new
TOExecutionResult.Type.WARNING result |
static TOExecutionResult |
warning(TransformationOperation transformationOperation,
java.lang.Exception exception,
java.lang.String details)
Creates and returns a new
TOExecutionResult.Type.WARNING result |
static TOExecutionResult |
warning(TransformationOperation transformationOperation,
java.lang.String details)
Creates and returns a new
TOExecutionResult.Type.WARNING result |
public static TOExecutionResult noOp(TransformationOperation transformationOperation, java.lang.String details)
TOExecutionResult.Type.NO_OP
resulttransformationOperation
- the TransformationOperation
object that produced this resultdetails
- details about the resultpublic static TOExecutionResult success(TransformationOperation transformationOperation, java.lang.String details)
TOExecutionResult.Type.SUCCESS
resulttransformationOperation
- the TransformationOperation
object that produced this resultdetails
- details about the resultpublic static TOExecutionResult warning(TransformationOperation transformationOperation)
TOExecutionResult.Type.WARNING
resulttransformationOperation
- the TransformationOperation
object that produced this resultpublic static TOExecutionResult warning(TransformationOperation transformationOperation, java.lang.String details)
TOExecutionResult.Type.WARNING
resulttransformationOperation
- the TransformationOperation
object that produced this resultdetails
- details about the resultpublic static TOExecutionResult warning(TransformationOperation transformationOperation, java.lang.Exception exception)
TOExecutionResult.Type.WARNING
resulttransformationOperation
- the TransformationOperation
object that produced this resultexception
- the exception to be registered as warning to the result objectpublic static TOExecutionResult warning(TransformationOperation transformationOperation, java.lang.Exception exception, java.lang.String details)
TOExecutionResult.Type.WARNING
resulttransformationOperation
- the TransformationOperation
object that produced this resultexception
- the exception to be registered to the result objectdetails
- details about the resultpublic static TOExecutionResult error(TransformationOperation transformationOperation, java.lang.Exception exception)
TOExecutionResult.Type.ERROR
resulttransformationOperation
- the TransformationOperation
object that produced this resultexception
- the exception to be registered to the result objectpublic static TOExecutionResult error(TransformationOperation transformationOperation, java.lang.Exception exception, java.lang.String details)
TOExecutionResult.Type.ERROR
resulttransformationOperation
- the TransformationOperation
object that produced this resultexception
- the exception to be registered to the result objectdetails
- details about the resultprotected void changeTypeOnWarning()
protected boolean isExceptionType()
protected boolean dependencyFailureCheck()
protected R setType(T arg0)
public R setDetails(java.lang.String arg0)
protected R setException(java.lang.Exception arg0)
public R addWarning(java.lang.Exception arg0)
public S getSource()
public T getType()
public java.lang.String getDetails()
public java.lang.Exception getException()
public java.util.List<java.lang.Exception> getWarnings()