ccc.plugins.s11n.json
Class CommentSerializer

java.lang.Object
  extended by ccc.plugins.s11n.json.CommentSerializer
All Implemented Interfaces:
Serializer<Comment>

public class CommentSerializer
extends java.lang.Object
implements Serializer<Comment>

Serializer for Comments.

Author:
Civic Computing Ltd.

Constructor Summary
CommentSerializer()
           
 
Method Summary
 Comment read(Json json)
          Deserialize from a representation.
 Json write(Json json, Comment instance)
          Serialize to representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentSerializer

public CommentSerializer()
Method Detail

read

public Comment read(Json json)
Deserialize from a representation.

Specified by:
read in interface Serializer<Comment>
Parameters:
json - The wire representation.
Returns:
The corresponding object.

write

public Json write(Json json,
                  Comment instance)
Serialize to representation.

Specified by:
write in interface Serializer<Comment>
Parameters:
json - The wire representation.
instance - The object to serialize.
Returns:
Returns the 'json' input param if the 'instance' param is not NULL; returns NULL otherwise.


Copyright © 2010. All Rights Reserved.