public class ConverterGenerator extends AbstractJavaModelloGenerator
DEFAULT_DATE_FORMAT, domAsXpp3, useJava5| Constructor and Description |
|---|
ConverterGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(Model model,
java.util.Properties parameters) |
private void |
generateConverters(Version toVersion) |
private void |
generateConverterTool(java.util.List<Version> allVersions) |
private static java.lang.String |
getSourceClassName(ModelClass modelClass,
Version generatedVersion) |
private static void |
writeConvertMethod(JClass converterClass,
Model objectModel,
java.lang.String basePackage,
java.util.List<Version> allVersions,
Version v,
ModelClass rootClass) |
addModelImport, addModelImports, getClasses, getDefaultValue, getJavaDefaultValue, getPrefix, getValueChecker, initHeader, initHeader, initialize, isJavaEnabled, isRelevant, isTrackingSupport, newJSourceWriter, suppressAllWarningscapitalise, contextualize, getBuildContext, getEncoding, getFieldsForClass, getGeneratedVersion, getHeader, getModel, getOutputDirectory, getParameter, getParameter, getParameter, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, singular, uncapitalisepublic void generate(Model model, java.util.Properties parameters) throws ModelloException
ModelloExceptionprivate void generateConverters(Version toVersion) throws ModelloException, java.io.IOException
ModelloExceptionjava.io.IOExceptionprivate void generateConverterTool(java.util.List<Version> allVersions) throws ModelloException, java.io.IOException
ModelloExceptionjava.io.IOExceptionprivate static void writeConvertMethod(JClass converterClass, Model objectModel, java.lang.String basePackage, java.util.List<Version> allVersions, Version v, ModelClass rootClass)
private static java.lang.String getSourceClassName(ModelClass modelClass, Version generatedVersion)