| java.lang.Object com.bostechcorp.cbesb.common.util.TemplateProcessorIO
TemplateProcessorIO | public class TemplateProcessorIO (Code) | | This is the main class witch will process templates. This class will replace all placeholders with
specified values. Placeholders ,in template file, are marked between "#" chars. (ie #placeholder#).
author: LPS |
Field Summary | |
final protected transient Log | logger |
logger | final protected transient Log logger(Code) | | |
TemplateProcessorIO | public TemplateProcessorIO(String fileIn, String fileOut, HashMap h)(Code) | | this is the Input/output and Filtering class. It reads changes, if
necessary and writes content to files
Parameters: fileIn - Parameters: fileOut - Parameters: packageName - Parameters: className - Parameters: methodName - |
createPathToFile | public boolean createPathToFile(String fileName)(Code) | | |
filterFile | public void filterFile() throws Exception(Code) | | after Holders, fileIn and FileOut are set, call
this metod to execute the process.
This method reads content of the input file, Filter/change it and write
the (changed) content to output file
nothing |
getHolders | public HashMap getHolders()(Code) | | Dictionary like structure, with holder as HashMap key and value to be
replaced as HashMap value.
the holders |
setFileIn | public void setFileIn(String fileIn)(Code) | | Parameters: fileIn - the fileIn to set |
setFileOut | public void setFileOut(String fileOut)(Code) | | Parameters: fileOut - the fileOut to set |
setHolders | public void setHolders(HashMap holders)(Code) | | Parameters: holders - the holders to set |
setTranslateOnce | public void setTranslateOnce(boolean translateOnce)(Code) | | If translate once is true then after first
translation the placeholder will be removed. And future
occurences will not be processed.
Parameters: translateOnce - the translateOnce to set |
translateOnce | public boolean translateOnce()(Code) | | If translate once is true then after first
translation the placeholder will be removed. And future
occurences will not be processed.
the translateOnce () |
|
|