com.mysema.query.codegen
Class GroovyBeanSerializer

java.lang.Object
  extended by com.mysema.query.codegen.GroovyBeanSerializer
All Implemented Interfaces:
Serializer

public class GroovyBeanSerializer
extends Object
implements Serializer

GroovyBeanSerializer is a Serializer implementation which serializes EntityType instances into Groovy classes

Author:
tiwe

Constructor Summary
GroovyBeanSerializer()
          Create a new GroovyBeanSerializer instance
GroovyBeanSerializer(boolean propertyAnnotations)
          Create a new GroovyBeanSerializer instance
GroovyBeanSerializer(boolean propertyAnnotations, String javadocSuffix)
          Create a new GroovyBeanSerializer instance
GroovyBeanSerializer(String javadocSuffix)
          Create a new GroovyBeanSerializer instance
 
Method Summary
protected  void bodyEnd(EntityType model, com.mysema.codegen.CodeWriter writer)
           
protected  void bodyStart(EntityType model, com.mysema.codegen.CodeWriter writer)
           
 void serialize(EntityType model, SerializerConfig serializerConfig, com.mysema.codegen.CodeWriter writer)
          Serialize the given EntityType
 void setPrintSupertype(boolean printSupertype)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyBeanSerializer

public GroovyBeanSerializer()
Create a new GroovyBeanSerializer instance


GroovyBeanSerializer

public GroovyBeanSerializer(String javadocSuffix)
Create a new GroovyBeanSerializer instance

Parameters:
javadocSuffix -

GroovyBeanSerializer

public GroovyBeanSerializer(boolean propertyAnnotations)
Create a new GroovyBeanSerializer instance

Parameters:
propertyAnnotations -

GroovyBeanSerializer

public GroovyBeanSerializer(boolean propertyAnnotations,
                            String javadocSuffix)
Create a new GroovyBeanSerializer instance

Parameters:
propertyAnnotations -
javadocSuffix -
Method Detail

serialize

public void serialize(EntityType model,
                      SerializerConfig serializerConfig,
                      com.mysema.codegen.CodeWriter writer)
               throws IOException
Description copied from interface: Serializer
Serialize the given EntityType

Specified by:
serialize in interface Serializer
Parameters:
model - EntityType to serialize
serializerConfig - TODO
writer - serialization target
Throws:
IOException

bodyStart

protected void bodyStart(EntityType model,
                         com.mysema.codegen.CodeWriter writer)
                  throws IOException
Throws:
IOException

bodyEnd

protected void bodyEnd(EntityType model,
                       com.mysema.codegen.CodeWriter writer)
                throws IOException
Throws:
IOException

setPrintSupertype

public void setPrintSupertype(boolean printSupertype)


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.