public class FileManager extends AbstractImplementation implements ExecutableIF
The operations are controlled by actions and options. Additionally filter a set of arguments may feed the file and directory filters.
The .
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
FileManager() |
Modifier and Type | Method and Description |
---|---|
java.io.File[] |
dir(java.lang.String filePattern) |
java.io.File[] |
dir(java.lang.String filePattern,
java.lang.Boolean recurse) |
void |
execute()
Performs the requests, set during initialize.
|
void |
init()
Verifies input and initializes local variables.
|
void |
terminate()
Dummy terminate
|
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
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- if arguments are wrong, invalid combined or missing.ACTION
,
DESTINATION
,
DIRECTORIES
,
EXCLUDEDIRECTORIES
,
EXCLUDEFILES
,
FILES
,
FORCE
,
FROM
,
OPTION
,
RECURSIVE
,
SOURCE
,
KEEPSOURCEDIRECTORY
,
UNTIL
public void execute() throws ExecutableException
execute
in interface ExecutableIF
ExecutableException
- if an internal error occurs.ExecutableIF.execute()
public void terminate() throws TerminationException
terminate
in interface ExecutableIF
TerminationException
- if termination fails.public java.io.File[] dir(java.lang.String filePattern)
public java.io.File[] dir(java.lang.String filePattern, java.lang.Boolean recurse)