public class SerializeConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static SerializeConfig |
globalInstance |
PropertyNamingStrategy |
propertyNamingStrategy |
| Constructor and Description |
|---|
SerializeConfig() |
| Modifier and Type | Method and Description |
|---|---|
ObjectSerializer |
get(Class<?> clazz) |
static SerializeConfig |
getGlobalInstance() |
String |
getTypeKey() |
boolean |
put(Type key,
ObjectSerializer value) |
ObjectSerializer |
registerIfNotExists(Class<?> clazz) |
ObjectSerializer |
registerIfNotExists(Class<?> clazz,
int classModifers,
boolean fieldOnly,
boolean jsonTypeSupport,
boolean jsonFieldSupport,
boolean fieldGenericSupport) |
void |
setTypeKey(String typeKey) |
public static final SerializeConfig globalInstance
public PropertyNamingStrategy propertyNamingStrategy
public static final SerializeConfig getGlobalInstance()
public ObjectSerializer registerIfNotExists(Class<?> clazz)
public ObjectSerializer registerIfNotExists(Class<?> clazz, int classModifers, boolean fieldOnly, boolean jsonTypeSupport, boolean jsonFieldSupport, boolean fieldGenericSupport)
public ObjectSerializer get(Class<?> clazz)
public boolean put(Type key, ObjectSerializer value)
public String getTypeKey()
public void setTypeKey(String typeKey)
Copyright © 2012–2017 Alibaba Group. All rights reserved.