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 362 2005-06-12 10:42:11Z trygvis $
- Author:
- Trygve Laugstøl
Field Summary |
private org.codehaus.plexus.velocity.VelocityComponent |
velocity
|
Fields inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator |
|
Fields inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|
Method Summary |
private org.apache.velocity.Template |
getTemplate(java.lang.String name)
|
protected static org.apache.velocity.context.Context |
makeStubVelocityContext(org.codehaus.modello.model.Model model,
org.codehaus.modello.model.Version version)
|
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, 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 |
velocity
private org.codehaus.plexus.velocity.VelocityComponent velocity
AbstractVelocityModelloGenerator
public AbstractVelocityModelloGenerator()
makeStubVelocityContext
protected static org.apache.velocity.context.Context makeStubVelocityContext(org.codehaus.modello.model.Model model,
org.codehaus.modello.model.Version version)
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
getTemplate
private org.apache.velocity.Template getTemplate(java.lang.String name)
throws org.apache.velocity.exception.ParseErrorException,
java.lang.Exception
- Throws:
org.apache.velocity.exception.ParseErrorException
java.lang.Exception