|
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.marshallers.PrimitiveMarshaller<T>
public final class PrimitiveMarshaller<T>
Constructor Summary | |
---|---|
PrimitiveMarshaller(Class<T> clazz)
|
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 json,
Object value)
Writes in the JSON object the POJO's data |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveMarshaller(Class<T> clazz)
Method Detail |
---|
public String getType()
JsonMarshaller
getType
in interface JsonMarshaller<T>
public Class<T> getJavaType()
JsonMarshaller
getJavaType
in interface JsonMarshaller<T>
public T resolveReference(String ref)
JsonMarshaller
resolveReference
in interface JsonMarshaller<T>
public String newReference(T value)
JsonMarshaller
newReference
in interface JsonMarshaller<T>
public T read(net.sf.json.JSONObject json)
JsonMarshaller
read
in interface JsonMarshaller<T>
public void write(net.sf.json.JSONObject json, Object value)
JsonMarshaller
write
in interface JsonMarshaller<T>
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |