Package org.codehaus.modello.plugin.xpp3
Class Xpp3WriterGenerator
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.codehaus.modello.plugin.AbstractModelloGenerator
-
- org.codehaus.modello.plugin.java.AbstractJavaModelloGenerator
-
- org.codehaus.modello.plugins.xml.AbstractXmlJavaGenerator
-
- org.codehaus.modello.plugin.xpp3.AbstractXpp3Generator
-
- org.codehaus.modello.plugin.xpp3.Xpp3WriterGenerator
-
- All Implemented Interfaces:
ModelloGenerator
,org.codehaus.plexus.logging.LogEnabled
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Direct Known Subclasses:
Xpp3ExtendedWriterGenerator
public class Xpp3WriterGenerator extends AbstractXpp3Generator
- Author:
- Jason van Zyl , Emmanuel Venisse
-
-
Field Summary
-
Fields inherited from class org.codehaus.modello.plugin.xpp3.AbstractXpp3Generator
locationTracker, requiresDomSupport, 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
-
-
Constructor Summary
Constructors Constructor Description Xpp3WriterGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate(Model model, Properties parameters)
protected void
initialize(Model model, Properties parameters)
protected void
prepareLocationTracking(JClass jClass)
protected void
writeLocationTracking(JSourceCode sc, String name, String key)
-
Methods inherited from class org.codehaus.modello.plugin.xpp3.AbstractXpp3Generator
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
-
-
-
-
Method Detail
-
prepareLocationTracking
protected void prepareLocationTracking(JClass jClass)
-
writeLocationTracking
protected void writeLocationTracking(JSourceCode sc, String name, String key)
-
initialize
protected void initialize(Model model, Properties parameters) throws ModelloException
- Overrides:
initialize
in classAbstractXpp3Generator
- Throws:
ModelloException
-
generate
public void generate(Model model, Properties parameters) throws ModelloException
- Throws:
ModelloException
-
-