public class BeanSerializer extends 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,
String javadocSuffix)
Create a new BeanSerializer
|
BeanSerializer(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) |
void |
addInterface(Class<?> iface) |
void |
addInterface(com.mysema.codegen.model.Type type) |
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(String javadocSuffix)
javadocSuffix
- public BeanSerializer(boolean propertyAnnotations)
propertyAnnotations
- public BeanSerializer(boolean propertyAnnotations, String javadocSuffix)
propertyAnnotations
- javadocSuffix
- public void serialize(EntityType model, SerializerConfig serializerConfig, com.mysema.codegen.CodeWriter writer) throws IOException
Serializer
EntityType
serialize
in interface Serializer
model
- EntityType to serializeserializerConfig
- TODOwriter
- serialization targetIOException
protected void addFullConstructor(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
protected void addToString(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
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 addInterface(Class<?> iface)
public void addInterface(com.mysema.codegen.model.Type type)
public void setAddToString(boolean addToString)
public void setAddFullConstructor(boolean addFullConstructor)
public void setPrintSupertype(boolean printSupertype)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.