|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.modello.plugin.AbstractModelloGenerator
org.codehaus.modello.plugins.xml.AbstractXmlGenerator
public abstract class AbstractXmlGenerator
Abstract class for plugins working on XML representation of the model, without having any need to generate Java code.
Constructor Summary | |
---|---|
AbstractXmlGenerator()
|
Method Summary | |
---|---|
protected List |
getAttributeFieldsForClass(ModelClass modelClass)
Return the child attribute fields of this class. |
protected ModelField |
getContentField(List modelFields)
Get the field which type is Content if any. |
protected List |
getNonTransientFields(List modelFields)
Gets all fields that are not marked as transient. |
protected boolean |
hasContentField(List modelFields)
|
protected void |
initHeader(org.codehaus.plexus.util.xml.XMLWriter w)
|
protected String |
resolveTagName(ModelClass modelClass)
Resolve XML tag name for a class. |
protected String |
resolveTagName(ModelField modelField,
XmlFieldMetadata xmlFieldMetadata)
Resolve XML tag name for a field. |
protected String |
resolveTagName(String fieldTagName,
XmlAssociationMetadata xmlAssociationMetadata)
Resolve XML tag name for an item in an association with many multiplicity. |
Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator |
---|
capitalise, contextualize, getBuildContext, getEncoding, getFieldsForClass, getGeneratedVersion, getHeader, getModel, getOutputDirectory, getParameter, getParameter, getParameter, initialize, 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 |
Constructor Detail |
---|
public AbstractXmlGenerator()
Method Detail |
---|
protected void initHeader(org.codehaus.plexus.util.xml.XMLWriter w)
protected String resolveTagName(ModelClass modelClass)
modelClass
- the model class
protected String resolveTagName(ModelField modelField, XmlFieldMetadata xmlFieldMetadata)
modelField
- the model fieldxmlFieldMetadata
- the XML metadata of the field
protected String resolveTagName(String fieldTagName, XmlAssociationMetadata xmlAssociationMetadata)
fieldTagName
- the XML tag name of the field containing the associationxmlAssociationMetadata
- the XML metadata of the association
protected List getAttributeFieldsForClass(ModelClass modelClass)
modelClass
- current class
protected boolean hasContentField(List modelFields)
protected ModelField getContentField(List modelFields)
Content
if any.
modelFields
- the fields to check
null
if no field is Content
protected List getNonTransientFields(List modelFields)
modelFields
- The collection of model fields from which to extract the non-transient fields, must not be
null
.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |