public abstract class JsonValue extends Object
| Constructor and Description |
|---|
JsonValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(JsonValue child)
Add child value.
|
void |
addElement(String key,
JsonValue child)
Add child value.
|
boolean |
getBooleanValue() |
byte |
getByteValue() |
double |
getDoubleValue() |
JsonValue |
getElement(String key)
Get value by key.
|
Iterator<JsonValue> |
getElements()
Get all element of this value.
|
float |
getFloatValue() |
int |
getIntValue() |
Iterator<String> |
getKeys()
Get all keys for access values.
|
long |
getLongValue() |
Number |
getNumberValue() |
short |
getShortValue() |
String |
getStringValue() |
boolean |
isArray() |
boolean |
isBoolean() |
boolean |
isDouble() |
boolean |
isLong() |
boolean |
isNull() |
boolean |
isNumeric() |
boolean |
isObject() |
boolean |
isString() |
int |
size() |
abstract String |
toString() |
abstract void |
writeTo(JsonWriter writer)
Write value in given writer.
|
public boolean isObject()
public boolean isArray()
public boolean isNumeric()
public boolean isLong()
public boolean isDouble()
public boolean isString()
public boolean isBoolean()
public boolean isNull()
public void addElement(JsonValue child)
child - the child value.public void addElement(String key, JsonValue child)
key - the key.child - the child value.public Iterator<JsonValue> getElements()
public JsonValue getElement(String key)
key - the key.public int size()
public String getStringValue()
public boolean getBooleanValue()
public Number getNumberValue()
public byte getByteValue()
public short getShortValue()
public int getIntValue()
public long getLongValue()
public float getFloatValue()
public double getDoubleValue()
public abstract void writeTo(JsonWriter writer) throws JsonException
writer - Writer.JsonException - if any errors occurs.Copyright © 2017 eXo Platform SAS. All Rights Reserved.