Package com.vaadin.client.communication
Class Date_Serializer
- java.lang.Object
-
- com.vaadin.client.communication.Date_Serializer
-
- All Implemented Interfaces:
JSONSerializer<Date>
public class Date_Serializer extends Object implements JSONSerializer<Date>
Client side serializer/deserializer for java.util.Date.- Since:
- 7.2
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description Date_Serializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Datedeserialize(Type type, elemental.json.JsonValue jsonValue, ApplicationConnection connection)Creates and deserializes an object received from the server.elemental.json.JsonValueserialize(Date value, ApplicationConnection connection)Serialize the given object into JSON.
-
-
-
Method Detail
-
deserialize
public Date deserialize(Type type, elemental.json.JsonValue jsonValue, ApplicationConnection connection)
Description copied from interface:JSONSerializerCreates and deserializes an object received from the server. Must be compatible withJSONSerializer.serialize(Object, ApplicationConnection)and also with the server side JsonCodec.encode method.- Specified by:
deserializein interfaceJSONSerializer<Date>- Parameters:
type- the type to deserializejsonValue- JSON map from property name to property valueconnection- the application connection providing the context- Returns:
- A deserialized object
-
serialize
public elemental.json.JsonValue serialize(Date value, ApplicationConnection connection)
Description copied from interface:JSONSerializerSerialize the given object into JSON. Must be compatible withJSONSerializer.deserialize(Type, JsonValue, ApplicationConnection)and also with the server side JsonCodec.decodeCustomType method.- Specified by:
serializein interfaceJSONSerializer<Date>- Parameters:
value- The object to serializeconnection- the application connection providing the context- Returns:
- A JSON serialized version of the object
-
-