ccc.plugins.s11n.json
Class FolderSerializer

java.lang.Object
  extended by ccc.plugins.s11n.json.ResSerializer<T>
      extended by ccc.plugins.s11n.json.ResourceSerializer<Folder>
          extended by ccc.plugins.s11n.json.FolderSerializer
All Implemented Interfaces:
Serializer<Folder>

public class FolderSerializer
extends ResourceSerializer<Folder>

Serializer for Folders.

Author:
Civic Computing Ltd.

Constructor Summary
FolderSerializer()
           
 
Method Summary
protected  Folder createObject()
          Create a new instance of type T.
 Folder read(Json json)
          Deserialize from a representation.
 Json write(Json json, Folder instance)
          Serialize to representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FolderSerializer

public FolderSerializer()
Method Detail

read

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

Specified by:
read in interface Serializer<Folder>
Overrides:
read in class ResourceSerializer<Folder>
Parameters:
json - The wire representation.
Returns:
The corresponding object.

createObject

protected Folder createObject()
Create a new instance of type T.

Specified by:
createObject in class ResSerializer<Folder>
Returns:
The newly created instance of T.

write

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

Specified by:
write in interface Serializer<Folder>
Overrides:
write in class ResourceSerializer<Folder>
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.