foodev.jsondiff.jsonwrap.gson
Class GsonJsonObject

java.lang.Object
  extended by foodev.jsondiff.jsonwrap.gson.GsonJsonElement
      extended by foodev.jsondiff.jsonwrap.gson.GsonJsonObject
All Implemented Interfaces:
JzonElement, JzonObject

public class GsonJsonObject
extends GsonJsonElement
implements JzonObject


Constructor Summary
GsonJsonObject(com.google.gson.JsonObject wrapped)
           
 
Method Summary
 void add(String key, JzonElement prop)
           
 void addProperty(String key, int prop)
           
 Collection<? extends Map.Entry<String,JzonElement>> entrySet()
           
 JzonElement get(String key)
           
 boolean has(String key)
           
 void remove(String key)
           
 String toString()
           
 
Methods inherited from class foodev.jsondiff.jsonwrap.gson.GsonJsonElement
equals, hashCode, isJsonArray, isJsonNull, isJsonObject, isJsonPrimitive, unwrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface foodev.jsondiff.jsonwrap.JzonElement
isJsonArray, isJsonNull, isJsonObject, isJsonPrimitive, unwrap
 

Constructor Detail

GsonJsonObject

public GsonJsonObject(com.google.gson.JsonObject wrapped)
Method Detail

has

public boolean has(String key)
Specified by:
has in interface JzonObject

add

public void add(String key,
                JzonElement prop)
Specified by:
add in interface JzonObject

addProperty

public void addProperty(String key,
                        int prop)
Specified by:
addProperty in interface JzonObject

entrySet

public Collection<? extends Map.Entry<String,JzonElement>> entrySet()
Specified by:
entrySet in interface JzonObject

get

public JzonElement get(String key)
Specified by:
get in interface JzonObject

remove

public void remove(String key)
Specified by:
remove in interface JzonObject

toString

public String toString()
Overrides:
toString in class GsonJsonElement


Copyright © 2012. All Rights Reserved.