com.avaje.ebean.text.json
Class JsonElementBoolean

java.lang.Object
  extended by com.avaje.ebean.text.json.JsonElementBoolean
All Implemented Interfaces:
JsonElement

public class JsonElementBoolean
extends Object
implements JsonElement

JSON boolean element.

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.

Author:
rbygrave
See Also:
JsonReadBeanVisitor

Field Summary
static JsonElementBoolean FALSE
           
static JsonElementBoolean TRUE
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

public static final JsonElementBoolean TRUE

FALSE

public static final JsonElementBoolean FALSE
Method Detail

getValue

public boolean getValue()

toString

public String toString()
Overrides:
toString in class Object

isPrimitive

public boolean isPrimitive()
Description copied from interface: JsonElement
Return true if this is a JSON primitive type (null, boolean, number or string).

Specified by:
isPrimitive in interface JsonElement

toPrimitiveString

public String toPrimitiveString()
Description copied from interface: JsonElement
Return the string value of this primitive JSON element.

This can not be used for JsonElementObject or JsonElementArray.

Specified by:
toPrimitiveString in interface JsonElement


Copyright © 2010. All Rights Reserved.