public class JsonElementString 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 |
|---|
JsonElementString(String value) |
| Modifier and Type | Method and Description |
|---|---|
Object |
eval(String exp) |
boolean |
evalBoolean(String exp) |
int |
evalInt(String exp) |
String |
evalString(String exp) |
String |
getValue() |
boolean |
isPrimitive()
Return true if this is a JSON primitive type (null, boolean, number or
string).
|
String |
toPrimitiveString()
Return the string value of this primitive JSON element.
|
String |
toString() |
public JsonElementString(String value)
public String getValue()
public boolean isPrimitive()
JsonElementisPrimitive in interface JsonElementpublic String toPrimitiveString()
JsonElementThis can not be used for JsonElementObject or JsonElementArray.
toPrimitiveString in interface JsonElementpublic 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 JsonElementCopyright © 2014. All Rights Reserved.