Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.json
Interface JSONObject


public interface JSONObject


Method Summary
 boolean getBoolean(String key)
           
 boolean getBoolean(String key, boolean defaultValue)
           
 double getDouble(String key)
           
 double getDouble(String key, double defaultValue)
           
 int getInt(String key)
           
 int getInt(String key, int defaultValue)
           
 JSONArray getJSONArray(String key)
           
 JSONObject getJSONObject(String key)
           
 long getLong(String key)
           
 long getLong(String key, long defaultValue)
           
 String getString(String key)
           
 String getString(String key, String defaultValue)
           
 boolean has(String key)
           
 boolean isNull(String key)
           
 Iterator<String> keys()
           
 int length()
           
 JSONArray names()
           
 JSONObject put(String key, boolean value)
           
 JSONObject put(String key, Date value)
           
 JSONObject put(String key, double value)
           
 JSONObject put(String key, int value)
           
 JSONObject put(String key, JSONArray value)
           
 JSONObject put(String key, JSONObject value)
           
 JSONObject put(String key, long value)
           
 JSONObject put(String key, String value)
           
 JSONObject putException(Exception exception)
           
 Object remove(String key)
           
 String toString()
           
 String toString(int indentFactor)
           
 Writer write(Writer writer)
           
 

Method Detail

getBoolean

boolean getBoolean(String key)

getBoolean

boolean getBoolean(String key,
                   boolean defaultValue)

getDouble

double getDouble(String key)

getDouble

double getDouble(String key,
                 double defaultValue)

getInt

int getInt(String key)

getInt

int getInt(String key,
           int defaultValue)

getJSONArray

JSONArray getJSONArray(String key)

getJSONObject

JSONObject getJSONObject(String key)

getLong

long getLong(String key)

getLong

long getLong(String key,
             long defaultValue)

getString

String getString(String key)

getString

String getString(String key,
                 String defaultValue)

has

boolean has(String key)

isNull

boolean isNull(String key)

keys

Iterator<String> keys()

length

int length()

names

JSONArray names()

put

JSONObject put(String key,
               boolean value)

put

JSONObject put(String key,
               Date value)

put

JSONObject put(String key,
               double value)

put

JSONObject put(String key,
               int value)

put

JSONObject put(String key,
               JSONArray value)

put

JSONObject put(String key,
               JSONObject value)

put

JSONObject put(String key,
               long value)

put

JSONObject put(String key,
               String value)

putException

JSONObject putException(Exception exception)

remove

Object remove(String key)

toString

String toString()
Overrides:
toString in class Object

toString

String toString(int indentFactor)
                throws JSONException
Throws:
JSONException

write

Writer write(Writer writer)
             throws JSONException
Throws:
JSONException

Liferay 6.1.2-ce-ga3