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 Date
deserialize(Type type, JsonValue jsonValue, ApplicationConnection connection)
Creates and deserializes an object received from the server.JsonValue
serialize(Date value, ApplicationConnection connection)
Serialize the given object into JSON.
-
-
-
Method Detail
-
deserialize
public Date deserialize(Type type, JsonValue jsonValue, ApplicationConnection connection)
Description copied from interface:JSONSerializer
Creates 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:
deserialize
in 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 JsonValue serialize(Date value, ApplicationConnection connection)
Description copied from interface:JSONSerializer
Serialize the given object into JSON. Must be compatible withJSONSerializer.deserialize(Type, JsonValue, ApplicationConnection)
and also with the server side JsonCodec.decodeCustomType method.- Specified by:
serialize
in interfaceJSONSerializer<Date>
- Parameters:
value
- The object to serializeconnection
- the application connection providing the context- Returns:
- A JSON serialized version of the object
-
-