public abstract class AbstractXmlGenerator
extends org.codehaus.modello.plugin.AbstractModelloGenerator
| Constructor | Description |
|---|---|
AbstractXmlGenerator() |
| 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.util.List<org.codehaus.modello.model.ModelField> |
getXmlAttributeFields(java.util.List<org.codehaus.modello.model.ModelField> modelFields) |
Gets all fields that are not marked as XML attribute.
|
protected boolean |
hasContentField(java.util.List<org.codehaus.modello.model.ModelField> modelFields) |
|
protected void |
initHeader(org.codehaus.plexus.util.xml.XMLWriter w) |
|
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.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLoggercapitalise, contextualize, getBuildContext, getEncoding, getFieldsForClass, getGeneratedVersion, getHeader, getModel, getOutputDirectory, getParameter, getParameter, getParameter, initialize, isClassInModel, isCollection, isEmpty, isInnerAssociation, isMap, isPackageWithVersion, singular, uncapitaliseprotected void initHeader(org.codehaus.plexus.util.xml.XMLWriter w)
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 boolean hasContentField(java.util.List<org.codehaus.modello.model.ModelField> modelFields)
protected 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> getXmlAttributeFields(java.util.List<org.codehaus.modello.model.ModelField> modelFields)
modelFields - The collection of model fields from which to extract the XML attributes, must not be
null.null.protected 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 use