com.liferay.portal.json
Class JSONArrayImpl
java.lang.Object
com.liferay.portal.json.JSONArrayImpl
- All Implemented Interfaces:
- JSONArray
public class JSONArrayImpl
- extends Object
- implements JSONArray
JSONArrayImpl
public JSONArrayImpl()
JSONArrayImpl
public JSONArrayImpl(org.json.JSONArray jsonArray)
JSONArrayImpl
public JSONArrayImpl(String json)
throws JSONException
- Throws:
JSONException
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