public class DeleteEmptyDir extends AbstractImplementation implements ExecutableIF
Modifier and Type | Field and Description |
---|---|
protected boolean |
deleteRootDir |
protected java.lang.String |
rootDir |
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
DeleteEmptyDir()
Constructur.
|
Modifier and Type | Method and Description |
---|---|
protected void |
deleteDirectory(java.io.File dir,
boolean deleteDir)
Delete a directory when the directory is empty.
|
void |
execute()
The execute method that delete
|
void |
init()
Initialization, reads all arguments
|
void |
terminate()
Termination, nothing to do
|
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected java.lang.String rootDir
protected boolean deleteRootDir
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- -
When one of the required arguments does not exist.com.highqsoft.xsd.ImplentationIF#init()
public void execute() throws ExecutableException
execute
in interface ExecutableIF
ExecutableException
- if execution fails.ExecutableIF.execute()
protected void deleteDirectory(java.io.File dir, boolean deleteDir)
dir
- The directory to delete.deleteDir
- delete the directory.public void terminate() throws TerminationException
terminate
in interface ExecutableIF
TerminationException
- if termination fails.