Class ArrayValue
- java.lang.Object
-
- org.exoplatform.ws.frameworks.json.value.JsonValue
-
- org.exoplatform.ws.frameworks.json.value.impl.ArrayValue
-
public class ArrayValue extends JsonValue
- Version:
- $Id: ArrayValue.java 34417 2009-07-23 14:42:56Z dkatayev $
- Author:
- Andrey Parfonov
-
-
Constructor Summary
Constructors Constructor Description ArrayValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(JsonValue child)Add child value.Iterator<JsonValue>getElements()Get all element of this value.booleanisArray()intsize()StringtoString()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
-
-
-
-
Method Detail
-
addElement
public void addElement(JsonValue child)
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
public Iterator<JsonValue> getElements()
Get all element of this value.- Overrides:
getElementsin classJsonValue- Returns:
- Iterator.
-
writeTo
public void writeTo(JsonWriter writer) throws JsonException
Write value in given writer.- Specified by:
writeToin classJsonValue- Parameters:
writer- Writer.- Throws:
JsonException- if any errors occurs.
-
-