org.apache.wink.json4j.compat
Interface JSONObject
- All Known Implementing Classes:
- ApacheJSONObjectDelegate
public interface JSONObject
get
Object get(String key)
getBoolean
boolean getBoolean(String key)
throws JSONException
- Throws:
JSONException
getDouble
double getDouble(String key)
throws JSONException
- Throws:
JSONException
getInt
int getInt(String key)
throws JSONException
- Throws:
JSONException
getShort
short getShort(String key)
throws JSONException
- Throws:
JSONException
getLong
long getLong(String key)
throws JSONException
- Throws:
JSONException
getJSONArray
JSONArray getJSONArray(String key)
throws JSONException
- Throws:
JSONException
getJSONObject
JSONObject getJSONObject(String key)
throws JSONException
- Throws:
JSONException
getString
String getString(String key)
throws JSONException
- Throws:
JSONException
append
JSONObject append(String key,
Object value)
throws JSONException
- Throws:
JSONException
put
JSONObject put(String key,
boolean value)
put
JSONObject put(String key,
Collection value)
throws JSONException
- Throws:
JSONException
put
JSONObject put(String key,
double value)
put
JSONObject put(String key,
int value)
put
JSONObject put(String key,
long value)
put
JSONObject put(String key,
short value)
put
JSONObject put(String key,
Map value)
throws JSONException
- Throws:
JSONException
put
JSONObject put(String key,
Object value)
throws JSONException
- Throws:
JSONException
remove
Object remove(String key)
has
boolean has(String key)
isNull
boolean isNull(String key)
keys
Iterator keys()
sortedKeys
Iterator sortedKeys()
length
int length()
names
JSONArray names()
toString
String toString()
- Overrides:
toString
in class Object
toString
String toString(int indent)
write
Writer write(Writer w)
throws JSONException
- Throws:
JSONException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.