org.codehaus.modello.plugin

Class AbstractModelloGenerator

Implemented Interfaces:
ModelloGenerator
Known Direct Subclasses:
JavaModelloGenerator

public abstract class AbstractModelloGenerator
extends AbstractLogEnabled
implements ModelloGenerator

Version:
$Id: AbstractModelloGenerator.java 176 2004-12-09 03:06:36Z trygvis $
Authors:
Jason van Zyl
Emmanuel Venisse

Method Summary

protected void
addModelImports(JClass jClass, BaseElement baseElem)
protected String
capitalise(String str)
protected Version
getGeneratedVersion()
protected Model
getModel()
File
getOutputDirectory()
protected String
getParameter(Properties parameters, String name)
protected String
getParameter(Properties parameters, String name, String defaultValue)
protected String
getParameter(String name, Properties parameters)
protected void
initialize(Model model, Properties parameters)
protected boolean
isClassInModel(String fieldType, Model model)
protected boolean
isCollection(String fieldType)
protected boolean
isEmpty(String string)
protected boolean
isMap(String fieldType)
protected boolean
isPackageWithVersion()
protected String
singular(String name)
static String
uncapitalise(String str)

Method Details

addModelImports

protected void addModelImports(JClass jClass,
                               BaseElement baseElem)
            throws ModelloException

capitalise

protected String capitalise(String str)

getGeneratedVersion

protected Version getGeneratedVersion()

getModel

protected Model getModel()

getOutputDirectory

public File getOutputDirectory()

getParameter

protected String getParameter(Properties parameters,
                              String name)

getParameter

protected String getParameter(Properties parameters,
                              String name,
                              String defaultValue)

getParameter

protected String getParameter(String name,
                              Properties parameters)

Deprecated.


initialize

protected void initialize(Model model,
                          Properties parameters)
            throws ModelloException

isClassInModel

protected boolean isClassInModel(String fieldType,
                                 Model model)

isCollection

protected boolean isCollection(String fieldType)

isEmpty

protected boolean isEmpty(String string)

isMap

protected boolean isMap(String fieldType)

isPackageWithVersion

protected boolean isPackageWithVersion()

singular

protected String singular(String name)

uncapitalise

public static String uncapitalise(String str)