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.5
- Author:
- Tiry (tdelprat@nuxeo.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected static List<JSONBlobDecoder>
blobDecoders
-
Constructor Summary
Constructors Constructor Description ComplexTypeJSONDecoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
decode(ComplexType ct, com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
static Object
decode(ComplexType ct, String json)
static List<Object>
decodeList(ListType lt, com.fasterxml.jackson.databind.node.ArrayNode jsonArray)
static List<Object>
decodeList(ListType lt, String json)
static Blob
getBlobFromJSON(com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
static void
registerBlobDecoder(JSONBlobDecoder blobDecoder)
-
-
-
Field Detail
-
blobDecoders
protected static List<JSONBlobDecoder> blobDecoders
-
-
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 IOException
- Throws:
IOException
-
decodeList
public static List<Object> decodeList(ListType lt, com.fasterxml.jackson.databind.node.ArrayNode jsonArray)
-
decode
public static Object decode(ComplexType ct, String json) throws IOException
- Throws:
IOException
-
decode
public static Object decode(ComplexType ct, com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
-
getBlobFromJSON
public static Blob getBlobFromJSON(com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
-
-