public class ListDirectoryPathRule extends AbstractRule
loggerName, postMethods, preMethods, sessionRef
arguments, 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, toString
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, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected 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 IOExceptionRuleException
public 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 ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- If arguments are wrong.DIRECTORY
,
COLUMNNAME
,
RECURSIVE
public 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 ExecutableIF
execute
in class AbstractRule
ExecutableException
- If something went wrong.public void terminate() throws TerminationException
terminate
in interface ExecutableIF
terminate
in class AbstractRule
TerminationException
- If something went wrong.