public class JsonElementBoolean 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| Modifier and Type | Field and Description |
|---|---|
static JsonElementBoolean |
FALSE |
static JsonElementBoolean |
TRUE |
| Modifier and Type | Method and Description |
|---|---|
Object |
eval(String exp) |
boolean |
evalBoolean(String exp) |
int |
evalInt(String exp) |
String |
evalString(String exp) |
Boolean |
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 static final JsonElementBoolean TRUE
public static final JsonElementBoolean FALSE
public Boolean 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.