Liferay 6.1.2-ce-ga3

com.liferay.portal.json
Class JSONArrayImpl

java.lang.Object
  extended by com.liferay.portal.json.JSONArrayImpl
All Implemented Interfaces:
JSONArray

public class JSONArrayImpl
extends Object
implements JSONArray


Constructor Summary
JSONArrayImpl()
           
JSONArrayImpl(org.json.JSONArray jsonArray)
           
JSONArrayImpl(String json)
           
 
Method Summary
 boolean getBoolean(int index)
           
 double getDouble(int index)
           
 int getInt(int index)
           
 org.json.JSONArray getJSONArray()
           
 JSONArray getJSONArray(int index)
           
 JSONObject getJSONObject(int index)
           
 long getLong(int index)
           
 String getString(int index)
           
 boolean isNull(int index)
           
 String join(String separator)
           
 int length()
           
 JSONArray put(boolean value)
           
 JSONArray put(double value)
           
 JSONArray put(int value)
           
 JSONArray put(JSONArray value)
           
 JSONArray put(JSONObject value)
           
 JSONArray put(long value)
           
 JSONArray put(String value)
           
 String toString()
           
 String toString(int indentFactor)
           
 Writer write(Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONArrayImpl

public JSONArrayImpl()

JSONArrayImpl

public JSONArrayImpl(org.json.JSONArray jsonArray)

JSONArrayImpl

public JSONArrayImpl(String json)
              throws JSONException
Throws:
JSONException
Method Detail

getBoolean

public boolean getBoolean(int index)
Specified by:
getBoolean in interface JSONArray

getDouble

public double getDouble(int index)
Specified by:
getDouble in interface JSONArray

getInt

public int getInt(int index)
Specified by:
getInt in interface JSONArray

getJSONArray

public org.json.JSONArray getJSONArray()

getJSONArray

public JSONArray getJSONArray(int index)
Specified by:
getJSONArray in interface JSONArray

getJSONObject

public JSONObject getJSONObject(int index)
Specified by:
getJSONObject in interface JSONArray

getLong

public long getLong(int index)
Specified by:
getLong in interface JSONArray

getString

public String getString(int index)
Specified by:
getString in interface JSONArray

isNull

public boolean isNull(int index)
Specified by:
isNull in interface JSONArray

join

public String join(String separator)
            throws JSONException
Specified by:
join in interface JSONArray
Throws:
JSONException

length

public int length()
Specified by:
length 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(JSONArray value)
Specified by:
put in interface JSONArray

put

public JSONArray put(JSONObject value)
Specified by:
put in interface JSONArray

put

public JSONArray put(long value)
Specified by:
put in interface JSONArray

put

public JSONArray put(String value)
Specified by:
put in interface JSONArray

toString

public String toString()
Specified by:
toString in interface JSONArray
Overrides:
toString in class Object

toString

public String toString(int indentFactor)
                throws JSONException
Specified by:
toString in interface JSONArray
Throws:
JSONException

write

public Writer write(Writer writer)
             throws JSONException
Specified by:
write in interface JSONArray
Throws:
JSONException

Liferay 6.1.2-ce-ga3