ccc.plugins.s11n.json
Class ACLSerializer

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

public class ACLSerializer
extends java.lang.Object
implements Serializer<ACL>

Serializer for ACLs.

Author:
Civic Computing Ltd.

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

Constructor Detail

ACLSerializer

public ACLSerializer()
Method Detail

read

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

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

write

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

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