org.codehaus.modello.plugin.stax
Class AbstractStaxGenerator

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
All Implemented Interfaces:
ModelloGenerator, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Direct Known Subclasses:
StaxReaderGenerator, StaxSerializerGenerator, StaxWriterGenerator

public abstract class AbstractStaxGenerator
extends AbstractXmlJavaGenerator

Version:
$Id: AbstractStaxGenerator.java 1413 2010-02-13 21:23:01Z hboutemy $
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, useJava5
 
Constructor Summary
AbstractStaxGenerator()
           
 
Method Summary
protected  ModelField getReferenceIdentifierField(ModelAssociation association)
           
protected  void initialize(Model model, Properties parameters)
           
protected  boolean isAssociationPartToClass(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
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
 
Methods inherited from interface org.codehaus.modello.plugin.ModelloGenerator
generate
 

Constructor Detail

AbstractStaxGenerator

public AbstractStaxGenerator()
Method Detail

initialize

protected void initialize(Model model,
                          Properties parameters)
                   throws ModelloException
Overrides:
initialize in class AbstractXmlJavaGenerator
Throws:
ModelloException

getReferenceIdentifierField

protected ModelField getReferenceIdentifierField(ModelAssociation association)
                                          throws ModelloException
Throws:
ModelloException

isAssociationPartToClass

protected boolean isAssociationPartToClass(ModelClass modelClass)


Copyright © 2001-2012 Codehaus. All Rights Reserved.