public class PerformResult
extends java.lang.Object
TransformationUtility
instance has been performed.Modifier and Type | Class and Description |
---|---|
static class |
PerformResult.Type
The type of result after the
TransformationUtility instance has been performed. |
Modifier and Type | Method and Description |
---|---|
R |
addWarning(java.lang.Exception arg0) |
protected void |
changeTypeOnWarning() |
protected boolean |
dependencyFailureCheck() |
static PerformResult |
error(TransformationUtility transformationUtility,
java.lang.Exception exception)
This means The TU failed, but not because of its utility execution itself, but because of an internal reason.
|
static PerformResult |
error(TransformationUtility transformationUtility,
java.lang.Exception exception,
java.lang.String details)
This means The TU failed, but not because of its utility execution itself, but because of an internal reason.
|
static PerformResult |
executionResult(TransformationUtility transformationUtility,
ExecutionResult executionResult)
This means the utility has been executed,
and the result type is defined based on the utility execution result type.
|
java.lang.String |
getDetails() |
java.lang.Exception |
getException() |
ExecutionResult |
getExecutionResult()
Return the
ExecutionResult object associated with this perform result |
S |
getSource() |
T |
getType() |
java.util.List<java.lang.Exception> |
getWarnings() |
protected boolean |
isExceptionType() |
R |
setDetails(java.lang.String arg0) |
protected R |
setException(java.lang.Exception arg0) |
protected R |
setType(T arg0) |
static PerformResult |
skippedCondition(TransformationUtility transformationUtility,
java.lang.String details)
This means the utility has not been executed
because its pre-requisite condition is not true
|
static PerformResult |
skippedDependency(TransformationUtility transformationUtility,
java.lang.String details)
This means the utility has not been executed because one or more
of its dependencies "failed".
|
public static PerformResult executionResult(TransformationUtility transformationUtility, ExecutionResult executionResult)
transformationUtility
- the TransformationUtility
object that produced this resultexecutionResult
- the utility execution resultPerformResult
object of type PerformResult.Type.EXECUTION_RESULT
public static PerformResult skippedCondition(TransformationUtility transformationUtility, java.lang.String details)
transformationUtility
- the TransformationUtility
object that produced this resultdetails
- details about the resultPerformResult
object of type PerformResult.Type.SKIPPED_DEPENDENCY
public static PerformResult skippedDependency(TransformationUtility transformationUtility, java.lang.String details)
TransformationUtility.dependsOn(String...)
for the dependency failure criteria definitiontransformationUtility
- the TransformationUtility
object that produced this resultdetails
- details about the resultPerformResult
object of type PerformResult.Type.SKIPPED_DEPENDENCY
public static PerformResult error(TransformationUtility transformationUtility, java.lang.Exception exception, java.lang.String details)
transformationUtility
- the TransformationUtility
object that produced this resultexception
- the exception to be registered to the result objectdetails
- details about the resultPerformResult
object of type PerformResult.Type.ERROR
public static PerformResult error(TransformationUtility transformationUtility, java.lang.Exception exception)
transformationUtility
- the TransformationUtility
object that produced this resultexception
- the exception to be registered to the result objectPerformResult
object of type PerformResult.Type.ERROR
protected void changeTypeOnWarning()
public ExecutionResult getExecutionResult()
ExecutionResult
object associated with this perform resultExecutionResult
object associated with this perform resultprotected 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()