public abstract class AbstractXmlGenerator extends AbstractNamespaceBasedGenerator
METHOD_NAME_FROM, METHOD_NAME_TO, METHOD_SUPER, VERSIONMETHOD_NAME_DESERIALIZE, METHOD_NAME_DESERIALIZE_FROM, METHOD_NAME_SERIALIZE, PARAM_NAME_FORMAT_VERSION, PARAM_NAME_SERIALIZE_TO, SERIALIZER_CLASS_NAME_SUFFIX, VAR_NAME_OBJECTcodeGenerator, codeModel| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXmlGenerator(com.cedarsoft.codegen.CodeGenerator codeGenerator)
Creates a new generator
|
| Modifier and Type | Method and Description |
|---|---|
protected com.sun.codemodel.JMethod |
createConstructor(com.sun.codemodel.JDefinedClass serializerClass,
com.cedarsoft.codegen.model.DomainObjectDescriptor domainObjectDescriptor)
Creates the constructor for the given serializer class (if necessary)
|
protected String |
getDefaultElementName(com.cedarsoft.codegen.model.DomainObjectDescriptor domainObjectDescriptor)
Returns the default element name
|
createDefaultVersionRangeInvocation, getNamespaceaddDelegatingSerializerToConstructor, appendDeserializeStatement, appendSerializeStatement, constructDeserializedObject, createDeserializeMethodStub, createDeserializeWrapper, createSerializeMethodStub, createSerializerClassName, createSerializerExtendsExpression, fillDeSerializationMethods, finishConstructor, generateSerializer, getExceptionType, getSerializeFromType, getSerializerRefFor, getSerializeToTypegetCodeGenerator, getCodeModelprotected AbstractXmlGenerator(@Nonnull com.cedarsoft.codegen.CodeGenerator codeGenerator)
codeGenerator - the used code generator@Nonnull protected com.sun.codemodel.JMethod createConstructor(@Nonnull com.sun.codemodel.JDefinedClass serializerClass, @Nonnull com.cedarsoft.codegen.model.DomainObjectDescriptor domainObjectDescriptor)
AbstractGeneratorcreateConstructor in class AbstractGenerator<XmlDecisionCallback>serializerClass - the serialize classdomainObjectDescriptor - the domain object descriptorCopyright © 2013 cedarsoft GmbH. All Rights Reserved.