public class GroovyBeanSerializer extends java.lang.Object implements Serializer
Serializer
implementation which serializes EntityType
instances into Groovy classesConstructor and Description |
---|
GroovyBeanSerializer()
Create a new GroovyBeanSerializer instance
|
GroovyBeanSerializer(boolean propertyAnnotations)
Create a new GroovyBeanSerializer instance
|
GroovyBeanSerializer(boolean propertyAnnotations,
java.lang.String javadocSuffix)
Create a new GroovyBeanSerializer instance
|
GroovyBeanSerializer(java.lang.String javadocSuffix)
Create a new GroovyBeanSerializer instance
|
Modifier and Type | Method and Description |
---|---|
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) |
public GroovyBeanSerializer()
public GroovyBeanSerializer(java.lang.String javadocSuffix)
javadocSuffix
- public GroovyBeanSerializer(boolean propertyAnnotations)
propertyAnnotations
- public GroovyBeanSerializer(boolean propertyAnnotations, java.lang.String javadocSuffix)
propertyAnnotations
- javadocSuffix
- public void serialize(EntityType model, SerializerConfig serializerConfig, com.mysema.codegen.CodeWriter writer) throws java.io.IOException
Serializer
EntityType
serialize
in interface Serializer
model
- EntityType to serializeserializerConfig
- TODOwriter
- serialization targetjava.io.IOException
protected void bodyStart(EntityType model, com.mysema.codegen.CodeWriter writer) throws java.io.IOException
java.io.IOException
protected void bodyEnd(EntityType model, com.mysema.codegen.CodeWriter writer) throws java.io.IOException
java.io.IOException
public void setPrintSupertype(boolean printSupertype)
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.