com.mysema.query.codegen
Class SimpleSerializerConfig
java.lang.Object
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
Constructor Summary |
SimpleSerializerConfig(boolean entityAccessors,
boolean listAccessors,
boolean mapAccessors,
boolean createDefaultVariable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final SerializerConfig DEFAULT
SimpleSerializerConfig
public SimpleSerializerConfig(boolean entityAccessors,
boolean listAccessors,
boolean mapAccessors,
boolean createDefaultVariable)
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.