|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.automation.server.jaxrs.io.JsonMarshalling
public class JsonMarshalling
Handles input/output marshalling and references resolution.
Constructor Summary | |
---|---|
JsonMarshalling()
|
Method Summary | ||
---|---|---|
void |
addMarshaller(JsonMarshaller<?> marshaller)
Register the new marshalling logic |
|
boolean |
canMarshall(Class<?> clazz)
Indicates if we can marshall the requested java type |
|
|
getMarshaller(Class<T> clazz)
Access to the marshalling logic giving a java type |
|
|
getMarshaller(String type)
Access to the marshalling logic giving a JSON type |
|
|
read(String type,
net.sf.json.JSONObject object)
|
|
void |
removeMarshaller(Class<?> clazz)
Remove the marshalling logic associated to the provided java type |
|
|
write(Class<T> clazz,
net.sf.json.JSONObject object,
Object value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonMarshalling()
Method Detail |
---|
public void addMarshaller(JsonMarshaller<?> marshaller)
marshaller
- public void removeMarshaller(Class<?> clazz)
clazz
- public boolean canMarshall(Class<?> clazz)
clazz
-
public <T> JsonMarshaller<T> getMarshaller(String type)
T
- type
-
public <T> JsonMarshaller<T> getMarshaller(Class<T> clazz)
T
- clazz
-
public <T> void write(Class<T> clazz, net.sf.json.JSONObject object, Object value)
public <T> T read(String type, net.sf.json.JSONObject object)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |