Class AbstractXpp3Generator

  • All Implemented Interfaces:
    org.codehaus.modello.plugin.ModelloGenerator, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
    Direct Known Subclasses:
    Xpp3ReaderGenerator, Xpp3WriterGenerator

    public abstract class AbstractXpp3Generator
    extends org.codehaus.modello.plugins.xml.AbstractXmlJavaGenerator
    Author:
    Trygve Laugstøl
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.codehaus.modello.model.ModelClass locationTracker  
      protected boolean requiresDomSupport  
      protected org.codehaus.modello.model.ModelClass sourceTracker  
      • 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, useJava5
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void initialize​(org.codehaus.modello.model.Model model, java.util.Properties parameters)  
      protected boolean isLocationTracking()  
      • 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, 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
    • Field Detail

      • requiresDomSupport

        protected boolean requiresDomSupport
      • locationTracker

        protected org.codehaus.modello.model.ModelClass locationTracker
      • sourceTracker

        protected org.codehaus.modello.model.ModelClass sourceTracker
    • Constructor Detail

      • AbstractXpp3Generator

        public AbstractXpp3Generator()
    • Method Detail

      • isLocationTracking

        protected boolean isLocationTracking()
      • 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.plugins.xml.AbstractXmlJavaGenerator
        Throws:
        org.codehaus.modello.ModelloException