ModelloGenerator, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.ContextualizableAbstractJDOMGenerator, AbstractStaxGenerator, AbstractXpp3Generator, Dom4jReaderGenerator, Dom4jWriterGenerator, SaxWriterGeneratorpublic abstract class AbstractXmlJavaGenerator extends AbstractJavaModelloGenerator
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
strictXmlAttributes |
DEFAULT_DATE_FORMAT, domAsXpp3, useJava5| Constructor | Description |
|---|---|
AbstractXmlJavaGenerator() |
| Modifier and Type | Method | Description |
|---|---|---|
protected ModelField |
getContentField(List<ModelField> modelFields) |
Get the field which type is
Content if any. |
protected List<ModelField> |
getFieldsForXml(ModelClass modelClass,
Version version) |
Return the XML fields of this class, with proper XML order and no XML transient fields.
|
protected String |
getFileName(String suffix) |
|
protected String |
getValue(String type,
String initialValue,
XmlFieldMetadata xmlFieldMetadata) |
|
protected void |
initialize(Model model,
Properties parameters) |
|
protected String |
resolveTagName(String fieldTagName,
XmlAssociationMetadata xmlAssociationMetadata) |
Resolve XML tag name for an item in an association with many multiplicity.
|
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 void |
writeDateParsingHelper(JSourceCode sc,
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, uncapitalisegenerateprotected void initialize(Model model, Properties parameters) throws ModelloException
initialize in class AbstractJavaModelloGeneratorModelloExceptionprotected String resolveTagName(ModelClass modelClass)
modelClass - the model classprotected String resolveTagName(ModelField modelField, XmlFieldMetadata xmlFieldMetadata)
modelField - the model fieldxmlFieldMetadata - the XML metadata of the fieldprotected String resolveTagName(String fieldTagName, XmlAssociationMetadata xmlAssociationMetadata)
fieldTagName - the XML tag name of the field containing the associationxmlAssociationMetadata - the XML metadata of the associationprotected ModelField getContentField(List<ModelField> modelFields)
Content if any.modelFields - the fields to checknull if no field is Contentprotected List<ModelField> getFieldsForXml(ModelClass modelClass, Version version)
modelClass - current classversion - the version of the class to useprotected String getValue(String type, String initialValue, XmlFieldMetadata xmlFieldMetadata)
protected void writeDateParsingHelper(JSourceCode sc, String exception)
Copyright © 2001–2018 Codehaus Plexus. All rights reserved.