org.cumt.tools.generators
Class TemplateBasedGenerator
java.lang.Object
org.cumt.tools.generators.AbstractGenerator
org.cumt.tools.generators.TemplateBasedGenerator
- All Implemented Interfaces:
- Generator
public abstract class TemplateBasedGenerator
- extends AbstractGenerator
FIXME Implement it
A Velocity template based generator
- Author:
- Carlos Descalzi
Field Summary |
protected org.apache.velocity.VelocityContext |
context
|
Methods inherited from class org.cumt.tools.generators.AbstractGenerator |
addProgressListener, getBasePackage, getModel, getTargetDirectory, getUIClass, notifyFinalized, notifyProgress, notifyStarted, removeProgressListener, setBasePackage, setModel, setTargetDirectory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected final org.apache.velocity.VelocityContext context
TemplateBasedGenerator
protected TemplateBasedGenerator()
addTemplateForType
public void addTemplateForType(java.lang.Class<? extends BaseModelNode> type,
java.io.File templateFile)
getTemplate
protected org.apache.velocity.Template getTemplate(java.lang.Class<? extends BaseModelNode> type)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
java.lang.Exception
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
java.lang.Exception
getTemplatesByType
public java.util.Map<java.lang.Class<? extends BaseModelNode>,java.io.File> getTemplatesByType()
Copyright © 2006 null. All Rights Reserved.