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