Class DeleteFileRenderer
- java.lang.Object
-
- science.aist.gtf.transformation.renderer.AbstractConditionalTransformationRenderer<R,GeneratorTemplate,S>
-
- science.aist.gtf.template.impl.renderer.AbstractGeneratorTemplateRenderer<TemplateTaskResult,TemplateTask>
-
- science.aist.gtf.template.impl.renderer.DeleteFileRenderer
-
- All Implemented Interfaces:
GeneratorTemplateRenderer<TemplateTaskResult,TemplateTask>
,TransformationRender<Optional<TemplateTaskResult>,TemplateTaskResult,GeneratorTemplate,TemplateTask>
public class DeleteFileRenderer extends AbstractGeneratorTemplateRenderer<TemplateTaskResult,TemplateTask>
Task to delete a file
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description DeleteFileRenderer(RendererCondition<TemplateTask> rendererCondition, org.springframework.util.PropertyPlaceholderHelper propertyPlaceholderHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateTaskResult
createElement()
Creates a new element same as the one which is renderedTemplateTaskResult
executeTask(TemplateTaskResult taskResult, GeneratorTemplate generatorTemplate, TemplateTask task)
Executes a given task-
Methods inherited from class science.aist.gtf.template.impl.renderer.AbstractGeneratorTemplateRenderer
mapProperties, renderElement
-
-
-
-
Constructor Detail
-
DeleteFileRenderer
public DeleteFileRenderer(RendererCondition<TemplateTask> rendererCondition, org.springframework.util.PropertyPlaceholderHelper propertyPlaceholderHelper)
-
-
Method Detail
-
executeTask
public TemplateTaskResult executeTask(TemplateTaskResult taskResult, GeneratorTemplate generatorTemplate, TemplateTask task)
Description copied from interface:GeneratorTemplateRenderer
Executes a given task- Specified by:
executeTask
in interfaceGeneratorTemplateRenderer<TemplateTaskResult,TemplateTask>
- Overrides:
executeTask
in classAbstractGeneratorTemplateRenderer<TemplateTaskResult,TemplateTask>
- Parameters:
taskResult
- the task resultgeneratorTemplate
- the generator templatetask
- the task that should be executed- Returns:
- the result of the task
-
createElement
public TemplateTaskResult createElement()
Description copied from interface:TransformationRender
Creates a new element same as the one which is rendered- Specified by:
createElement
in interfaceTransformationRender<Optional<TemplateTaskResult>,TemplateTaskResult,GeneratorTemplate,TemplateTask>
- Overrides:
createElement
in classAbstractGeneratorTemplateRenderer<TemplateTaskResult,TemplateTask>
- Returns:
- the new element
-
-