public class JsonAnnotationManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonAnnotationManager.TypeData
Type information read from annotations.
|
| Constructor and Description |
|---|
JsonAnnotationManager() |
| Modifier and Type | Method and Description |
|---|---|
protected JsonAnnotationManager.TypeData |
_lookupTypeData(java.lang.Class type)
Lookups type data and creates one if missing.
|
protected JsonAnnotationManager.TypeData |
findSubclassTypeData(java.lang.Class type)
Finds type data of first annotated superclass or interface.
|
static JsonAnnotationManager |
get()
Returns default instance.
|
JsonAnnotationManager.TypeData |
lookupTypeData(java.lang.Class type)
Returns all includes for given type.
|
void |
reset()
Resets type data map.
|
java.lang.String |
resolveJsonName(java.lang.Class type,
java.lang.String name)
Returns different name of a property if set by annotation.
|
java.lang.String |
resolveRealName(java.lang.Class type,
java.lang.String jsonName)
Returns real property name for given JSON property.
|
public static JsonAnnotationManager get()
public void reset()
public JsonAnnotationManager.TypeData lookupTypeData(java.lang.Class type)
protected JsonAnnotationManager.TypeData _lookupTypeData(java.lang.Class type)
protected JsonAnnotationManager.TypeData findSubclassTypeData(java.lang.Class type)
public java.lang.String resolveJsonName(java.lang.Class type,
java.lang.String name)
public java.lang.String resolveRealName(java.lang.Class type,
java.lang.String jsonName)
Copyright © 2003-present Jodd Team