public class JsonElementObject extends Object implements JsonElement
You will only use the JsonElements when you register a JsonReadBeanVisitor. The JSON elements that are not mapped to a bean property are made available to the JsonReadBeanVisitor.
JsonReadBeanVisitor| Constructor and Description |
|---|
JsonElementObject() |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<String,JsonElement>> |
entrySet() |
Object |
eval(String exp) |
boolean |
evalBoolean(String exp) |
int |
evalInt(String exp) |
String |
evalString(String exp) |
JsonElement |
get(String key) |
JsonElement |
getValue(String key) |
boolean |
isPrimitive()
Return true if this is a JSON primitive type (null, boolean, number or
string).
|
Set<String> |
keySet() |
void |
put(String key,
JsonElement value) |
String |
toPrimitiveString()
Return the string value of this primitive JSON element.
|
String |
toString() |
public void put(String key, JsonElement value)
public Object eval(String exp)
eval in interface JsonElementpublic int evalInt(String exp)
evalInt in interface JsonElementpublic String evalString(String exp)
evalString in interface JsonElementpublic boolean evalBoolean(String exp)
evalBoolean in interface JsonElementpublic JsonElement get(String key)
public JsonElement getValue(String key)
public Set<Map.Entry<String,JsonElement>> entrySet()
public boolean isPrimitive()
JsonElementisPrimitive in interface JsonElementpublic String toPrimitiveString()
JsonElementThis can not be used for JsonElementObject or JsonElementArray.
toPrimitiveString in interface JsonElementCopyright © 2014. All Rights Reserved.