public class BeanSerializer extends java.lang.Object implements Serializer
Serializer
implementation which serializes EntityType
instances into JavaBean classesConstructor and Description |
---|
BeanSerializer()
Create a new BeanSerializer
|
BeanSerializer(boolean propertyAnnotations)
Create a new BeanSerializer
|
BeanSerializer(boolean propertyAnnotations,
java.lang.String javadocSuffix)
Create a new BeanSerializer
|
BeanSerializer(java.lang.String javadocSuffix)
Create a new BeanSerializer with the given javadoc suffix
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFullConstructor(EntityType model,
com.mysema.codegen.CodeWriter writer) |
protected void |
addToString(EntityType model,
com.mysema.codegen.CodeWriter writer) |
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 |
setAddFullConstructor(boolean addFullConstructor) |
void |
setAddToString(boolean addToString) |
void |
setPrintSupertype(boolean printSupertype) |
public BeanSerializer()
public BeanSerializer(java.lang.String javadocSuffix)
javadocSuffix
- public BeanSerializer(boolean propertyAnnotations)
propertyAnnotations
- public BeanSerializer(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 addFullConstructor(EntityType model, com.mysema.codegen.CodeWriter writer) throws java.io.IOException
java.io.IOException
protected void addToString(EntityType model, com.mysema.codegen.CodeWriter writer) throws java.io.IOException
java.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 setAddToString(boolean addToString)
public void setAddFullConstructor(boolean addFullConstructor)
public void setPrintSupertype(boolean printSupertype)
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.