Project Wonder 5.0

er.ajax.json.serializer
Class JSONEnterpriseObjectSerializer

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

public class JSONEnterpriseObjectSerializer
extends org.jabsorb.serializer.AbstractSerializer

JSONEnterpriseObjectSerializer turns EO's from a JSON server into IJSONEnterpriseObject stubs of the EO's (and back again).

See Also:
Serialized Form
Author:
mschrag

Field Summary
protected static NSMutableDictionary publicAttributes
           
 
Fields inherited from class org.jabsorb.serializer.AbstractSerializer
ser
 
Constructor Summary
JSONEnterpriseObjectSerializer()
           
 
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 jso)
           
 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
 

Field Detail

publicAttributes

protected static NSMutableDictionary publicAttributes
Constructor Detail

JSONEnterpriseObjectSerializer

public JSONEnterpriseObjectSerializer()
Method Detail

getSerializableClasses

public Class[] getSerializableClasses()

getJSONClasses

public Class[] getJSONClasses()

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

tryUnmarshall

public org.jabsorb.serializer.ObjectMatch tryUnmarshall(org.jabsorb.serializer.SerializerState state,
                                                        Class clazz,
                                                        Object jso)

unmarshall

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

marshall

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

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

Copyright © 2002 – 2011 Project Wonder.