|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectfi.foyt.foursquare.api.JSONFieldParser
public class JSONFieldParser
Class responsible of parsing API responses
| 方法摘要 | |
|---|---|
static FoursquareEntity[] |
parseEntities(Class<?> clazz,
org.json.JSONArray jsonArray,
boolean skipNonExistingFields)
Static method that parses JSON array into array of FoursquareEntities |
static FoursquareEntity[] |
parseEntitiesHash(Class<?> clazz,
org.json.JSONObject jsonHashList,
boolean skipNonExistingFields)
Static method that parses JSON "named array" into array of FoursquareEntities |
static FoursquareEntity |
parseEntity(Class<?> clazz,
org.json.JSONObject jsonObject,
boolean skipNonExistingFields)
Static method that parses single JSON Object into FoursquareEntity |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static FoursquareEntity[] parseEntities(Class<?> clazz,
org.json.JSONArray jsonArray,
boolean skipNonExistingFields)
throws FoursquareApiException
clazz - entity classjsonArray - JSON ArrayskipNonExistingFields - whether parser should ignore non-existing fields
FoursquareApiException - when something unexpected happens
public static FoursquareEntity[] parseEntitiesHash(Class<?> clazz,
org.json.JSONObject jsonHashList,
boolean skipNonExistingFields)
throws FoursquareApiException
clazz - entity classjsonHashList - JSON "named array"skipNonExistingFields - whether parser should ignore non-existing fields
FoursquareApiException - when something unexpected happens
public static FoursquareEntity parseEntity(Class<?> clazz,
org.json.JSONObject jsonObject,
boolean skipNonExistingFields)
throws FoursquareApiException
clazz - entity classjsonObject - JSON ObjectskipNonExistingFields - whether parser should ignore non-existing fields
FoursquareApiException - when something unexpected happens
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||