com.kfuntak.gwt.json.serialization.client
Class Serializer

java.lang.Object
  extended by com.kfuntak.gwt.json.serialization.client.Serializer

public class Serializer
extends Object


Constructor Summary
protected Serializer()
           
 
Method Summary
protected  void addObjectSerializer(String name, ObjectSerializer obj)
           
 Object deSerialize(com.google.gwt.json.client.JSONValue jsonValue, String className)
           
 Object deSerialize(String jsonString, String className)
           
protected  ObjectSerializer getObjectSerializer(String name)
           
protected static String getTypeName(Object obj)
           
 String serialize(Object pojo)
           
 com.google.gwt.json.client.JSONValue serializeToJson(Object pojo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Serializer

protected Serializer()
Method Detail

addObjectSerializer

protected void addObjectSerializer(String name,
                                   ObjectSerializer obj)

getObjectSerializer

protected ObjectSerializer getObjectSerializer(String name)

getTypeName

protected static String getTypeName(Object obj)

serialize

public String serialize(Object pojo)

serializeToJson

public com.google.gwt.json.client.JSONValue serializeToJson(Object pojo)

deSerialize

public Object deSerialize(com.google.gwt.json.client.JSONValue jsonValue,
                          String className)
                   throws com.google.gwt.json.client.JSONException
Throws:
com.google.gwt.json.client.JSONException

deSerialize

public Object deSerialize(String jsonString,
                          String className)
                   throws com.google.gwt.json.client.JSONException
Throws:
com.google.gwt.json.client.JSONException


Copyright © 2012. All Rights Reserved.