ccc.plugins.s11n.json
Class PageCriteriaSerializer

java.lang.Object
  extended by ccc.plugins.s11n.json.AbstractSerializer<T>
      extended by ccc.plugins.s11n.json.ResourceCriteriaSerializer<PageCriteria>
          extended by ccc.plugins.s11n.json.PageCriteriaSerializer
All Implemented Interfaces:
Serializer<PageCriteria>

public class PageCriteriaSerializer
extends ResourceCriteriaSerializer<PageCriteria>

Serializer for Resources.

Author:
Civic Computing Ltd.

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

Constructor Detail

PageCriteriaSerializer

public PageCriteriaSerializer()
Method Detail

read

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

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

createObject

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

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

write

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

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