Package org.codehaus.modello.plugin
Class AbstractModelloGenerator
java.lang.Object
org.codehaus.modello.plugin.AbstractModelloGenerator
- All Implemented Interfaces:
ModelloGenerator
- Author:
- Jason van Zyl, Emmanuel Venisse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
capitalise
(String str) protected org.codehaus.plexus.build.BuildContext
protected String
protected List
<ModelField> getFieldsForClass
(ModelClass modelClass) Return the child fields of this class.protected Version
protected String
protected org.slf4j.Logger
protected Model
getModel()
protected String
getParameter
(String name, Properties parameters) Deprecated.protected String
getParameter
(Properties parameters, String name) protected String
getParameter
(Properties parameters, String name, String defaultValue) protected void
initialize
(Model model, Properties parameters) protected boolean
isClassInModel
(String fieldType, Model model) protected boolean
isCollection
(String fieldType) protected boolean
protected boolean
isInnerAssociation
(ModelField field) protected boolean
protected boolean
protected Writer
protected Writer
static String
static String
uncapitalise
(String str) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.codehaus.modello.plugin.ModelloGenerator
generate
-
Constructor Details
-
AbstractModelloGenerator
public AbstractModelloGenerator()
-
-
Method Details
-
getLogger
protected org.slf4j.Logger getLogger() -
initialize
- Throws:
ModelloException
-
getModel
-
getGeneratedVersion
-
isPackageWithVersion
protected boolean isPackageWithVersion() -
getOutputDirectory
-
getEncoding
-
getHeader
-
isClassInModel
-
getFieldsForClass
Return the child fields of this class.- Parameters:
modelClass
- current class- Returns:
- the list of fields of this class
-
isInnerAssociation
-
isMap
-
isCollection
-
capitalise
-
singular
-
uncapitalise
-
isEmpty
-
getParameter
Deprecated.UsegetParameter(Properties, String)
instead- Parameters:
name
- parameter nameparameters
- the properties- Returns:
- the parameter value
-
getParameter
-
getParameter
-
getBuildContext
protected org.codehaus.plexus.build.BuildContext getBuildContext() -
newWriter
- Throws:
IOException
-
newWriter
- Throws:
IOException
-
getParameter(Properties, String)
instead