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, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected 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
AoException
protected 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.MalformedURLException
java.net.URISyntaxException
AoException
protected void DeleteEmptyDirsMultiVolume() throws AoException, java.net.MalformedURLException, java.net.URISyntaxException
AoException,
- MalformedURLException, URISyntaxExceptionAoException
java.net.MalformedURLException
java.net.URISyntaxException
public void execute() throws ExecutableException
ExecutableIF
execute
in interface ExecutableIF
ExecutableException
- if execution fails.public void terminate() throws TerminationException
ExecutableIF
terminate
in interface ExecutableIF
TerminationException
- if termination fails.public void init() throws InitializationFailedException
AbstractImplementation
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- if the initialization fails.public void setValue(NameValueUnit[][] nvu) throws RuleException
RuleException