org.codehaus.modello.plugin.dom4j

Class Dom4jWriterGenerator

Implemented Interfaces:
ModelloGenerator

public class Dom4jWriterGenerator
extends AbstractModelloGenerator

Generate a writer that uses Dom4J.

TODO: chunks are lifted from xpp3, including the tests. Can we abstract it in some way?

Author:
Brett Porter

Method Summary

void
generate(Model model, Properties parameters)
protected String
getFileName(String suffix)

Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator

addModelImports, capitalise, getEncoding, getFieldsForClass, getGeneratedVersion, getModel, getOutputDirectory, getParameter, getParameter, getParameter, getPrefix, initialize, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, newJSourceWriter, singular, uncapitalise

Method Details

generate

public void generate(Model model,
                     Properties parameters)
            throws ModelloException
Specified by:
generate in interface ModelloGenerator

getFileName

protected String getFileName(String suffix)
            throws ModelloException