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

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.PluginXmlGenerator
All Implemented Interfaces:
Generator

public class PluginXmlGenerator
extends AbstractFileGenerator

Class produces the xml file describing the generated plugin


Constructor Summary
PluginXmlGenerator()
           
 
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
static void setJspName(PluginModel pm)
           
 
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

PluginXmlGenerator

public PluginXmlGenerator()
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

setJspName

public static void setJspName(PluginModel pm)

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.