com.liferay.portal.json
Class JSONArrayImpl
java.lang.Object
com.liferay.portal.json.JSONArrayImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.json.JSONArray, com.liferay.portal.kernel.json.JSONSerializable, Externalizable, Serializable, Iterable
public class JSONArrayImpl
- extends Object
- implements com.liferay.portal.kernel.json.JSONArray
- See Also:
- Serialized Form
JSONArrayImpl
public JSONArrayImpl()
JSONArrayImpl
public JSONArrayImpl(org.json.JSONArray jsonArray)
JSONArrayImpl
public JSONArrayImpl(String json)
throws com.liferay.portal.kernel.json.JSONException
- Throws:
com.liferay.portal.kernel.json.JSONException
get
public Object get(int index)
- Specified by:
get in interface com.liferay.portal.kernel.json.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 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
iterator
public Iterator<Object> iterator()
- Specified by:
iterator in interface Iterable
join
public String join(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(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(long value)
- Specified by:
put in interface com.liferay.portal.kernel.json.JSONArray
put
public com.liferay.portal.kernel.json.JSONArray put(Object value)
- Specified by:
put in interface com.liferay.portal.kernel.json.JSONArray
put
public com.liferay.portal.kernel.json.JSONArray put(String value)
- Specified by:
put in interface com.liferay.portal.kernel.json.JSONArray
readExternal
public void readExternal(ObjectInput objectInput)
throws IOException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
toJSONString
public String toJSONString()
- Specified by:
toJSONString in interface com.liferay.portal.kernel.json.JSONSerializable
toString
public String toString()
- Specified by:
toString in interface com.liferay.portal.kernel.json.JSONArray- Overrides:
toString in class Object
toString
public 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 Writer write(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
writeExternal
public void writeExternal(ObjectOutput objectOutput)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException