org.codehaus.modello.plugin.dom4j
Class Dom4jReaderGenerator

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.modello.plugin.AbstractModelloGenerator
          extended by org.codehaus.modello.plugin.dom4j.Dom4jReaderGenerator
All Implemented Interfaces:
org.codehaus.modello.plugin.ModelloGenerator, org.codehaus.plexus.logging.LogEnabled

public class Dom4jReaderGenerator
extends org.codehaus.modello.plugin.AbstractModelloGenerator

Generator that reads a model using dom4j. TODO: chunks are lifted from xpp3, including the tests. Can we abstract it in some way?

Author:
Brett Porter

Constructor Summary
Dom4jReaderGenerator()
           
 
Method Summary
 void generate(org.codehaus.modello.model.Model model, java.util.Properties parameters)
           
protected  java.lang.String getFileName(java.lang.String suffix)
           
 
Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator
addModelImports, capitalise, getGeneratedVersion, getModel, getOutputDirectory, getParameter, getParameter, getParameter, getPrefix, initialize, isClassInModel, isCollection, isEmpty, isMap, isPackageWithVersion, singular, uncapitalise
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dom4jReaderGenerator

public Dom4jReaderGenerator()
Method Detail

generate

public void generate(org.codehaus.modello.model.Model model,
                     java.util.Properties parameters)
              throws org.codehaus.modello.ModelloException
Throws:
org.codehaus.modello.ModelloException

getFileName

protected java.lang.String getFileName(java.lang.String suffix)
                                throws org.codehaus.modello.ModelloException
Throws:
org.codehaus.modello.ModelloException


Copyright © 2001-2011 Codehaus. All Rights Reserved.