Liferay 7.0-ce-b7 portal-impl

com.liferay.portal.json
Class JSONArrayImpl

java.lang.Object
  extended by 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

Constructor Summary
JSONArrayImpl()
           
JSONArrayImpl(org.json.JSONArray jsonArray)
           
JSONArrayImpl(String json)
           
 
Method Summary
 Object get(int index)
           
 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)
           
 String getString(int index)
           
 boolean isNull(int index)
           
 Iterator<Object> iterator()
           
 String join(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(Object value)
           
 com.liferay.portal.kernel.json.JSONArray put(String value)
           
 void readExternal(ObjectInput objectInput)
           
 String toJSONString()
           
 String toString()
           
 String toString(int indentFactor)
           
 Writer write(Writer writer)
           
 void writeExternal(ObjectOutput objectOutput)
           
 
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 com.liferay.portal.kernel.json.JSONException
Throws:
com.liferay.portal.kernel.json.JSONException
Method Detail

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

Liferay 7.0-ce-b7 portal-impl