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, ModelloGenerator
- 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 org.apache.velocity.context.Context |
makeStubVelocityContext(Model model,
Version version)
|
protected static org.apache.velocity.context.Context |
makeStubVelocityContext(Model 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, getEncoding, getFieldsForClass, getGeneratedVersion, getModel, getOutputDirectory, getParameter, getParameter, getParameter, getPrefix, initialize, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, newJSourceWriter, 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 |
AbstractVelocityModelloGenerator
public AbstractVelocityModelloGenerator()
makeStubVelocityContext
protected static org.apache.velocity.context.Context makeStubVelocityContext(Model model,
Version version)
makeStubVelocityContext
protected static org.apache.velocity.context.Context makeStubVelocityContext(Model 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 ModelloException
- Throws:
ModelloException
writeTemplate
protected void writeTemplate(java.lang.String templateName,
java.io.File file,
org.apache.velocity.context.Context context)
throws ModelloException
- Throws:
ModelloException
Copyright © 2001-2008 Codehaus. All Rights Reserved.