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

public abstract class AbstractStaxGenerator
extends org.codehaus.modello.plugin.AbstractModelloGenerator

Version:
$Id: AbstractStaxGenerator.java 139 2004-09-27 08:02:35Z evenisse $
Author:
Trygve Laugstøl

Constructor Summary
AbstractStaxGenerator()
           
 
Method Summary
protected  java.lang.String getFileName(java.lang.String suffix)
           
protected  org.codehaus.modello.model.ModelField getReferenceIdentifierField(org.codehaus.modello.model.ModelAssociation association)
           
protected static java.lang.String getValue(java.lang.String type, java.lang.String initialValue, org.codehaus.modello.plugins.xml.XmlFieldMetadata fieldMetadata)
           
protected  void initialize(org.codehaus.modello.model.Model model, java.util.Properties parameters)
           
protected  boolean isAssociationPartToClass(org.codehaus.modello.model.ModelClass modelClass)
           
 
Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator
addModelImports, capitalise, getGeneratedVersion, getModel, getOutputDirectory, getParameter, getParameter, getParameter, getPrefix, 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
 
Methods inherited from interface org.codehaus.modello.plugin.ModelloGenerator
generate
 

Constructor Detail

AbstractStaxGenerator

public AbstractStaxGenerator()
Method Detail

initialize

protected void initialize(org.codehaus.modello.model.Model model,
                          java.util.Properties parameters)
                   throws org.codehaus.modello.ModelloException
Overrides:
initialize in class org.codehaus.modello.plugin.AbstractModelloGenerator
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

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)

getValue

protected static java.lang.String getValue(java.lang.String type,
                                           java.lang.String initialValue,
                                           org.codehaus.modello.plugins.xml.XmlFieldMetadata fieldMetadata)


Copyright © 2001-2011 Codehaus. All Rights Reserved.