public abstract class AbstractSerializer extends Object implements ClassSerializer
| Constructor and Description |
|---|
AbstractSerializer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
toJSON(Object javaObj,
JSONObject jsonContainer,
JSONSerializer serializer,
HashMap<Object,Object> aPool)
Convert an element to JSON.
|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoJavagetHelpedClasspublic void toJSON(Object javaObj, JSONObject jsonContainer, JSONSerializer serializer, HashMap<Object,Object> aPool) throws SerializerException
ClassSerializertoJSON in interface ClassSerializerjavaObj - Instance that should be rendered to JSON.jsonContainer - The parent element where we have to put the rendered information. A helper is allowed to add
child elements.serializer - The marshal we can use to recursively render parts of our own object.aPool - A pool of objects already encountered. Is used to resolve references.SerializerExceptionCopyright © 2012. All Rights Reserved.