com.avaje.ebean.text.json
Interface JsonElement

All Known Implementing Classes:
JsonElementArray, JsonElementBoolean, JsonElementNull, JsonElementNumber, JsonElementObject, JsonElementString

public interface JsonElement

Marker interface for all the Raw JSON types.

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

Method Summary
 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.
 

Method Detail

isPrimitive

boolean isPrimitive()
Return true if this is a JSON primitive type (null, boolean, number or string).


toPrimitiveString

String toPrimitiveString()
Return the string value of this primitive JSON element.

This can not be used for JsonElementObject or JsonElementArray.



Copyright © 2010. All Rights Reserved.