public class GroovyBeanSerializer extends Object implements Serializer
GroovyBeanSerializer
is a 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,
String javadocSuffix)
Create a new
GroovyBeanSerializer instance |
GroovyBeanSerializer(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()
GroovyBeanSerializer
instancepublic GroovyBeanSerializer(String javadocSuffix)
GroovyBeanSerializer
instancejavadocSuffix
- suffix to be used after the simple name in class level javadocpublic GroovyBeanSerializer(boolean propertyAnnotations)
GroovyBeanSerializer
instancepropertyAnnotations
- true, to serialize property annotationspublic GroovyBeanSerializer(boolean propertyAnnotations, String javadocSuffix)
GroovyBeanSerializer
instancepropertyAnnotations
- true, to serialize property annotationsjavadocSuffix
- suffix to be used after the simple name in class level javadocpublic void serialize(EntityType model, SerializerConfig serializerConfig, com.mysema.codegen.CodeWriter writer) throws IOException
Serializer
EntityType
serialize
in interface Serializer
model
- EntityType to serializeserializerConfig
- serializer configurationwriter
- serialization targetIOException
protected void bodyStart(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
protected void bodyEnd(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
public void setPrintSupertype(boolean printSupertype)
Copyright © 2007–2016 Querydsl. All rights reserved.