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
 Object eval(String exp)
           
 boolean evalBoolean(String exp)
           
 int evalInt(String exp)
           
 String evalString(String exp)
           
 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.


eval

Object eval(String exp)

evalInt

int evalInt(String exp)

evalString

String evalString(String exp)

evalBoolean

boolean evalBoolean(String exp)


Copyright © 2012. All Rights Reserved.