org.codehaus.modello.plugin.store

Class AbstractVelocityModelloGenerator

Implemented Interfaces:
ModelloGenerator
Known Direct Subclasses:
AbstractRegistryGenerator, JPoxMetadataClassModelloGenerator, JPoxStoreModelloGenerator

public abstract class AbstractVelocityModelloGenerator
extends AbstractModelloGenerator

Version:
$Id: AbstractVelocityModelloGenerator.java 901 2008-05-26 21:25:01Z hboutemy $
Author:
Trygve Laugstøl

Method Summary

protected static Context
makeStubVelocityContext(Model model, Version version)
protected static Context
makeStubVelocityContext(Model model, Version version, String packageName)
protected void
writeClass(String templateName, File basedir, String packageName, String className, Context context)
protected void
writeTemplate(String templateName, File file, Context context)

Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator

addModelImports, capitalise, getEncoding, getFieldsForClass, getGeneratedVersion, getModel, getOutputDirectory, getParameter, getParameter, getParameter, getPrefix, initialize, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, newJSourceWriter, singular, uncapitalise

Method Details

makeStubVelocityContext

protected static Context makeStubVelocityContext(Model model,
                                                 Version version)

makeStubVelocityContext

protected static Context makeStubVelocityContext(Model model,
                                                 Version version,
                                                 String packageName)

writeClass

protected void writeClass(String templateName,
                          File basedir,
                          String packageName,
                          String className,
                          Context context)
            throws ModelloException

writeTemplate

protected void writeTemplate(String templateName,
                             File file,
                             Context context)
            throws ModelloException