fr.paris.lutece.plugins.pluginwizard.service.generator
Class AbstractFileGenerator

java.lang.Object
  extended by fr.paris.lutece.plugins.pluginwizard.service.generator.AbstractGenerator
      extended by fr.paris.lutece.plugins.pluginwizard.service.generator.AbstractFileGenerator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
PluginXmlGenerator, PomGenerator, PropertiesGenerator, SpringContextXmlGenerator

public abstract class AbstractFileGenerator
extends AbstractGenerator

Abstract Generator


Constructor Summary
AbstractFileGenerator()
           
 
Method Summary
protected  Map generateFile(PluginModel pm)
          Produces the file code in a map
protected  String getCode(PluginModel pm)
          Produces the code
protected abstract  String getFilename(PluginModel pm)
          Get the filename
protected  String getFilePath(PluginModel pm)
          Produces the code
 String getPath()
          Returns the Path
 void setPath(String strPath)
          Sets the Path
 
Methods inherited from class fr.paris.lutece.plugins.pluginwizard.service.generator.AbstractGenerator
build, build, build, build, getFilePath, getFirstCaps, getModel, getTemplate, setTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.pluginwizard.service.generator.Generator
generate
 

Constructor Detail

AbstractFileGenerator

public AbstractFileGenerator()
Method Detail

getFilename

protected abstract String getFilename(PluginModel pm)
Get the filename

Parameters:
pm - The plugin model
Returns:
The filename

getPath

public String getPath()
Returns the Path

Returns:
The Path

setPath

public void setPath(String strPath)
Sets the Path

Parameters:
strPath - The Path

getCode

protected String getCode(PluginModel pm)
Produces the code

Parameters:
pm - the plugin model
Returns:
the code

getFilePath

protected String getFilePath(PluginModel pm)
Produces the code

Parameters:
pm - the plugin model
Returns:
the code

generateFile

protected Map generateFile(PluginModel pm)
Produces the file code in a map

Parameters:
pm - the plugin model
Returns:
the map


Copyright © 2013 Mairie de Paris. All Rights Reserved.