com.cedarsoft.serialization.generator.output.serializer
Class AbstractXmlGenerator
java.lang.Object
com.cedarsoft.serialization.generator.output.GeneratorBase<T>
com.cedarsoft.serialization.generator.output.serializer.AbstractGenerator<XmlDecisionCallback>
com.cedarsoft.serialization.generator.output.serializer.AbstractNamespaceBasedGenerator
com.cedarsoft.serialization.generator.output.serializer.AbstractXmlGenerator
public abstract class AbstractXmlGenerator
- extends AbstractNamespaceBasedGenerator
|
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 String |
getDefaultElementName(com.cedarsoft.codegen.model.DomainObjectDescriptor domainObjectDescriptor)
Returns the default element name |
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractXmlGenerator
protected AbstractXmlGenerator(@NotNull
com.cedarsoft.codegen.CodeGenerator codeGenerator)
- Creates a new generator
- Parameters:
codeGenerator - the used code generator
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 classdomainObjectDescriptor - the domain object descriptor
- Returns:
- the created constructor
getDefaultElementName
@NotNull
@NonNls
protected String getDefaultElementName(@NotNull
com.cedarsoft.codegen.model.DomainObjectDescriptor domainObjectDescriptor)
- Returns the default element name
- Parameters:
domainObjectDescriptor - the descriptor
- Returns:
- the default element name
Copyright © 2011 cedarsoft GmbH. All Rights Reserved.