com.liferay.portal.json
Class JSONArrayImpl
java.lang.Object
com.liferay.portal.json.JSONArrayImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.json.JSONArray
public class JSONArrayImpl
- extends java.lang.Object
- implements com.liferay.portal.kernel.json.JSONArray
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
boolean |
getBoolean(int index)
|
double |
getDouble(int index)
|
int |
getInt(int index)
|
org.json.JSONArray |
getJSONArray()
|
com.liferay.portal.kernel.json.JSONArray |
getJSONArray(int index)
|
com.liferay.portal.kernel.json.JSONObject |
getJSONObject(int index)
|
long |
getLong(int index)
|
java.lang.String |
getString(int index)
|
boolean |
isNull(int index)
|
java.lang.String |
join(java.lang.String separator)
|
int |
length()
|
com.liferay.portal.kernel.json.JSONArray |
put(boolean value)
|
com.liferay.portal.kernel.json.JSONArray |
put(double value)
|
com.liferay.portal.kernel.json.JSONArray |
put(int value)
|
com.liferay.portal.kernel.json.JSONArray |
put(com.liferay.portal.kernel.json.JSONArray value)
|
com.liferay.portal.kernel.json.JSONArray |
put(com.liferay.portal.kernel.json.JSONObject value)
|
com.liferay.portal.kernel.json.JSONArray |
put(long value)
|
com.liferay.portal.kernel.json.JSONArray |
put(java.lang.String value)
|
java.lang.String |
toString()
|
java.lang.String |
toString(int indentFactor)
|
java.io.Writer |
write(java.io.Writer writer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JSONArrayImpl
public JSONArrayImpl()
JSONArrayImpl
public JSONArrayImpl(java.lang.String json)
throws com.liferay.portal.kernel.json.JSONException
- Throws:
com.liferay.portal.kernel.json.JSONException
JSONArrayImpl
public JSONArrayImpl(org.json.JSONArray jsonArray)
getBoolean
public boolean getBoolean(int index)
- Specified by:
getBoolean
in interface com.liferay.portal.kernel.json.JSONArray
getDouble
public double getDouble(int index)
- Specified by:
getDouble
in interface com.liferay.portal.kernel.json.JSONArray
getInt
public int getInt(int index)
- Specified by:
getInt
in interface com.liferay.portal.kernel.json.JSONArray
getJSONArray
public org.json.JSONArray getJSONArray()
getJSONArray
public com.liferay.portal.kernel.json.JSONArray getJSONArray(int index)
- Specified by:
getJSONArray
in interface com.liferay.portal.kernel.json.JSONArray
getJSONObject
public com.liferay.portal.kernel.json.JSONObject getJSONObject(int index)
- Specified by:
getJSONObject
in interface com.liferay.portal.kernel.json.JSONArray
getLong
public long getLong(int index)
- Specified by:
getLong
in interface com.liferay.portal.kernel.json.JSONArray
getString
public java.lang.String getString(int index)
- Specified by:
getString
in interface com.liferay.portal.kernel.json.JSONArray
isNull
public boolean isNull(int index)
- Specified by:
isNull
in interface com.liferay.portal.kernel.json.JSONArray
join
public java.lang.String join(java.lang.String separator)
throws com.liferay.portal.kernel.json.JSONException
- Specified by:
join
in interface com.liferay.portal.kernel.json.JSONArray
- Throws:
com.liferay.portal.kernel.json.JSONException
length
public int length()
- Specified by:
length
in interface com.liferay.portal.kernel.json.JSONArray
put
public com.liferay.portal.kernel.json.JSONArray put(boolean value)
- Specified by:
put
in interface com.liferay.portal.kernel.json.JSONArray
put
public com.liferay.portal.kernel.json.JSONArray put(double value)
- Specified by:
put
in interface com.liferay.portal.kernel.json.JSONArray
put
public com.liferay.portal.kernel.json.JSONArray put(int value)
- Specified by:
put
in interface com.liferay.portal.kernel.json.JSONArray
put
public com.liferay.portal.kernel.json.JSONArray put(long value)
- Specified by:
put
in interface com.liferay.portal.kernel.json.JSONArray
put
public com.liferay.portal.kernel.json.JSONArray put(com.liferay.portal.kernel.json.JSONArray value)
- Specified by:
put
in interface com.liferay.portal.kernel.json.JSONArray
put
public com.liferay.portal.kernel.json.JSONArray put(com.liferay.portal.kernel.json.JSONObject value)
- Specified by:
put
in interface com.liferay.portal.kernel.json.JSONArray
put
public com.liferay.portal.kernel.json.JSONArray put(java.lang.String value)
- Specified by:
put
in interface com.liferay.portal.kernel.json.JSONArray
toString
public java.lang.String toString()
- Specified by:
toString
in interface com.liferay.portal.kernel.json.JSONArray
- Overrides:
toString
in class java.lang.Object
toString
public java.lang.String toString(int indentFactor)
throws com.liferay.portal.kernel.json.JSONException
- Specified by:
toString
in interface com.liferay.portal.kernel.json.JSONArray
- Throws:
com.liferay.portal.kernel.json.JSONException
write
public java.io.Writer write(java.io.Writer writer)
throws com.liferay.portal.kernel.json.JSONException
- Specified by:
write
in interface com.liferay.portal.kernel.json.JSONArray
- Throws:
com.liferay.portal.kernel.json.JSONException