public class ListDirectoryPathRule extends AbstractRule
loggerName, postMethods, preMethods, sessionRefarguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
ListDirectoryPathRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Empty.
|
NameValueUnit[][] |
getValue()
Lists the path of the files.
|
protected void |
handleDirectory(java.util.Vector<java.lang.String> files,
java.io.File dir)
Handle the files of a directory.
|
void |
init()
Reads and verifies all arguments.
|
void |
setValue(NameValueUnit[][] nvu)
Empty.
|
void |
terminate()
Empty.
|
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, toString, toString, toStringaddAttributesToNameValueUnitArray, 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, wait, wait, waitgetContext, getDescriptor, setArguments, setContext, setDescriptorprotected void handleDirectory(java.util.Vector<java.lang.String> files,
java.io.File dir)
throws RuleException
files - the list with the resulting paths of the files.dir - the currect directoryjava.io.IOException - any occurring IOExceptionRuleExceptionpublic NameValueUnit[][] getValue() throws RuleException
Enumerates the path of files.
RuleException - If something went wrong.RuleIF.setValue(NameValueUnit[][] nvu)public void init()
throws InitializationFailedException
init in interface ImplementationIFinit in class AbstractImplementationInitializationFailedException - If arguments are wrong.DIRECTORY,
COLUMNNAME,
RECURSIVEpublic void setValue(NameValueUnit[][] nvu) throws RuleException
nvu - - A 2D NameValueUnit.RuleException - If something went wrong.com.highqsoft.xsd.AbstractImplementation#setValue()public void execute()
throws ExecutableException
execute in interface ExecutableIFexecute in class AbstractRuleExecutableException - If something went wrong.public void terminate()
throws TerminationException
terminate in interface ExecutableIFterminate in class AbstractRuleTerminationException - If something went wrong.