Project Wonder 5.0

er.ajax.json.serializer
Class NSDictionarySerializer

java.lang.Object
  extended by org.jabsorb.serializer.AbstractSerializer
      extended by er.ajax.json.serializer.NSDictionarySerializer
All Implemented Interfaces:
Serializable, org.jabsorb.serializer.Serializer

public class NSDictionarySerializer
extends org.jabsorb.serializer.AbstractSerializer

Serialises NSDictionaries TODO: if this serialises a superclass does it need to also specify the subclasses?

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jabsorb.serializer.AbstractSerializer
ser
 
Constructor Summary
NSDictionarySerializer()
           
 
Method Summary
 boolean canSerialize(Class clazz, Class jsonClazz)
           
 Class[] getJSONClasses()
           
 Class[] getSerializableClasses()
           
 Object marshall(org.jabsorb.serializer.SerializerState state, Object p, Object o)
           
 org.jabsorb.serializer.ObjectMatch tryUnmarshall(org.jabsorb.serializer.SerializerState state, Class clazz, Object o)
           
 Object unmarshall(org.jabsorb.serializer.SerializerState state, Class clazz, Object o)
           
 
Methods inherited from class org.jabsorb.serializer.AbstractSerializer
setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NSDictionarySerializer

public NSDictionarySerializer()
Method Detail

canSerialize

public boolean canSerialize(Class clazz,
                            Class jsonClazz)
Specified by:
canSerialize in interface org.jabsorb.serializer.Serializer
Overrides:
canSerialize in class org.jabsorb.serializer.AbstractSerializer

getJSONClasses

public Class[] getJSONClasses()

getSerializableClasses

public Class[] getSerializableClasses()

marshall

public Object marshall(org.jabsorb.serializer.SerializerState state,
                       Object p,
                       Object o)
                throws org.jabsorb.serializer.MarshallException
Throws:
org.jabsorb.serializer.MarshallException

tryUnmarshall

public org.jabsorb.serializer.ObjectMatch tryUnmarshall(org.jabsorb.serializer.SerializerState state,
                                                        Class clazz,
                                                        Object o)
                                                 throws org.jabsorb.serializer.UnmarshallException
Throws:
org.jabsorb.serializer.UnmarshallException

unmarshall

public Object unmarshall(org.jabsorb.serializer.SerializerState state,
                         Class clazz,
                         Object o)
                  throws org.jabsorb.serializer.UnmarshallException
Throws:
org.jabsorb.serializer.UnmarshallException

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.