public abstract class FieldSerializer extends Object
| 构造器和说明 |
|---|
FieldSerializer(FieldInfo fieldInfo) |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2015 Alibaba Group. All rights reserved.