org.codehaus.modello.plugin.store
Class AbstractVelocityModelloGenerator
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.modello.plugin.AbstractModelloGenerator
org.codehaus.modello.plugin.store.AbstractVelocityModelloGenerator
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LogEnabled, org.codehaus.modello.plugin.ModelloGenerator
- public abstract class AbstractVelocityModelloGenerator
- extends org.codehaus.modello.plugin.AbstractModelloGenerator
- Version:
- $Id: AbstractVelocityModelloGenerator.java 795 2007-02-08 08:50:51Z brett $
- Author:
- Trygve Laugstøl
Method Summary |
protected static org.apache.velocity.context.Context |
makeStubVelocityContext(org.codehaus.modello.model.Model model,
org.codehaus.modello.model.Version version)
|
protected static org.apache.velocity.context.Context |
makeStubVelocityContext(org.codehaus.modello.model.Model model,
org.codehaus.modello.model.Version version,
java.lang.String packageName)
|
protected void |
writeClass(java.lang.String templateName,
java.io.File basedir,
java.lang.String packageName,
java.lang.String className,
org.apache.velocity.context.Context context)
|
protected void |
writeTemplate(java.lang.String templateName,
java.io.File file,
org.apache.velocity.context.Context context)
|
Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator |
addModelImports, capitalise, getGeneratedVersion, getModel, getOutputDirectory, getParameter, getParameter, getParameter, getPrefix, initialize, isClassInModel, isCollection, isEmpty, isMap, isPackageWithVersion, singular, uncapitalise |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.modello.plugin.ModelloGenerator |
generate |
AbstractVelocityModelloGenerator
public AbstractVelocityModelloGenerator()
makeStubVelocityContext
protected static org.apache.velocity.context.Context makeStubVelocityContext(org.codehaus.modello.model.Model model,
org.codehaus.modello.model.Version version)
makeStubVelocityContext
protected static org.apache.velocity.context.Context makeStubVelocityContext(org.codehaus.modello.model.Model model,
org.codehaus.modello.model.Version version,
java.lang.String packageName)
writeClass
protected void writeClass(java.lang.String templateName,
java.io.File basedir,
java.lang.String packageName,
java.lang.String className,
org.apache.velocity.context.Context context)
throws org.codehaus.modello.ModelloException
- Throws:
org.codehaus.modello.ModelloException
writeTemplate
protected void writeTemplate(java.lang.String templateName,
java.io.File file,
org.apache.velocity.context.Context context)
throws org.codehaus.modello.ModelloException
- Throws:
org.codehaus.modello.ModelloException
Copyright © 2001-2007 Codehaus. All Rights Reserved.