public abstract class AbstractModelloGenerator extends org.codehaus.plexus.logging.AbstractLogEnabled implements ModelloGenerator, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Constructor and Description |
---|
AbstractModelloGenerator() |
Modifier and Type | Method and Description |
---|---|
protected String |
capitalise(String str) |
void |
contextualize(org.codehaus.plexus.context.Context ctx) |
protected org.sonatype.plexus.build.incremental.BuildContext |
getBuildContext() |
protected String |
getEncoding() |
protected List<ModelField> |
getFieldsForClass(ModelClass modelClass)
Return the child fields of this class.
|
protected Version |
getGeneratedVersion() |
protected String |
getHeader() |
protected Model |
getModel() |
File |
getOutputDirectory() |
protected String |
getParameter(Properties parameters,
String name) |
protected String |
getParameter(Properties parameters,
String name,
String defaultValue) |
protected String |
getParameter(String name,
Properties parameters)
Deprecated.
Use
getParameter(Properties, String) instead |
protected void |
initialize(Model model,
Properties parameters) |
protected boolean |
isClassInModel(String fieldType,
Model model) |
protected boolean |
isCollection(String fieldType) |
protected boolean |
isEmpty(String string) |
protected boolean |
isInnerAssociation(ModelField field) |
protected boolean |
isMap(String fieldType) |
protected boolean |
isPackageWithVersion() |
static String |
singular(String name) |
static String |
uncapitalise(String str) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate
protected void initialize(Model model, Properties parameters) throws ModelloException
ModelloException
protected Model getModel()
protected Version getGeneratedVersion()
protected boolean isPackageWithVersion()
public File getOutputDirectory()
protected String getEncoding()
protected String getHeader()
protected List<ModelField> getFieldsForClass(ModelClass modelClass)
modelClass
- current classprotected boolean isInnerAssociation(ModelField field)
protected boolean isMap(String fieldType)
protected boolean isCollection(String fieldType)
protected boolean isEmpty(String string)
protected String getParameter(String name, Properties parameters)
getParameter(Properties, String)
insteadprotected String getParameter(Properties parameters, String name)
protected String getParameter(Properties parameters, String name, String defaultValue)
public void contextualize(org.codehaus.plexus.context.Context ctx) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
org.codehaus.plexus.context.ContextException
protected org.sonatype.plexus.build.incremental.BuildContext getBuildContext()
Copyright © 2001–2022 Codehaus Plexus. All rights reserved.