public class ColorHelper extends AbstractHelper
| Constructor and Description |
|---|
ColorHelper() |
| Modifier and Type | Method and Description |
|---|---|
Class |
getHelpedClass() |
Object |
parseValue(JSONObject aObjectElement,
JSONMarshall aMarshall,
HashMap aPool)
Convert JSON representation into an instance of a class.
|
void |
renderValue(Object aObj,
JSONObject aParent,
JSONMarshall aMarshall,
HashMap aPool)
Convert an element to JSON.
|
equalspublic Object parseValue(JSONObject aObjectElement, JSONMarshall aMarshall, HashMap aPool) throws MarshallException
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 void renderValue(Object aObj, JSONObject aParent, JSONMarshall aMarshall, HashMap aPool) throws MarshallException
MarshallHelperrenderValue in interface MarshallHelperrenderValue in class AbstractHelperaObj - Instance that should be rendered to JSON.aParent - 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 Class getHelpedClass()
Copyright © 2013. All Rights Reserved.