Class ObjectValue
java.lang.Object
org.exoplatform.ws.frameworks.json.value.JsonValue
org.exoplatform.ws.frameworks.json.value.impl.ObjectValue
- Version:
- $Id: ObjectValue.java 34417 2009-07-23 14:42:56Z dkatayev $
- Author:
- Andrey Parfonov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(String key, JsonValue child) Add child value.getElement(String key) Get value by key.getKeys()Get all keys for access values.booleanisObject()toString()voidwriteTo(JsonWriter writer) Write value in given writer.Methods inherited from class org.exoplatform.ws.frameworks.json.value.JsonValue
addElement, getBooleanValue, getByteValue, getDoubleValue, getElements, getFloatValue, getIntValue, getLongValue, getNumberValue, getShortValue, getStringValue, isArray, isBoolean, isDouble, isLong, isNull, isNumeric, isString, size
-
Constructor Details
-
ObjectValue
public ObjectValue()
-
-
Method Details
-
addElement
Add child value. This method must be used if isObject() gives true.- Overrides:
addElementin classJsonValue- Parameters:
key- the key.child- the child value.
-
isObject
public boolean isObject() -
getKeys
Get all keys for access values. -
getElement
Get value by key.- Overrides:
getElementin classJsonValue- Parameters:
key- the key.- Returns:
- JsonVAlue with specified key.
-
toString
-
writeTo
Write value in given writer.- Specified by:
writeToin classJsonValue- Parameters:
writer- Writer.- Throws:
JsonException- if any errors occurs.
-