Class VelocityGenerator
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.codehaus.modello.plugin.AbstractModelloGenerator
-
- org.codehaus.modello.plugin.velocity.VelocityGenerator
-
- All Implemented Interfaces:
ModelloGenerator
,org.codehaus.plexus.logging.LogEnabled
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
@Component(role=ModelloGenerator.class, hint="velocity") public class VelocityGenerator extends AbstractModelloGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
VelocityGenerator.RedirectingWriter
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MODELLO_VELOCITY_OUTPUT
static java.lang.String
VELOCITY_BASEDIR
static java.lang.String
VELOCITY_PARAMETERS
static java.lang.String
VELOCITY_TEMPLATES
-
Constructor Summary
Constructors Constructor Description VelocityGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate(Model model, java.util.Properties parameters)
-
Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator
capitalise, contextualize, getBuildContext, getEncoding, getFieldsForClass, getGeneratedVersion, getHeader, getModel, getOutputDirectory, getParameter, getParameter, getParameter, initialize, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, newWriter, newWriter, singular, uncapitalise
-
-
-
-
Field Detail
-
VELOCITY_BASEDIR
public static final java.lang.String VELOCITY_BASEDIR
- See Also:
- Constant Field Values
-
VELOCITY_TEMPLATES
public static final java.lang.String VELOCITY_TEMPLATES
- See Also:
- Constant Field Values
-
VELOCITY_PARAMETERS
public static final java.lang.String VELOCITY_PARAMETERS
- See Also:
- Constant Field Values
-
MODELLO_VELOCITY_OUTPUT
public static final java.lang.String MODELLO_VELOCITY_OUTPUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
generate
public void generate(Model model, java.util.Properties parameters) throws ModelloException
- Throws:
ModelloException
-
-