org.nuxeo.ecm.automation.core.util
Class ComplexTypeJSONDecoder
java.lang.Object
org.nuxeo.ecm.automation.core.util.ComplexTypeJSONDecoder
public class ComplexTypeJSONDecoder
- extends Object
Helper to handle Complex types decoding from a JSON encoded String entries of
a property file
- Since:
- 5.4.3
- Author:
- Tiry (tdelprat@nuxeo.com)
ComplexTypeJSONDecoder
public ComplexTypeJSONDecoder()
registerBlobDecoder
public static void registerBlobDecoder(JSONBlobDecoder blobDecoder)
decodeList
public static List<Object> decodeList(ListType lt,
String json)
throws Exception
- Throws:
Exception
decodeList
public static List<Object> decodeList(ListType lt,
org.codehaus.jackson.node.ArrayNode jsonArray)
decode
public static Object decode(ComplexType ct,
String json)
throws Exception
- Throws:
Exception
decode
public static Object decode(ComplexType ct,
org.codehaus.jackson.node.ObjectNode jsonObject)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.