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