public abstract class FieldSerializer extends Object
| Constructor and Description |
|---|
FieldSerializer(FieldInfo fieldInfo) |
| Modifier and Type | Method and Description |
|---|---|
Field |
getField() |
String |
getLabel() |
Method |
getMethod() |
String |
getName() |
Object |
getPropertyValue(Object object) |
boolean |
isWriteNull() |
void |
writePrefix(JSONSerializer serializer) |
abstract void |
writeProperty(JSONSerializer serializer,
Object propertyValue) |
abstract void |
writeValue(JSONSerializer serializer,
Object propertyValue) |
public FieldSerializer(FieldInfo fieldInfo)
public boolean isWriteNull()
public Field getField()
public String getName()
public Method getMethod()
public String getLabel()
public void writePrefix(JSONSerializer serializer) throws IOException
IOExceptionpublic abstract void writeProperty(JSONSerializer serializer, Object propertyValue) throws Exception
Exceptionpublic abstract void writeValue(JSONSerializer serializer, Object propertyValue) throws Exception
ExceptionCopyright © 2012–2020 Alibaba Group. All rights reserved.