com.cedarsoft.serialization.generator.output.serializer
Class AbstractXmlGenerator

java.lang.Object
  extended by com.cedarsoft.serialization.generator.output.GeneratorBase<T>
      extended by com.cedarsoft.serialization.generator.output.serializer.AbstractGenerator<XmlDecisionCallback>
          extended by com.cedarsoft.serialization.generator.output.serializer.AbstractNamespaceBasedGenerator
              extended by com.cedarsoft.serialization.generator.output.serializer.AbstractXmlGenerator

public abstract class AbstractXmlGenerator
extends AbstractNamespaceBasedGenerator


Field Summary
 
Fields inherited from class com.cedarsoft.serialization.generator.output.serializer.AbstractNamespaceBasedGenerator
METHOD_NAME_FROM, METHOD_NAME_TO, METHOD_SUPER, VERSION
 
Fields inherited from class com.cedarsoft.serialization.generator.output.serializer.AbstractGenerator
METHOD_NAME_DESERIALIZE, METHOD_NAME_DESERIALIZE_FROM, METHOD_NAME_SERIALIZE, PARAM_NAME_FORMAT_VERSION, PARAM_NAME_SERIALIZE_TO, SERIALIZER_CLASS_NAME_SUFFIX, VAR_NAME_OBJECT
 
Fields inherited from class com.cedarsoft.serialization.generator.output.GeneratorBase
codeGenerator, codeModel
 
Constructor Summary
protected AbstractXmlGenerator(com.cedarsoft.codegen.CodeGenerator codeGenerator)
          Creates a new generator
 
Method Summary
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  java.lang.String getDefaultElementName(com.cedarsoft.codegen.model.DomainObjectDescriptor domainObjectDescriptor)
          Returns the default element name
 
Methods inherited from class com.cedarsoft.serialization.generator.output.serializer.AbstractNamespaceBasedGenerator
createDefaultVersionRangeInvocation, getNamespace
 
Methods inherited from class com.cedarsoft.serialization.generator.output.serializer.AbstractGenerator
addDelegatingSerializerToConstructor, appendDeserializeStatement, appendSerializeStatement, constructDeserializedObject, createDeserializeMethodStub, createSerializeMethodStub, createSerializerClassName, createSerializerExtendsExpression, fillDeSerializationMethods, finishConstructor, generateSerializer, getExceptionType, getSerializeFromType, getSerializerRefFor, getSerializeToType
 
Methods inherited from class com.cedarsoft.serialization.generator.output.GeneratorBase
getCodeGenerator, getCodeModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXmlGenerator

protected AbstractXmlGenerator(@NotNull
                               com.cedarsoft.codegen.CodeGenerator codeGenerator)
Creates a new generator

Parameters:
codeGenerator - the used code generator
Method Detail

createConstructor

@NotNull
protected com.sun.codemodel.JMethod createConstructor(@NotNull
                                                              com.sun.codemodel.JDefinedClass serializerClass,
                                                              @NotNull
                                                              com.cedarsoft.codegen.model.DomainObjectDescriptor domainObjectDescriptor)
Description copied from class: AbstractGenerator
Creates the constructor for the given serializer class (if necessary)

Specified by:
createConstructor in class AbstractGenerator<XmlDecisionCallback>
Parameters:
serializerClass - the serialize class
domainObjectDescriptor - the domain object descriptor
Returns:
the created constructor

getDefaultElementName

@NotNull
@NonNls
protected java.lang.String getDefaultElementName(@NotNull
                                                                com.cedarsoft.codegen.model.DomainObjectDescriptor domainObjectDescriptor)
Returns the default element name

Parameters:
domainObjectDescriptor - the descriptor
Returns:
the default element name


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.