public final class InterconnectMapper extends Object
InterconnectObject and vice versa.| Modifier and Type | Method and Description |
|---|---|
static InterconnectObject |
fromJson(String data)
Creates an
InterconnectObject from the given JSON data. |
static <T extends InterconnectObject> |
fromJson(String data,
Class<T> clazz)
Creates an object from the given JSON data.
|
static String |
toJson(InterconnectObject object)
Returns a JSON representation of the given object.
|
public static InterconnectObject fromJson(String data) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
InterconnectObject from the given JSON data.data - the JSON datacom.fasterxml.jackson.core.JsonParseException - if a the JSON data could not be parsedcom.fasterxml.jackson.databind.JsonMappingException - if the mapping of the JSON data to the IVO failedIOException - if an I/O related problem occurredpublic static <T extends InterconnectObject> T fromJson(String data, Class<T> clazz) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
T - the type of the class object extending InterconnectObjectdata - the JSON dataclazz - the class object for the content of the JSON datacom.fasterxml.jackson.core.JsonParseException - if a the JSON data could not be parsedcom.fasterxml.jackson.databind.JsonMappingException - if the mapping of the JSON data to the IVO failedIOException - if an I/O related problem occurredpublic static String toJson(InterconnectObject object) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
object - the object to be stored in a JSON stringcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredCopyright © 2016 Taimos GmbH. All rights reserved.