|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.widget.netvibes.json.JSONObject
org.jboss.portal.widget.netvibes.json.JSONObjectWrapper
public class JSONObjectWrapper
| Field Summary |
|---|
| Fields inherited from class org.jboss.portal.widget.netvibes.json.JSONObject |
|---|
NULL |
| Constructor Summary | |
|---|---|
JSONObjectWrapper(JSONObject o)
|
|
JSONObjectWrapper(java.lang.String string)
|
|
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.String key)
Get the boolean value associated with a key. |
int |
getInt(java.lang.String key)
Get the int value associated with a key. |
java.lang.String |
getString(java.lang.String key)
Get the string associated with a key. |
| Methods inherited from class org.jboss.portal.widget.netvibes.json.JSONObject |
|---|
accumulate, append, doubleToString, get, getDouble, getJSONArray, getJSONObject, getLong, getNames, getNames, has, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, toJSONArray, toString, toString, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JSONObjectWrapper(java.lang.String string)
throws JSONException
JSONException
public JSONObjectWrapper(JSONObject o)
throws JSONException
JSONException| Method Detail |
|---|
public java.lang.String getString(java.lang.String key)
JSONObject
getString in class JSONObjectkey - A key string.
public boolean getBoolean(java.lang.String key)
throws JSONException
JSONObject
getBoolean in class JSONObjectkey - A key string.
JSONException - if the value is not a Boolean or the String "true" or "false".public int getInt(java.lang.String key)
JSONObject
getInt in class JSONObjectkey - A key string.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||