public interface Marshall
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
marshall(boolean aValue)
Convert a boolean primitive to JSON.
|
JSONObject |
marshall(byte aValue)
Convert a byte primitive to JSON.
|
JSONObject |
marshall(char aValue)
Convert a char primitive to JSON.
|
JSONObject |
marshall(double aValue)
Convert a double primitive to JSON.
|
JSONObject |
marshall(float aValue)
Convert a float primitive to JSON.
|
JSONObject |
marshall(int aValue)
Convert an int primitive to JSON.
|
JSONObject |
marshall(long aValue)
Convert a long primitive to JSON.
|
JSONObject |
marshall(Object aObj)
Convert a Java object to JSON.
|
JSONObject |
marshall(short aValue)
Convert a short primitive to JSON.
|
MarshallValue |
unmarshall(JSONObject aElement)
Convert a JSON representation to the Java primitive or reference.
|
JSONObject marshall(boolean aValue)
aValue - JSONObject marshall(byte aValue)
aValue - JSONObject marshall(short aValue)
aValue - JSONObject marshall(char aValue)
aValue - JSONObject marshall(int aValue)
aValue - JSONObject marshall(long aValue)
aValue - JSONObject marshall(float aValue)
aValue - JSONObject marshall(double aValue)
aValue - JSONObject marshall(Object aObj) throws MarshallException
aObj - MarshallException - An error occured while converting the Java object to JSON.MarshallValue unmarshall(JSONObject aElement) throws MarshallException
aElement - MarshallException - An error occured while trying to convert the JSON representation into a
Java representation.Copyright © 2013. All Rights Reserved.