com.mysema.query.codegen
Class SimpleSerializerConfig

java.lang.Object
  extended by com.mysema.query.codegen.SimpleSerializerConfig
All Implemented Interfaces:
SerializerConfig

@Immutable
public final class SimpleSerializerConfig
extends Object
implements SerializerConfig

SimpleSerializerConfig is the default implementation of the SerializerConfig interface

Author:
tiwe

Field Summary
static SerializerConfig DEFAULT
           
 
Constructor Summary
SimpleSerializerConfig(boolean entityAccessors, boolean listAccessors, boolean mapAccessors, boolean createDefaultVariable)
           
 
Method Summary
 boolean createDefaultVariable()
           
static SerializerConfig getConfig(Config annotation)
           
 boolean useEntityAccessors()
           
 boolean useListAccessors()
           
 boolean useMapAccessors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final SerializerConfig DEFAULT
Constructor Detail

SimpleSerializerConfig

public SimpleSerializerConfig(boolean entityAccessors,
                              boolean listAccessors,
                              boolean mapAccessors,
                              boolean createDefaultVariable)
Method Detail

getConfig

public static SerializerConfig getConfig(Config annotation)

useEntityAccessors

public boolean useEntityAccessors()
Specified by:
useEntityAccessors in interface SerializerConfig
Returns:
if accessors are used for entity fields

useListAccessors

public boolean useListAccessors()
Specified by:
useListAccessors in interface SerializerConfig
Returns:
if indexed list accessors are used

useMapAccessors

public boolean useMapAccessors()
Specified by:
useMapAccessors in interface SerializerConfig
Returns:
if keyed map accessors are used

createDefaultVariable

public boolean createDefaultVariable()
Specified by:
createDefaultVariable in interface SerializerConfig
Returns:
if the default variable is created


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