Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.core.util
Class ComplexTypeJSONDecoder

java.lang.Object
  extended by 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)

Constructor Summary
ComplexTypeJSONDecoder()
           
 
Method Summary
static Object decode(ComplexType ct, org.codehaus.jackson.node.ObjectNode jsonObject)
           
static Object decode(ComplexType ct, String json)
           
static List<Object> decodeList(ListType lt, org.codehaus.jackson.node.ArrayNode jsonArray)
           
static List<Object> decodeList(ListType lt, String json)
           
static void registerBlobDecoder(JSONBlobDecoder blobDecoder)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexTypeJSONDecoder

public ComplexTypeJSONDecoder()
Method Detail

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)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.