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

java.lang.Object
  extended by fr.paris.lutece.plugins.pluginwizard.service.generator.AbstractGenerator
      extended by fr.paris.lutece.plugins.pluginwizard.service.generator.AbstractFileGenerator
          extended by fr.paris.lutece.plugins.pluginwizard.service.generator.PomGenerator
All Implemented Interfaces:
Generator

public class PomGenerator
extends AbstractFileGenerator

The Pom generator is responsible of generating a project object model used by maven


Constructor Summary
PomGenerator()
           
 
Method Summary
 Map generate(PluginModel pm)
          Visiting parts of the file tree structure
protected  String getCode(PluginModel pm)
          Produces the code
protected  String getFilename(PluginModel pm)
          Get the filename
 String getPath()
          Returns the Path
 
Methods inherited from class fr.paris.lutece.plugins.pluginwizard.service.generator.AbstractFileGenerator
generateFile, getFilePath, setPath
 
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
 

Constructor Detail

PomGenerator

public PomGenerator()
Method Detail

generate

public Map generate(PluginModel pm)
Visiting parts of the file tree structure

Parameters:
pm - The plugin model
Returns:
A hadh map with the name of the file and a string in which is found the corresponding source code

getCode

protected String getCode(PluginModel pm)
Produces the code

Overrides:
getCode in class AbstractFileGenerator
Parameters:
pm - the plugin model
Returns:
the code

getFilename

protected String getFilename(PluginModel pm)
Get the filename

Specified by:
getFilename in class AbstractFileGenerator
Parameters:
pm - The plugin model
Returns:
The filename

getPath

public String getPath()
Returns the Path

Overrides:
getPath in class AbstractFileGenerator
Returns:
The Path


Copyright © 2013 Mairie de Paris. All Rights Reserved.