FieldSerializer (fastjson 1.1.26 API)

fastjson



com.alibaba.fastjson.serializer Class FieldSerializer

java.lang.Object
  extended by com.alibaba.fastjson.serializer.FieldSerializer
All Implemented Interfaces:
Comparable<FieldSerializer>
Direct Known Subclasses:
ObjectFieldSerializer

public abstract class FieldSerializer
extends Object
implements Comparable<FieldSerializer>

Author:
wenshao

Constructor Summary
 
Method Summary
 int
 Field
 Method
 String
 Object
 boolean
 void
abstract  void
 
Methods inherited from class java.lang.Object
 

Constructor Detail

FieldSerializer

public FieldSerializer(FieldInfo fieldInfo)
Method Detail

isWriteNull

public boolean isWriteNull()

getField

public Field getField()

getName

public String getName()

getMethod

public Method getMethod()

writePrefix

public void writePrefix(JSONSerializer serializer)
                 throws IOException
Throws:
IOException

compareTo

public int compareTo(FieldSerializer o)
Specified by:
compareTo in interface Comparable<FieldSerializer>

getPropertyValue

public Object getPropertyValue(Object object)
                        throws Exception
Throws:
Exception

writeProperty

public abstract void writeProperty(JSONSerializer serializer,
                                   Object propertyValue)
                            throws Exception
Throws:
Exception


Copyright © 2012 Alibaba Group. All Rights Reserved.