public class JsonAnnotationManager
extends java.lang.Object
Constructor and Description |
---|
JsonAnnotationManager() |
Modifier and Type | Method and Description |
---|---|
protected TypeData |
_lookupTypeData(java.lang.Class type)
Lookups type data and creates one if missing.
|
protected TypeData |
findSubclassTypeData(java.lang.Class type)
Finds type data of first annotated superclass or interface.
|
static JsonAnnotationManager |
get()
Returns instance of this class.
|
TypeData |
lookupTypeData(java.lang.Class type)
Returns all includes for given type.
|
void |
reset() |
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.
|
JsonAnnotationManager |
setJsonAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> jsonAnnotation)
Sets different annotation.
|
JsonAnnotationManager |
setSerializationSubclassAware(boolean serializationSubclassAware)
When set searches for first annotated class or interface and use it's data.
|
public static JsonAnnotationManager get()
public TypeData lookupTypeData(java.lang.Class type)
protected TypeData _lookupTypeData(java.lang.Class type)
protected 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)
public JsonAnnotationManager setSerializationSubclassAware(boolean serializationSubclassAware)
public JsonAnnotationManager setJsonAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> jsonAnnotation)
public void reset()
Copyright © 2003-present Jodd Team