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, suppressAllWarnings
capitalise, contextualize, getBuildContext, getEncoding, getFieldsForClass, getGeneratedVersion, getHeader, getModel, getOutputDirectory, getParameter, getParameter, getParameter, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, singular, uncapitalise
public void generate(Model model, java.util.Properties parameters) throws ModelloException
ModelloException
private void generateConverters(Version toVersion) throws ModelloException, java.io.IOException
ModelloException
java.io.IOException
private void generateConverterTool(java.util.List<Version> allVersions) throws ModelloException, java.io.IOException
ModelloException
java.io.IOException
private 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)