com.scooterframework.tools.common
Class FileTransformerGenerator

java.lang.Object
  extended by com.scooterframework.tools.common.GeneratorImpl
      extended by com.scooterframework.tools.common.FileTransformerGenerator
All Implemented Interfaces:
Generator

public class FileTransformerGenerator
extends GeneratorImpl

This class processes a file.


Field Summary
 
Fields inherited from class com.scooterframework.tools.common.GeneratorImpl
DIRECTORY_NAME_SRC, DIRECTORY_NAME_TEST, FILE_EXTENSION_JAVA, FILE_EXTENSION_JSP, FILE_EXTENSION_PROPERTIES, FILE_EXTENSION_YAML, FUNCTIONAL_TEST, linebreak, templateFilePath, UNIT_TEST
 
Fields inherited from interface com.scooterframework.tools.common.Generator
TEMPLATE_PARSER_Q, TEMPLATE_PARSER_ST, TEMPLATE_PARSER_TYPE
 
Constructor Summary
FileTransformerGenerator(java.lang.String sourceFileFullPath, java.util.Map<java.lang.String,java.lang.String> transformProperties)
           
FileTransformerGenerator(java.lang.String sourceFileFullPath, java.lang.String targetFileFullPath, java.util.Map<java.lang.String,java.lang.String> transformProperties)
           
 
Method Summary
protected  java.lang.String getOutputFileName()
           
protected  java.lang.String getRelativePathToOutputFile()
           
protected  java.lang.String getRootPath()
           
protected  java.util.Map<java.lang.String,java.lang.String> getTemplateProperties()
           
 void transform()
           
 
Methods inherited from class com.scooterframework.tools.common.GeneratorImpl
escape, generate, generate, generate, generate, getProperty, getTemplateContent, getTemplateFileContent, isEmpty, log, processTemplateContent, renderContent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransformerGenerator

public FileTransformerGenerator(java.lang.String sourceFileFullPath,
                                java.util.Map<java.lang.String,java.lang.String> transformProperties)

FileTransformerGenerator

public FileTransformerGenerator(java.lang.String sourceFileFullPath,
                                java.lang.String targetFileFullPath,
                                java.util.Map<java.lang.String,java.lang.String> transformProperties)
Method Detail

transform

public void transform()

getTemplateProperties

protected java.util.Map<java.lang.String,java.lang.String> getTemplateProperties()
Specified by:
getTemplateProperties in class GeneratorImpl

getRootPath

protected java.lang.String getRootPath()
Specified by:
getRootPath in class GeneratorImpl

getRelativePathToOutputFile

protected java.lang.String getRelativePathToOutputFile()
Specified by:
getRelativePathToOutputFile in class GeneratorImpl

getOutputFileName

protected java.lang.String getOutputFileName()
Specified by:
getOutputFileName in class GeneratorImpl