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

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

public abstract class AbstractXmlGenerator
extends AbstractGenerator<XmlDecisionCallback>


Field Summary
static String METHOD_NAME_GET_EXPECTED_SERIALIZED
           
static String METHOD_NAME_GET_SERIALIZED_XML
           
 
Fields inherited from class com.cedarsoft.serialization.generator.output.serializer.test.AbstractGenerator
METHOD_NAME_ASSERT_EQUALS, METHOD_NAME_CREATE_OBJECT_TO_SERIALIZE, METHOD_NAME_GET_SERIALIZER, METHOD_NAME_VERIFY_DESERIALIZED, NUMBER_OF_OBJECTS, PARAM_NAME_DESERIALIZED, PARAM_NAME_VERSION, SERIALIZER_TEST_NAME_SUFFIX, SERIALIZER_VERSION_TEST_NAME_SUFFIX
 
Fields inherited from class com.cedarsoft.serialization.generator.output.GeneratorBase
codeGenerator, codeModel
 
Constructor Summary
protected AbstractXmlGenerator(com.cedarsoft.codegen.CodeGenerator<XmlDecisionCallback> codeGenerator)
           
 
Method Summary
protected  void createGetSerializedMethod(com.sun.codemodel.JDefinedClass testClass, com.sun.codemodel.JClass serializerClass, com.sun.codemodel.JClass domainType)
          Creates the getSerialized method (used for versioned tests
protected  com.sun.codemodel.JMethod createVerifyMethod(com.sun.codemodel.JDefinedClass serializerTestClass, com.sun.codemodel.JClass serializerClass, com.sun.codemodel.JClass domainType)
           
 
Methods inherited from class com.cedarsoft.serialization.generator.output.serializer.test.AbstractGenerator
createCreateObjectsToSerializeMethod, createDomainObjectCreationExpression, createExtendsClass, createGetSerializerMethod, createSerializerTestName, createSerializerVersionTestName, createVersionExtendsClass, createVersionVerifyMethod, generateSerializerTest, generateSerializerVersionTest
 
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
 

Field Detail

METHOD_NAME_GET_EXPECTED_SERIALIZED

@NonNls
public static final String METHOD_NAME_GET_EXPECTED_SERIALIZED
See Also:
Constant Field Values

METHOD_NAME_GET_SERIALIZED_XML

@NonNls
public static final String METHOD_NAME_GET_SERIALIZED_XML
See Also:
Constant Field Values
Constructor Detail

AbstractXmlGenerator

protected AbstractXmlGenerator(@NotNull
                               com.cedarsoft.codegen.CodeGenerator<XmlDecisionCallback> codeGenerator)
Method Detail

createGetSerializedMethod

protected void createGetSerializedMethod(@NotNull
                                         com.sun.codemodel.JDefinedClass testClass,
                                         @NotNull
                                         com.sun.codemodel.JClass serializerClass,
                                         @NotNull
                                         com.sun.codemodel.JClass domainType)
Description copied from class: AbstractGenerator
Creates the getSerialized method (used for versioned tests

Specified by:
createGetSerializedMethod in class AbstractGenerator<XmlDecisionCallback>
Parameters:
testClass - the test class
serializerClass - the serializer class
domainType - the domain type

createVerifyMethod

@NotNull
protected com.sun.codemodel.JMethod createVerifyMethod(@NotNull
                                                               com.sun.codemodel.JDefinedClass serializerTestClass,
                                                               @NotNull
                                                               com.sun.codemodel.JClass serializerClass,
                                                               @NotNull
                                                               com.sun.codemodel.JClass domainType)
Specified by:
createVerifyMethod in class AbstractGenerator<XmlDecisionCallback>


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.