ccc.plugins.s11n.json
Class ParagraphSerializer

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

public class ParagraphSerializer
extends java.lang.Object
implements Serializer<Paragraph>

Serializer for Paragraphs.

Author:
Civic Computing Ltd.

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

Constructor Detail

ParagraphSerializer

public ParagraphSerializer()
Method Detail

read

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

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

write

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

Specified by:
write in interface Serializer<Paragraph>
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.

write

public java.util.Set<Json> write(Json json,
                                 java.util.Set<Paragraph> instance)


Copyright © 2010. All Rights Reserved.