public abstract class AbstractJavaModelloGenerator extends AbstractModelloGenerator
AbstractModelloGenerator
but with features that
java generators can use.Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_DATE_FORMAT |
protected boolean |
domAsXpp3 |
protected boolean |
useJava5 |
Constructor and Description |
---|
AbstractJavaModelloGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addModelImports(JClass jClass,
BaseElement baseElem) |
protected List<ModelClass> |
getClasses(Model model) |
protected String |
getDefaultValue(ModelAssociation association) |
protected String |
getJavaDefaultValue(ModelField modelField) |
protected String |
getPrefix(JavaFieldMetadata javaFieldMetadata) |
protected String |
getValueChecker(String type,
String value,
ModelField field) |
protected void |
initHeader(JClass clazz) |
protected void |
initHeader(JInterface interfaze) |
protected void |
initialize(Model model,
Properties parameters) |
protected boolean |
isJavaEnabled(ModelClass modelClass) |
protected boolean |
isRelevant(ModelClass modelClass) |
protected boolean |
isTrackingSupport(ModelClass modelClass) |
protected JSourceWriter |
newJSourceWriter(String packageName,
String className)
Create a new java source file writer, with configured encoding.
|
protected void |
suppressAllWarnings(Model objectModel,
JStructure structure) |
capitalise, contextualize, getBuildContext, getEncoding, getFieldsForClass, getGeneratedVersion, getHeader, getModel, getOutputDirectory, getParameter, getParameter, getParameter, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, singular, uncapitalise
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate
protected boolean useJava5
protected boolean domAsXpp3
protected static final String DEFAULT_DATE_FORMAT
protected void initialize(Model model, Properties parameters) throws ModelloException
initialize
in class AbstractModelloGenerator
ModelloException
protected JSourceWriter newJSourceWriter(String packageName, String className) throws IOException
packageName
- the package of the source file to createclassName
- the class of the source file to createIOException
protected void initHeader(JClass clazz)
protected void initHeader(JInterface interfaze)
protected void suppressAllWarnings(Model objectModel, JStructure structure)
protected void addModelImports(JClass jClass, BaseElement baseElem) throws ModelloException
ModelloException
protected String getPrefix(JavaFieldMetadata javaFieldMetadata)
protected String getDefaultValue(ModelAssociation association)
protected String getJavaDefaultValue(ModelField modelField) throws ModelloException
ModelloException
protected String getValueChecker(String type, String value, ModelField field) throws ModelloException
ModelloException
protected List<ModelClass> getClasses(Model model)
protected boolean isRelevant(ModelClass modelClass)
protected boolean isJavaEnabled(ModelClass modelClass)
protected boolean isTrackingSupport(ModelClass modelClass)
Copyright © 2001–2017 Codehaus Plexus. All rights reserved.