public class RemoveEmptyAvalonDirectories extends AbstractImplementation implements ExecutableIF
| Modifier and Type | Field and Description |
|---|---|
protected AoSession |
aoSession |
protected java.lang.String |
fileMode |
protected java.lang.String[] |
fileModes |
protected java.lang.String |
fileNotation |
protected java.lang.String[] |
fileNotations |
protected java.lang.String |
fileRoot |
protected java.util.HashMap<java.lang.String,java.lang.String> |
symbolMap |
arguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
RemoveEmptyAvalonDirectories() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteDirectory(java.io.File dir,
boolean deleteDir)
Delete a directory when the directory is empty.
|
protected void |
DeleteEmptyDirsMultiVolume()
Delete empty avalon directories in multiple volume filemode.
|
protected void |
DeleteEmptyDirsSingleVolume()
Delete empty avalon directories in single volume filemode.
|
void |
execute()
Execute the program.
|
protected java.lang.String |
getSymbol(java.lang.String symbol) |
void |
init()
Initialize the work.
|
void |
setValue(NameValueUnit[][] nvu) |
protected java.lang.String |
substituteSymbol(java.lang.String key)
Substitute the symbol of the key.
|
void |
terminate()
Terminate the execution.
|
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, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getDescriptor, setArguments, setContext, setDescriptorprotected AoSession aoSession
protected java.lang.String fileRoot
protected java.lang.String fileMode
protected java.lang.String fileNotation
protected java.lang.String[] fileModes
protected java.lang.String[] fileNotations
protected java.util.HashMap<java.lang.String,java.lang.String> symbolMap
protected java.lang.String getSymbol(java.lang.String symbol)
throws AoException
AoExceptionprotected java.lang.String substituteSymbol(java.lang.String key)
throws AoException
key - the key with symbolAoException - any occurring ASAM ODS Exceptionprotected void deleteDirectory(java.io.File dir,
boolean deleteDir)
dir - The directory to delete.deleteDir - delete the directory.protected void DeleteEmptyDirsSingleVolume()
throws java.net.MalformedURLException,
java.net.URISyntaxException,
java.net.MalformedURLException,
java.net.URISyntaxException,
AoException
MalformedURLException, - URISyntaxException, AoExceptionjava.net.MalformedURLExceptionjava.net.URISyntaxExceptionAoExceptionprotected void DeleteEmptyDirsMultiVolume()
throws AoException,
java.net.MalformedURLException,
java.net.URISyntaxException
AoException, - MalformedURLException, URISyntaxExceptionAoExceptionjava.net.MalformedURLExceptionjava.net.URISyntaxExceptionpublic void execute()
throws ExecutableException
ExecutableIFexecute in interface ExecutableIFExecutableException - if execution fails.public void terminate()
throws TerminationException
ExecutableIFterminate in interface ExecutableIFTerminationException - if termination fails.public void init()
throws InitializationFailedException
AbstractImplementationinit in interface ImplementationIFinit in class AbstractImplementationInitializationFailedException - if the initialization fails.public void setValue(NameValueUnit[][] nvu) throws RuleException
RuleException