org.codehaus.modello.plugin.stax
Class StaxSerializerGenerator

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.modello.plugin.AbstractModelloGenerator
          extended by org.codehaus.modello.plugin.java.AbstractJavaModelloGenerator
              extended by org.codehaus.modello.plugins.xml.AbstractXmlJavaGenerator
                  extended by org.codehaus.modello.plugin.stax.AbstractStaxGenerator
                      extended by org.codehaus.modello.plugin.stax.StaxSerializerGenerator
All Implemented Interfaces:
ModelloGenerator, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class StaxSerializerGenerator
extends AbstractStaxGenerator

Generates the IndentingXMLStreamWriter used by the writer for pretty printing.

Version:
$Id: StaxSerializerGenerator.java 1447 2010-04-17 16:45:58Z bentmann $
Author:
Benjamin Bentmann

Field Summary
 
Fields inherited from class org.codehaus.modello.plugins.xml.AbstractXmlJavaGenerator
strictXmlAttributes
 
Fields inherited from class org.codehaus.modello.plugin.java.AbstractJavaModelloGenerator
DEFAULT_DATE_FORMAT, useJava5
 
Constructor Summary
StaxSerializerGenerator()
           
 
Method Summary
 void generate(Model model, java.util.Properties parameters)
           
 
Methods inherited from class org.codehaus.modello.plugin.stax.AbstractStaxGenerator
getReferenceIdentifierField, initialize, isAssociationPartToClass
 
Methods inherited from class org.codehaus.modello.plugins.xml.AbstractXmlJavaGenerator
getContentField, getFieldsForXml, getFileName, getValue, resolveTagName, resolveTagName, resolveTagName, writeDateParsingHelper
 
Methods inherited from class org.codehaus.modello.plugin.java.AbstractJavaModelloGenerator
addModelImports, getClasses, getDefaultValue, getJavaDefaultValue, getPrefix, getValueChecker, initHeader, initHeader, isJavaEnabled, isRelevant, isTrackingSupport, newJSourceWriter, suppressAllWarnings
 
Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator
capitalise, contextualize, getBuildContext, getEncoding, getFieldsForClass, getGeneratedVersion, getHeader, getModel, getOutputDirectory, getParameter, getParameter, getParameter, isClassInModel, isCollection, isEmpty, isInnerAssociation, 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

StaxSerializerGenerator

public StaxSerializerGenerator()
Method Detail

generate

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


Copyright © 2001-2010 Codehaus. All Rights Reserved.