public class Abort extends TransformationUtility<Abort>
TransformationUtility.executeIf(String)
or TransformationUtility.executeUnless(String)
UTILITY_NAME_SYNTAX
Constructor and Description |
---|
Abort()
This transformation utility abort the transformation.
|
Abort(java.lang.String abortionMessage)
This transformation utility abort the transformation.
|
Modifier and Type | Method and Description |
---|---|
protected ExecutionResult |
execution(java.io.File transformedAppFolder,
TransformationContext transformationContext)
The implementation execution of this transformation utility.
|
java.lang.String |
getDescription()
Returns a short one line, but SPECIFIC, description about the transformation
utility, including mentioning the files and/or folders
to be manipulated.
|
Abort |
setAbortionMessage(java.lang.String abortionMessage)
Set the reason to abort the transformation
|
abortOnFailure, abortOnFailure, absolute, absolute, applyPropertiesFromContext, checkDependencies, checkForBlankString, checkForEmptyString, checkForNull, clone, copy, dependsOn, equals, executeIf, executeIf, executeUnless, getAbortionMessage, getAbsoluteFile, getContextAttributeName, getDependencies, getIfConditionAttributeName, getName, getOrder, getParent, getRelativePath, getRelativePath, getSimpleClassName, getTransformationTemplate, getUnlessConditionAttributeName, hasBeenPerformed, hashCode, hashCode, isAbortOnFailure, isFileSet, isSaveResult, normalizeRelativePathSeparator, perform, relative, set, setContextAttributeName, setName, setParent, setSaveResult, toString, wasFileExplicitlySet
public Abort()
TransformationUtility.executeIf(String)
or TransformationUtility.executeUnless(String)
public Abort(java.lang.String abortionMessage)
TransformationUtility.executeIf(String)
or TransformationUtility.executeUnless(String)
abortionMessage
- the reason to abort the transformation;public Abort setAbortionMessage(java.lang.String abortionMessage)
abortionMessage
- the reason to abort the transformationpublic java.lang.String getDescription()
TransformationUtility
getDescription
in class TransformationUtility<Abort>
protected ExecutionResult execution(java.io.File transformedAppFolder, TransformationContext transformationContext)
TransformationUtility
TransformationUtility.isSaveResult()
returns false.
ExecutionResult
error object.execution
in class TransformationUtility<Abort>
transformedAppFolder
- the folder where the transformed application code istransformationContext
- the transformation context object