public abstract class ExecutionResult<S,R,T> extends Object
TransformationUtility
instance has been executed.
This is an abstract type, the concrete classes TUExecutionResult
and TOExecutionResult
should
be used directly instead.TUExecutionResult
,
TOExecutionResult
Modifier and Type | Method and Description |
---|---|
R |
addWarning(Exception warning)
Add a new warning associated with this result.
|
protected abstract void |
changeTypeOnWarning()
This method is used to notify subclasses that
the result type might have to change due to the
addition of a warning.
|
protected abstract boolean |
dependencyFailureCheck()
Returns true if this result type falls to the dependency failure criteria,
which is stated in
TransformationUtility.dependsOn(String...) |
String |
getDetails()
Return the result details
|
Exception |
getException()
Return the exception object in case of types such as ERROR
|
S |
getSource()
Returns the source of this result, which could be for example
a transformation utility instance or a transformation
operation instance
|
T |
getType()
Returns the result type
|
List<Exception> |
getWarnings()
Return a list of warnings associated with this result.
|
protected abstract boolean |
isExceptionType()
Returns true if this result type is supposed to contain an exception,
such ERROR
|
R |
setDetails(String details) |
protected R |
setException(Exception exception)
Set the exception associated with this result.
|
protected R |
setType(T type) |
protected R setType(T type)
public R setDetails(String details)
protected R setException(Exception exception)
IllegalArgumentException
will be thrownexception
- associated with the execution resultpublic R addWarning(Exception warning)
warning
- the warning to be addedprotected abstract void changeTypeOnWarning()
protected abstract boolean isExceptionType()
protected abstract boolean dependencyFailureCheck()
TransformationUtility.dependsOn(String...)
public S getSource()
public T getType()
public String getDetails()
public Exception getException()
Copyright © 2018. All rights reserved.