org.apache.wink.json4j.compat.impl
Class ApacheJSONObjectDelegate
java.lang.Object
org.apache.wink.json4j.compat.impl.ApacheJSONObjectDelegate
- All Implemented Interfaces:
- JSONObject
public class ApacheJSONObjectDelegate
- extends java.lang.Object
- implements JSONObject
Method Summary |
JSONObject |
append(java.lang.String key,
java.lang.Object value)
|
java.lang.Object |
get(java.lang.String key)
|
boolean |
getBoolean(java.lang.String key)
|
double |
getDouble(java.lang.String key)
|
int |
getInt(java.lang.String key)
|
JSONArray |
getJSONArray(java.lang.String key)
|
JSONObject |
getJSONObject(java.lang.String key)
|
long |
getLong(java.lang.String key)
|
short |
getShort(java.lang.String key)
|
java.lang.String |
getString(java.lang.String key)
|
boolean |
has(java.lang.String key)
|
boolean |
isNull(java.lang.String key)
|
java.util.Iterator |
keys()
|
int |
length()
|
JSONArray |
names()
|
JSONObject |
put(java.lang.String key,
boolean value)
|
JSONObject |
put(java.lang.String key,
java.util.Collection value)
|
JSONObject |
put(java.lang.String key,
double value)
|
JSONObject |
put(java.lang.String key,
int value)
|
JSONObject |
put(java.lang.String key,
JSONObject value)
|
JSONObject |
put(java.lang.String key,
long value)
|
JSONObject |
put(java.lang.String key,
java.util.Map value)
|
JSONObject |
put(java.lang.String key,
java.lang.Object value)
|
JSONObject |
put(java.lang.String key,
short value)
|
java.lang.Object |
remove(java.lang.String key)
|
java.util.Iterator |
sortedKeys()
|
java.lang.String |
toString()
|
java.lang.String |
toString(int indent)
|
java.io.Writer |
write(java.io.Writer w)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
delegate
protected JSONObject delegate
ApacheJSONObjectDelegate
public ApacheJSONObjectDelegate()
ApacheJSONObjectDelegate
public ApacheJSONObjectDelegate(JSONObject jObj)
get
public java.lang.Object get(java.lang.String key)
- Specified by:
get
in interface JSONObject
getBoolean
public boolean getBoolean(java.lang.String key)
throws JSONException
- Specified by:
getBoolean
in interface JSONObject
- Throws:
JSONException
getDouble
public double getDouble(java.lang.String key)
throws JSONException
- Specified by:
getDouble
in interface JSONObject
- Throws:
JSONException
getInt
public int getInt(java.lang.String key)
throws JSONException
- Specified by:
getInt
in interface JSONObject
- Throws:
JSONException
getLong
public long getLong(java.lang.String key)
throws JSONException
- Specified by:
getLong
in interface JSONObject
- Throws:
JSONException
getShort
public short getShort(java.lang.String key)
throws JSONException
- Specified by:
getShort
in interface JSONObject
- Throws:
JSONException
getString
public java.lang.String getString(java.lang.String key)
throws JSONException
- Specified by:
getString
in interface JSONObject
- Throws:
JSONException
getJSONObject
public JSONObject getJSONObject(java.lang.String key)
throws JSONException
- Specified by:
getJSONObject
in interface JSONObject
- Throws:
JSONException
getJSONArray
public JSONArray getJSONArray(java.lang.String key)
- Specified by:
getJSONArray
in interface JSONObject
append
public JSONObject append(java.lang.String key,
java.lang.Object value)
throws JSONException
- Specified by:
append
in interface JSONObject
- Throws:
JSONException
put
public JSONObject put(java.lang.String key,
boolean value)
- Specified by:
put
in interface JSONObject
put
public JSONObject put(java.lang.String key,
java.util.Collection value)
throws JSONException
- Specified by:
put
in interface JSONObject
- Throws:
JSONException
put
public JSONObject put(java.lang.String key,
double value)
- Specified by:
put
in interface JSONObject
put
public JSONObject put(java.lang.String key,
int value)
- Specified by:
put
in interface JSONObject
put
public JSONObject put(java.lang.String key,
long value)
- Specified by:
put
in interface JSONObject
put
public JSONObject put(java.lang.String key,
JSONObject value)
put
public JSONObject put(java.lang.String key,
short value)
- Specified by:
put
in interface JSONObject
put
public JSONObject put(java.lang.String key,
java.util.Map value)
throws JSONException
- Specified by:
put
in interface JSONObject
- Throws:
JSONException
put
public JSONObject put(java.lang.String key,
java.lang.Object value)
throws JSONException
- Specified by:
put
in interface JSONObject
- Throws:
JSONException
remove
public java.lang.Object remove(java.lang.String key)
- Specified by:
remove
in interface JSONObject
has
public boolean has(java.lang.String key)
- Specified by:
has
in interface JSONObject
isNull
public boolean isNull(java.lang.String key)
- Specified by:
isNull
in interface JSONObject
keys
public java.util.Iterator keys()
- Specified by:
keys
in interface JSONObject
sortedKeys
public java.util.Iterator sortedKeys()
- Specified by:
sortedKeys
in interface JSONObject
length
public int length()
- Specified by:
length
in interface JSONObject
names
public JSONArray names()
- Specified by:
names
in interface JSONObject
toString
public java.lang.String toString()
- Specified by:
toString
in interface JSONObject
- Overrides:
toString
in class java.lang.Object
toString
public java.lang.String toString(int indent)
- Specified by:
toString
in interface JSONObject
write
public java.io.Writer write(java.io.Writer w)
throws JSONException
- Specified by:
write
in interface JSONObject
- Throws:
JSONException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.