Package com.liferay.portal.json
Class JSONObjectImpl
Object
com.liferay.portal.json.JSONObjectImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.json.JSONObject,com.liferay.portal.kernel.json.JSONSerializable,Externalizable,Serializable
- Direct Known Subclasses:
UnmodifiableJSONObjectImpl
- Author:
- Brian Wing Shun Chan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJSONObjectImpl(com.liferay.portal.kernel.json.JSONObject jsonObject, String[] names) JSONObjectImpl(Object bean) JSONObjectImpl(Object object, String[] names) JSONObjectImpl(String json) JSONObjectImpl(Map<?, ?> map) JSONObjectImpl(org.json.JSONObject jsonObject) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String key) booleangetBoolean(String key, boolean defaultValue) doubledoubleintintcom.liferay.portal.kernel.json.JSONArraygetJSONArray(String key) org.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectgetJSONObject(String key) longlongbooleanbooleankeys()keySet()intlength()com.liferay.portal.kernel.json.JSONArraynames()com.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectputException(Exception exception1) voidreadExternal(ObjectInput objectInput) toMap()toString()toString(int indentFactor) voidwriteExternal(ObjectOutput objectOutput)
-
Constructor Details
-
JSONObjectImpl
public JSONObjectImpl() -
JSONObjectImpl
public JSONObjectImpl(com.liferay.portal.kernel.json.JSONObject jsonObject, String[] names) throws com.liferay.portal.kernel.json.JSONException - Throws:
com.liferay.portal.kernel.json.JSONException
-
JSONObjectImpl
public JSONObjectImpl(org.json.JSONObject jsonObject) -
JSONObjectImpl
-
JSONObjectImpl
-
JSONObjectImpl
-
JSONObjectImpl
- Throws:
com.liferay.portal.kernel.json.JSONException
-
-
Method Details
-
get
- Specified by:
getin interfacecom.liferay.portal.kernel.json.JSONObject
-
getBoolean
- Specified by:
getBooleanin interfacecom.liferay.portal.kernel.json.JSONObject
-
getBoolean
- Specified by:
getBooleanin interfacecom.liferay.portal.kernel.json.JSONObject
-
getDouble
- Specified by:
getDoublein interfacecom.liferay.portal.kernel.json.JSONObject
-
getDouble
- Specified by:
getDoublein interfacecom.liferay.portal.kernel.json.JSONObject
-
getInt
- Specified by:
getIntin interfacecom.liferay.portal.kernel.json.JSONObject
-
getInt
- Specified by:
getIntin interfacecom.liferay.portal.kernel.json.JSONObject
-
getJSONArray
- Specified by:
getJSONArrayin interfacecom.liferay.portal.kernel.json.JSONObject
-
getJSONObject
public org.json.JSONObject getJSONObject() -
getJSONObject
- Specified by:
getJSONObjectin interfacecom.liferay.portal.kernel.json.JSONObject
-
getLong
- Specified by:
getLongin interfacecom.liferay.portal.kernel.json.JSONObject
-
getLong
- Specified by:
getLongin interfacecom.liferay.portal.kernel.json.JSONObject
-
getString
- Specified by:
getStringin interfacecom.liferay.portal.kernel.json.JSONObject
-
getString
- Specified by:
getStringin interfacecom.liferay.portal.kernel.json.JSONObject
-
has
- Specified by:
hasin interfacecom.liferay.portal.kernel.json.JSONObject
-
isNull
- Specified by:
isNullin interfacecom.liferay.portal.kernel.json.JSONObject
-
keys
- Specified by:
keysin interfacecom.liferay.portal.kernel.json.JSONObject
-
keySet
- Specified by:
keySetin interfacecom.liferay.portal.kernel.json.JSONObject
-
length
public int length()- Specified by:
lengthin interfacecom.liferay.portal.kernel.json.JSONObject
-
names
public com.liferay.portal.kernel.json.JSONArray names()- Specified by:
namesin interfacecom.liferay.portal.kernel.json.JSONObject
-
opt
- Specified by:
optin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
- Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
- Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
- Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
- Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
public com.liferay.portal.kernel.json.JSONObject put(String key, com.liferay.portal.kernel.json.JSONArray jsonArray) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
public com.liferay.portal.kernel.json.JSONObject put(String key, com.liferay.portal.kernel.json.JSONObject jsonObject) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
- Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
- Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
- Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
put
public com.liferay.portal.kernel.json.JSONObject put(String key, com.liferay.petra.function.UnsafeSupplier<Object, Exception> valueUnsafeSupplier) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONObject
-
putException
- Specified by:
putExceptionin interfacecom.liferay.portal.kernel.json.JSONObject
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
remove
- Specified by:
removein interfacecom.liferay.portal.kernel.json.JSONObject
-
toJSONString
- Specified by:
toJSONStringin interfacecom.liferay.portal.kernel.json.JSONSerializable
-
toMap
- Specified by:
toMapin interfacecom.liferay.portal.kernel.json.JSONObject
-
toString
-
toString
- Specified by:
toStringin interfacecom.liferay.portal.kernel.json.JSONObject- Throws:
com.liferay.portal.kernel.json.JSONException
-
write
- Specified by:
writein interfacecom.liferay.portal.kernel.json.JSONObject- Throws:
com.liferay.portal.kernel.json.JSONException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-