public abstract class AbstractModelloGenerator extends AbstractLogEnabled implements ModelloGenerator
Constructor and Description |
---|
AbstractModelloGenerator() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
capitalise(java.lang.String str) |
void |
contextualize(Context ctx) |
protected org.sonatype.plexus.build.incremental.BuildContext |
getBuildContext() |
protected java.lang.String |
getEncoding() |
protected java.util.List<ModelField> |
getFieldsForClass(ModelClass modelClass)
Return the child fields of this class.
|
protected Version |
getGeneratedVersion() |
protected java.lang.String |
getHeader() |
protected Model |
getModel() |
java.io.File |
getOutputDirectory() |
protected java.lang.String |
getParameter(java.util.Properties parameters,
java.lang.String name) |
protected java.lang.String |
getParameter(java.util.Properties parameters,
java.lang.String name,
java.lang.String defaultValue) |
protected java.lang.String |
getParameter(java.lang.String name,
java.util.Properties parameters)
Deprecated.
@{link Use getParameter( Properties, String )} instead
|
protected void |
initialize(Model model,
java.util.Properties parameters) |
protected boolean |
isClassInModel(java.lang.String fieldType,
Model model) |
protected boolean |
isCollection(java.lang.String fieldType) |
protected boolean |
isEmpty(java.lang.String string) |
protected boolean |
isInnerAssociation(ModelField field) |
protected boolean |
isMap(java.lang.String fieldType) |
protected boolean |
isPackageWithVersion() |
static java.lang.String |
singular(java.lang.String name) |
static java.lang.String |
uncapitalise(java.lang.String str) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate
protected void initialize(Model model, java.util.Properties parameters) throws ModelloException
ModelloException
protected Model getModel()
protected Version getGeneratedVersion()
protected boolean isPackageWithVersion()
public java.io.File getOutputDirectory()
protected java.lang.String getEncoding()
protected java.lang.String getHeader()
protected boolean isClassInModel(java.lang.String fieldType, Model model)
protected java.util.List<ModelField> getFieldsForClass(ModelClass modelClass)
modelClass
- current classprotected boolean isInnerAssociation(ModelField field)
protected boolean isMap(java.lang.String fieldType)
protected boolean isCollection(java.lang.String fieldType)
protected java.lang.String capitalise(java.lang.String str)
public static java.lang.String singular(java.lang.String name)
public static java.lang.String uncapitalise(java.lang.String str)
protected boolean isEmpty(java.lang.String string)
protected java.lang.String getParameter(java.lang.String name, java.util.Properties parameters)
protected java.lang.String getParameter(java.util.Properties parameters, java.lang.String name)
protected java.lang.String getParameter(java.util.Properties parameters, java.lang.String name, java.lang.String defaultValue)
public void contextualize(Context ctx) throws ContextException
ContextException
protected org.sonatype.plexus.build.incremental.BuildContext getBuildContext()