Class AbstractStaxGenerator

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
All Implemented Interfaces:
org.codehaus.modello.plugin.ModelloGenerator
Direct Known Subclasses:
StaxReaderGenerator, StaxSerializerGenerator, StaxWriterGenerator

public abstract class AbstractStaxGenerator extends org.codehaus.modello.plugins.xml.AbstractXmlJavaGenerator
Author:
Trygve Laugstøl
  • 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
    protected org.codehaus.modello.model.ModelField
    getReferenceIdentifierField(org.codehaus.modello.model.ModelAssociation association)
     
    protected void
    initialize(org.codehaus.modello.model.Model model, Map<String,Object> parameters)
     
    protected boolean
    isAssociationPartToClass(org.codehaus.modello.model.ModelClass modelClass)
     

    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, initHeader, initHeader, isJavaEnabled, isRelevant, isTrackingSupport, newJSourceWriter, suppressAllWarnings

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

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.codehaus.modello.plugin.ModelloGenerator

    generate
  • Constructor Details

    • AbstractStaxGenerator

      public AbstractStaxGenerator()
  • Method Details

    • initialize

      protected void initialize(org.codehaus.modello.model.Model model, Map<String,Object> parameters) throws org.codehaus.modello.ModelloException
      Overrides:
      initialize in class org.codehaus.modello.plugins.xml.AbstractXmlJavaGenerator
      Throws:
      org.codehaus.modello.ModelloException
    • getReferenceIdentifierField

      protected org.codehaus.modello.model.ModelField getReferenceIdentifierField(org.codehaus.modello.model.ModelAssociation association) throws org.codehaus.modello.ModelloException
      Throws:
      org.codehaus.modello.ModelloException
    • isAssociationPartToClass

      protected boolean isAssociationPartToClass(org.codehaus.modello.model.ModelClass modelClass)