public class ObjectHelperDirect extends Object implements MarshallHelper
| Constructor and Description |
|---|
ObjectHelperDirect() |
| Modifier and Type | Method and Description |
|---|---|
protected Constructor |
getAnnotatedConstructor(Class aClass) |
protected com.sdicons.json.serializer.helper.impl.ObjectHelperDirect.AnnotatedMethods |
getAnnotatedMethods(Class aClass) |
protected Method |
getAnnotatedSerializingMethod(Class aClass) |
protected List<Field> |
getFieldInfo(Class aClass) |
Class |
getHelpedClass() |
Object |
parseValue(JSONObject aObjectElement,
JSONMarshall aMarshall,
HashMap aPool)
Convert JSON representation into an instance of a class.
|
void |
renderValue(Object aObj,
JSONObject aObjectElement,
JSONMarshall aMarshall,
HashMap aPool)
Convert an element to JSON.
|
protected com.sdicons.json.serializer.helper.impl.ObjectHelperDirect.AnnotatedMethods getAnnotatedMethods(Class aClass) throws MarshallException
MarshallExceptionprotected Constructor getAnnotatedConstructor(Class aClass)
public void renderValue(Object aObj, JSONObject aObjectElement, JSONMarshall aMarshall, HashMap aPool) throws MarshallException
MarshallHelperrenderValue in interface MarshallHelperaObj - Instance that should be rendered to JSON.aObjectElement - The parent element where we have to put the rendered information. A helper is allowed to add
child elements.aMarshall - The marshall we can use to recursively render parts of our own object.aPool - A pool of objects already encountered. Is used to resolve references.MarshallExceptionpublic Object parseValue(JSONObject aObjectElement, JSONMarshall aMarshall, HashMap aPool) throws MarshallException
MarshallHelperparseValue in interface MarshallHelperaObjectElement - The source element we have to convert into an object.aMarshall - The marshall we can use to convert sub elements into subobjects to compose our target object.aPool - A pool of objects already encountered. Is used to resolve references.MarshallExceptionpublic Class getHelpedClass()
getHelpedClass in interface HelperCopyright © 2013. All Rights Reserved.