|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JsonMarshaller<T>
Plugs in automation server new input/output type marshalling logic.
Method Summary | |
---|---|
Class<T> |
getJavaType()
The marshalled java type |
String |
getType()
The type name that appears in json content |
String |
newReference(T value)
Returns a server reference to a POJO object |
T |
read(net.sf.json.JSONObject json)
Builds and returns a POJO from the JSON object |
T |
resolveReference(String ref)
Resolve a reference and returns the POJO object |
void |
write(net.sf.json.JSONObject o,
Object value)
Writes in the JSON object the POJO's data |
Method Detail |
---|
String getType()
Class<T> getJavaType()
T resolveReference(String ref)
ref
-
String newReference(T value)
value
-
T read(net.sf.json.JSONObject json)
json
-
void write(net.sf.json.JSONObject o, Object value)
o
- value
-
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |