org.sonar.plugins.api.web.gwt.client.webservices
Class JsonUtils

java.lang.Object
  extended by org.sonar.plugins.api.web.gwt.client.webservices.JsonUtils

public class JsonUtils
extends java.lang.Object


Nested Class Summary
static interface JsonUtils.JSONHandler
           
 
Constructor Summary
JsonUtils()
           
 
Method Summary
static void dispatchJSON(com.google.gwt.core.client.JavaScriptObject jsonObj, JsonUtils.JSONHandler handler)
           
static com.google.gwt.json.client.JSONObject getArray(com.google.gwt.json.client.JSONValue json, int i)
           
static int getArraySize(com.google.gwt.json.client.JSONValue array)
           
static java.lang.Double getDouble(com.google.gwt.json.client.JSONObject json, java.lang.String field)
           
static java.lang.String getString(com.google.gwt.json.client.JSONObject json, java.lang.String field)
           
static void makeJSONRequest(int requestId, java.lang.String url, JsonUtils.JSONHandler handler)
           
static void requestJson(java.lang.String url, JsonUtils.JSONHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonUtils

public JsonUtils()
Method Detail

requestJson

public static void requestJson(java.lang.String url,
                               JsonUtils.JSONHandler handler)

makeJSONRequest

public static void makeJSONRequest(int requestId,
                                   java.lang.String url,
                                   JsonUtils.JSONHandler handler)

dispatchJSON

public static void dispatchJSON(com.google.gwt.core.client.JavaScriptObject jsonObj,
                                JsonUtils.JSONHandler handler)

getString

public static java.lang.String getString(com.google.gwt.json.client.JSONObject json,
                                         java.lang.String field)

getDouble

public static java.lang.Double getDouble(com.google.gwt.json.client.JSONObject json,
                                         java.lang.String field)

getArray

public static com.google.gwt.json.client.JSONObject getArray(com.google.gwt.json.client.JSONValue json,
                                                             int i)

getArraySize

public static int getArraySize(com.google.gwt.json.client.JSONValue array)


Copyright © 2009 SonarSource SA. All Rights Reserved.