org.apache.wink.json4j.compat.impl
Class ApacheJSONArrayDelegate
java.lang.Object
org.apache.wink.json4j.compat.impl.ApacheJSONArrayDelegate
- All Implemented Interfaces:
- JSONArray
public class ApacheJSONArrayDelegate
- extends Object
- implements JSONArray
delegate
protected JSONArray delegate
ApacheJSONArrayDelegate
public ApacheJSONArrayDelegate()
ApacheJSONArrayDelegate
public ApacheJSONArrayDelegate(JSONArray jArray)
get
public Object get(int index)
- Specified by:
get
in interface JSONArray
getBoolean
public boolean getBoolean(int index)
throws JSONException
- Specified by:
getBoolean
in interface JSONArray
- Throws:
JSONException
getDouble
public double getDouble(int index)
throws JSONException
- Specified by:
getDouble
in interface JSONArray
- Throws:
JSONException
getInt
public int getInt(int index)
throws JSONException
- Specified by:
getInt
in interface JSONArray
- Throws:
JSONException
getLong
public long getLong(int index)
throws JSONException
- Specified by:
getLong
in interface JSONArray
- Throws:
JSONException
getShort
public short getShort(int index)
throws JSONException
- Specified by:
getShort
in interface JSONArray
- Throws:
JSONException
getString
public String getString(int index)
throws JSONException
- Specified by:
getString
in interface JSONArray
- Throws:
JSONException
getJSONArray
public JSONArray getJSONArray(int index)
throws JSONException
- Specified by:
getJSONArray
in interface JSONArray
- Throws:
JSONException
getJSONObject
public JSONObject getJSONObject(int index)
throws JSONException
- Specified by:
getJSONObject
in interface JSONArray
- Throws:
JSONException
join
public String join(String separator)
- Specified by:
join
in interface JSONArray
put
public JSONArray put(boolean value)
- Specified by:
put
in interface JSONArray
put
public JSONArray put(double value)
- Specified by:
put
in interface JSONArray
put
public JSONArray put(int value)
- Specified by:
put
in interface JSONArray
put
public JSONArray put(short value)
- Specified by:
put
in interface JSONArray
put
public JSONArray put(Collection value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(int index,
boolean value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(int index,
Collection value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(int index,
double value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(int index,
int value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(int index,
long value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(int index,
short value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(int index,
Map value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(int index,
Object value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(long value)
- Specified by:
put
in interface JSONArray
put
public JSONArray put(Map value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
put
public JSONArray put(Object value)
throws JSONException
- Specified by:
put
in interface JSONArray
- Throws:
JSONException
remove
public Object remove(int index)
- Specified by:
remove
in interface JSONArray
isNull
public boolean isNull(int index)
- Specified by:
isNull
in interface JSONArray
length
public int length()
- Specified by:
length
in interface JSONArray
toString
public String toString()
- Specified by:
toString
in interface JSONArray
- Overrides:
toString
in class Object
toString
public String toString(int indent)
- Specified by:
toString
in interface JSONArray
write
public Writer write(Writer w)
throws JSONException
- Specified by:
write
in interface JSONArray
- Throws:
JSONException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.