public abstract class ISMapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static ERDiscovery |
erDiscovery |
protected static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
| Constructor and Description |
|---|
ISMapper() |
| Modifier and Type | Method and Description |
|---|---|
static ERDiscovery |
getErdiscovery() |
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
static <ISM extends ISManageable> |
marshal(ISM object)
Return the String serialization of a given resource
|
static <T extends OutputStream,ISM extends ISManageable> |
marshal(ISM object,
T stream)
Write the serialization of a given resource to a given
OutputStream . |
static <T extends Writer,ISM extends ISManageable> |
marshal(ISM object,
T writer)
Write the serialization of a given resource to a given
Writer . |
static <ISM extends ISManageable> |
registerSubtypes(Class<ISM>... classes) |
static <ISM extends ISManageable> |
unmarshal(Class<ISM> clz,
InputStream stream)
Creates a resource of given class from its serialization in a given
InputStream. |
static <ISM extends ISManageable> |
unmarshal(Class<ISM> clz,
Reader reader)
Creates a resource of given class from its serialization in a given
Reader. |
static <ISM extends ISManageable> |
unmarshal(Class<ISM> clz,
String string)
Creates a resource of given class from its serialization in a given String
|
static <ISM extends ISManageable> |
unmarshalList(Class<ISM> clz,
String string) |
static <ISM extends ISManageable> |
unmarshalList(String string) |
protected static final com.fasterxml.jackson.databind.ObjectMapper mapper
protected static final ERDiscovery erDiscovery
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public static ERDiscovery getErdiscovery()
public static <T extends OutputStream,ISM extends ISManageable> T marshal(ISM object, T stream) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
OutputStream .resource - the resourcestream - the stream in inputIOExceptioncom.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic static <T extends Writer,ISM extends ISManageable> T marshal(ISM object, T writer) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
Writer .resource - the resourcewriter - the writer in inputIOExceptioncom.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic static <ISM extends ISManageable> String marshal(ISM object) throws com.fasterxml.jackson.core.JsonProcessingException
object - the resourcecom.fasterxml.jackson.core.JsonProcessingExceptionpublic static <ISM extends ISManageable> ISM unmarshal(Class<ISM> clz, Reader reader) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
Reader.clz - the class of the resourcereader - the readercom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic static <ISM extends ISManageable> ISM unmarshal(Class<ISM> clz, InputStream stream) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
InputStream.clz - the class of the resourcestream - the streamIOExceptioncom.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic static <ISM extends ISManageable> ISM unmarshal(Class<ISM> clz, String string) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
clz - the class of the resourcestring - com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic static <ISM extends ISManageable> List<ISM> unmarshalList(Class<ISM> clz, String string) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic static <ISM extends ISManageable> List<ISM> unmarshalList(String string) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic static <ISM extends ISManageable> void registerSubtypes(Class<ISM>... classes)
Copyright © 2017. All Rights Reserved.