org.sonar.wsclient.unmarshallers
Class JsonUtils

java.lang.Object
  extended by org.sonar.wsclient.unmarshallers.JsonUtils

public final class JsonUtils
extends Object


Method Summary
static org.json.simple.JSONArray getArray(Map obj, String field)
           
static Boolean getBoolean(Map obj, String field)
           
static Date getDate(Map obj, String field)
           
static Date getDateTime(Map obj, String field)
           
static Double getDouble(Map obj, String field)
           
static Integer getInteger(Map obj, String field)
           
static Long getLong(Map obj, String field)
           
static String getString(Map obj, String field)
           
static Date parseDate(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

@CheckForNull
public static String getString(Map obj,
                                            String field)

getInteger

@CheckForNull
public static Integer getInteger(Map obj,
                                              String field)

getBoolean

@CheckForNull
public static Boolean getBoolean(Map obj,
                                              String field)

getLong

@CheckForNull
public static Long getLong(Map obj,
                                        String field)

getDouble

@CheckForNull
public static Double getDouble(Map obj,
                                            String field)

getArray

@CheckForNull
public static org.json.simple.JSONArray getArray(Map obj,
                                                              String field)
Since:
2.5

getDateTime

@CheckForNull
public static Date getDateTime(Map obj,
                                            String field)

getDate

@CheckForNull
public static Date getDate(Map obj,
                                        String field)

parseDate

@CheckForNull
public static Date parseDate(@Nullable
                                          String value)


Copyright © 2009–2015 SonarSource. All rights reserved.