public class FilterFiles extends TransformationUtility<FilterFiles>
SingleCondition
,
returning in a sub-list of files.UTILITY_NAME_SYNTAX
Constructor and Description |
---|
FilterFiles()
Utility to filter a list of files based on a given
SingleCondition ,
returning in a sub-list of files |
FilterFiles(SingleCondition conditionTemplate)
Utility to filter a list of files based on a given
SingleCondition ,
returning in a sub-list of files |
Modifier and Type | Method and Description |
---|---|
protected TUExecutionResult |
execution(java.io.File transformedAppFolder,
TransformationContext transformationContext)
The implementation execution of this transformation utility.
|
SingleCondition |
getConditionTemplate()
Return the single condition template to be evaluated against all files
|
java.lang.String |
getDescription()
Returns a short one line, but SPECIFIC, description about the transformation
utility, including mentioning the files and/or folders
to be manipulated.
|
java.lang.String[] |
getFilesAttributes()
Return an array containing the name of transformation context attributes
that hold the list of files to be filtered
|
SingleCondition |
newConditionInstance(java.io.File file)
Creates a new single condition instance copying from this current
object, but setting the file it should perform against based
on the input parameters
|
FilterFiles |
setConditionTemplate(SingleCondition conditionTemplate)
Set the single condition template to be evaluated against all files
|
FilterFiles |
setFiles(java.lang.String... filesAttributes)
Sets one or more transformation context attributes that hold list of Files
which the single condition should be evaluated against.
|
protected FilterFiles |
setName(java.lang.String name)
Set this transformation utility instance name.
|
abortOnFailure, abortOnFailure, absolute, absolute, applyPropertiesFromContext, checkDependencies, checkForBlankString, checkForEmptyString, checkForNull, clone, copy, dependsOn, equals, executeIf, executeIf, executeUnless, getAbortionMessage, getAbsoluteFile, getContextAttributeName, getDependencies, getIfConditionAttributeName, getName, getOrder, getParent, getRelativePath, getRelativePath, getSimpleClassName, getTransformationTemplate, getUnlessConditionAttributeName, hasBeenPerformed, hashCode, hashCode, isAbortOnFailure, isFileSet, isSaveResult, normalizeRelativePathSeparator, perform, relative, set, setContextAttributeName, setParent, setSaveResult, toString, wasFileExplicitlySet
public FilterFiles()
SingleCondition
,
returning in a sub-list of filespublic FilterFiles(SingleCondition conditionTemplate)
SingleCondition
,
returning in a sub-list of filesconditionTemplate
- the single condition template to be evaluated against all filespublic FilterFiles setFiles(java.lang.String... filesAttributes)
filesAttributes
- one or more transformation context attributes that hold list
of Files which the condition should be evaluated againstpublic FilterFiles setConditionTemplate(SingleCondition conditionTemplate)
conditionTemplate
- the single condition template to be evaluated against all filesprotected FilterFiles setName(java.lang.String name)
TransformationUtility
setName
in class TransformationUtility<FilterFiles>
name
- transformation utility instance namepublic java.lang.String getDescription()
TransformationUtility
getDescription
in class TransformationUtility<FilterFiles>
public java.lang.String[] getFilesAttributes()
public SingleCondition getConditionTemplate()
protected TUExecutionResult execution(java.io.File transformedAppFolder, TransformationContext transformationContext)
TransformationUtility
TransformationUtility.isSaveResult()
returns false.
ExecutionResult
error object.execution
in class TransformationUtility<FilterFiles>
transformedAppFolder
- the folder where the transformed application code istransformationContext
- the transformation context objectpublic SingleCondition newConditionInstance(java.io.File file)
file
- the actual file to be performed against