org.eclipse.jetty.util.ajax
类 JSONObjectConvertor

java.lang.Object
  继承者 org.eclipse.jetty.util.ajax.JSONObjectConvertor
所有已实现的接口:
JSON.Convertor

public class JSONObjectConvertor
extends Object
implements JSON.Convertor

Convert an Object to JSON using reflection on getters methods.


构造方法摘要
JSONObjectConvertor()
           
JSONObjectConvertor(boolean fromJSON)
           
JSONObjectConvertor(boolean fromJSON, String[] excluded)
           
 
方法摘要
 Object fromJSON(Map map)
           
protected  boolean includeField(String name, Object o, Method m)
           
 void toJSON(Object obj, JSON.Output out)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

JSONObjectConvertor

public JSONObjectConvertor()

JSONObjectConvertor

public JSONObjectConvertor(boolean fromJSON)

JSONObjectConvertor

public JSONObjectConvertor(boolean fromJSON,
                           String[] excluded)
参数:
fromJSON -
excluded - An array of field names to exclude from the conversion
方法详细信息

fromJSON

public Object fromJSON(Map map)
指定者:
接口 JSON.Convertor 中的 fromJSON

toJSON

public void toJSON(Object obj,
                   JSON.Output out)
指定者:
接口 JSON.Convertor 中的 toJSON

includeField

protected boolean includeField(String name,
                               Object o,
                               Method m)


Copyright © 2013. All Rights Reserved.