org.apache.wink.json4j.compat.impl
Class ApacheJSONArrayDelegate

java.lang.Object
  extended by org.apache.wink.json4j.compat.impl.ApacheJSONArrayDelegate
All Implemented Interfaces:
JSONArray

public class ApacheJSONArrayDelegate
extends Object
implements JSONArray


Field Summary
protected  JSONArray delegate
           
 
Constructor Summary
ApacheJSONArrayDelegate()
           
ApacheJSONArrayDelegate(JSONArray jArray)
           
 
Method Summary
 Object get(int index)
           
 boolean getBoolean(int index)
           
 double getDouble(int index)
           
 int getInt(int index)
           
 JSONArray getJSONArray(int index)
           
 JSONObject getJSONObject(int index)
           
 long getLong(int index)
           
 short getShort(int index)
           
 String getString(int index)
           
 boolean isNull(int index)
           
 String join(String separator)
           
 int length()
           
 JSONArray put(boolean value)
           
 JSONArray put(Collection value)
           
 JSONArray put(double value)
           
 JSONArray put(int value)
           
 JSONArray put(int index, boolean value)
           
 JSONArray put(int index, Collection value)
           
 JSONArray put(int index, double value)
           
 JSONArray put(int index, int value)
           
 JSONArray put(int index, long value)
           
 JSONArray put(int index, Map value)
           
 JSONArray put(int index, Object value)
           
 JSONArray put(int index, short value)
           
 JSONArray put(long value)
           
 JSONArray put(Map value)
           
 JSONArray put(Object value)
           
 JSONArray put(short value)
           
 Object remove(int index)
           
 String toString()
           
 String toString(int indent)
           
 Writer write(Writer w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

protected JSONArray delegate
Constructor Detail

ApacheJSONArrayDelegate

public ApacheJSONArrayDelegate()

ApacheJSONArrayDelegate

public ApacheJSONArrayDelegate(JSONArray jArray)
Method Detail

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.