Class StaxSerializerGenerator

java.lang.Object
org.codehaus.modello.plugin.AbstractModelloGenerator
org.codehaus.modello.plugin.java.AbstractJavaModelloGenerator
org.codehaus.modello.plugins.xml.AbstractXmlJavaGenerator
org.codehaus.modello.plugin.stax.AbstractStaxGenerator
org.codehaus.modello.plugin.stax.StaxSerializerGenerator
All Implemented Interfaces:
org.codehaus.modello.plugin.ModelloGenerator

@Named("stax-serializer") public class StaxSerializerGenerator extends AbstractStaxGenerator
Generates the IndentingXMLStreamWriter used by the writer for pretty printing.
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, domAsXpp3
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    generate(org.codehaus.modello.model.Model model, 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

    addModelImport, addModelImports, getClasses, getDefaultValue, getJavaDefaultValue, getPrefix, getValueChecker, hasJavaSourceSupport, initHeader, initHeader, isJavaEnabled, isRelevant, isTrackingSupport, newJSourceWriter, suppressAllWarnings

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

    capitalise, getBuildContext, getEncoding, getFieldsForClass, getGeneratedVersion, getHeader, getLogger, getModel, getOutputDirectory, getParameter, getParameter, getParameter, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, newWriter, newWriter, singular, uncapitalise

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StaxSerializerGenerator

      public StaxSerializerGenerator()
  • Method Details

    • generate

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