public abstract class AbstractXmlJavaGenerator
extends org.codehaus.modello.plugin.java.AbstractJavaModelloGenerator
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
strictXmlAttributes |
| Constructor | Description |
|---|---|
AbstractXmlJavaGenerator() |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.codehaus.modello.model.ModelField |
getContentField(java.util.List<org.codehaus.modello.model.ModelField> modelFields) |
Get the field which type is
Content if any. |
protected java.util.List<org.codehaus.modello.model.ModelField> |
getFieldsForXml(org.codehaus.modello.model.ModelClass modelClass,
org.codehaus.modello.model.Version version) |
Return the XML fields of this class, with proper XML order and no XML transient fields.
|
protected java.lang.String |
getFileName(java.lang.String suffix) |
|
protected java.lang.String |
getValue(java.lang.String type,
java.lang.String initialValue,
XmlFieldMetadata xmlFieldMetadata) |
|
protected void |
initialize(org.codehaus.modello.model.Model model,
java.util.Properties parameters) |
|
protected java.lang.String |
resolveTagName(java.lang.String fieldTagName,
XmlAssociationMetadata xmlAssociationMetadata) |
Resolve XML tag name for an item in an association with many multiplicity.
|
protected java.lang.String |
resolveTagName(org.codehaus.modello.model.ModelClass modelClass) |
Resolve XML tag name for a class.
|
protected java.lang.String |
resolveTagName(org.codehaus.modello.model.ModelField modelField,
XmlFieldMetadata xmlFieldMetadata) |
Resolve XML tag name for a field.
|
protected void |
writeDateParsingHelper(org.codehaus.modello.plugin.java.javasource.JSourceCode sc,
java.lang.String exception) |
addModelImports, getClasses, getDefaultValue, getJavaDefaultValue, getPrefix, getValueChecker, initHeader, initHeader, isJavaEnabled, isRelevant, isTrackingSupport, newJSourceWriter, suppressAllWarningsenableLogging, getLogger, setupLogger, setupLogger, setupLoggercapitalise, contextualize, getBuildContext, getEncoding, getFieldsForClass, getGeneratedVersion, getHeader, getModel, getOutputDirectory, getParameter, getParameter, getParameter, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, singular, uncapitaliseprotected void initialize(org.codehaus.modello.model.Model model,
java.util.Properties parameters)
throws org.codehaus.modello.ModelloException
initialize in class org.codehaus.modello.plugin.java.AbstractJavaModelloGeneratororg.codehaus.modello.ModelloExceptionprotected java.lang.String getFileName(java.lang.String suffix)
protected java.lang.String resolveTagName(org.codehaus.modello.model.ModelClass modelClass)
modelClass - the model classprotected java.lang.String resolveTagName(org.codehaus.modello.model.ModelField modelField,
XmlFieldMetadata xmlFieldMetadata)
modelField - the model fieldxmlFieldMetadata - the XML metadata of the fieldprotected java.lang.String resolveTagName(java.lang.String fieldTagName,
XmlAssociationMetadata xmlAssociationMetadata)
fieldTagName - the XML tag name of the field containing the associationxmlAssociationMetadata - the XML metadata of the associationprotected org.codehaus.modello.model.ModelField getContentField(java.util.List<org.codehaus.modello.model.ModelField> modelFields)
Content if any.modelFields - the fields to checknull if no field is Contentprotected java.util.List<org.codehaus.modello.model.ModelField> getFieldsForXml(org.codehaus.modello.model.ModelClass modelClass,
org.codehaus.modello.model.Version version)
modelClass - current classversion - the version of the class to useprotected java.lang.String getValue(java.lang.String type,
java.lang.String initialValue,
XmlFieldMetadata xmlFieldMetadata)
protected void writeDateParsingHelper(org.codehaus.modello.plugin.java.javasource.JSourceCode sc,
java.lang.String exception)