Package org.codehaus.modello.plugin
Class AbstractModelloGenerator
java.lang.Object
org.codehaus.modello.plugin.AbstractModelloGenerator
- All Implemented Interfaces:
ModelloGenerator
- Direct Known Subclasses:
AbstractJavaModelloGenerator,AbstractXmlGenerator,VelocityGenerator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringcapitalise(String str) protected org.sonatype.plexus.build.incremental.BuildContextprotected Stringprotected List<ModelField>getFieldsForClass(ModelClass modelClass) Return the child fields of this class.protected Versionprotected org.slf4j.Loggerprotected ModelgetModel()protected Stringprotected voidinitialize(Model model, Map<String, Object> parameters) protected booleanisClassInModel(String fieldType, Model model) protected booleanisCollection(String fieldType) protected booleanprotected booleanisInnerAssociation(ModelField field) protected booleanprotected booleanprotected Writerprotected Writerprotected StringrequireParameter(Map<String, Object> parameters, String name) static Stringstatic Stringuncapitalise(String str) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.modello.plugin.ModelloGenerator
generate
-
Field Details
-
logger
private final org.slf4j.Logger logger -
PLURAL_EXCEPTIONS
-
model
-
outputDirectory
-
generatedVersion
-
packageWithVersion
private boolean packageWithVersion -
encoding
-
licenseText
-
buildContext
@Inject private org.sonatype.plexus.build.incremental.BuildContext buildContext
-
-
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
-
getGeneratedHeader
-
getLicenseHeader
-
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
-
requireParameter
-
getParameter
-
getBuildContext
protected org.sonatype.plexus.build.incremental.BuildContext getBuildContext() -
newWriter
- Throws:
IOException
-
newWriter
- Throws:
IOException
-