public class FieldSerializer extends Object implements Comparable<FieldSerializer>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
browserCompatible |
protected boolean |
disableCircularReferenceDetect |
protected int |
features |
protected BeanContext |
fieldContext |
FieldInfo |
fieldInfo |
protected boolean |
persistenceXToMany |
protected boolean |
serializeUsing |
protected boolean |
writeEnumUsingName |
protected boolean |
writeEnumUsingToString |
protected boolean |
writeNull |
| Constructor and Description |
|---|
FieldSerializer(Class<?> beanType,
FieldInfo fieldInfo) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FieldSerializer o) |
Object |
getPropertyValue(Object object) |
Object |
getPropertyValueDirect(Object object) |
void |
writePrefix(JSONSerializer serializer) |
void |
writeValue(JSONSerializer serializer,
Object propertyValue) |
public final FieldInfo fieldInfo
protected final boolean writeNull
protected int features
protected BeanContext fieldContext
protected boolean writeEnumUsingToString
protected boolean writeEnumUsingName
protected boolean disableCircularReferenceDetect
protected boolean serializeUsing
protected boolean persistenceXToMany
protected boolean browserCompatible
public void writePrefix(JSONSerializer serializer) throws IOException
IOExceptionpublic Object getPropertyValueDirect(Object object) throws InvocationTargetException, IllegalAccessException
public Object getPropertyValue(Object object) throws InvocationTargetException, IllegalAccessException
public int compareTo(FieldSerializer o)
compareTo in interface Comparable<FieldSerializer>public void writeValue(JSONSerializer serializer, Object propertyValue) throws Exception
ExceptionCopyright © 2023. All rights reserved.