public abstract class AbstractMapping extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CruxOMRSRepositoryConnector |
cruxConnector |
protected static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMapping(CruxOMRSRepositoryConnector cruxConnector)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static <T> T |
getDeserializedValue(clojure.lang.IPersistentMap embedded,
com.fasterxml.jackson.databind.JavaType type)
Retrieve the deserialized value given an embedded form.
|
protected static clojure.lang.IPersistentMap |
getEmbeddedSerializedForm(Object value)
Retrieve an embedded JSON-serialized form of a given object.
|
static String |
getKeyword(String name)
Construct a string representation of a keyword.
|
static String |
getKeyword(String namespace,
String name)
Construct a string representation of a keyword.
|
protected final CruxOMRSRepositoryConnector cruxConnector
protected static final com.fasterxml.jackson.databind.ObjectMapper mapper
protected AbstractMapping(CruxOMRSRepositoryConnector cruxConnector)
cruxConnector - connectivity to Cruxpublic static String getKeyword(String name)
name - of the keywordpublic static String getKeyword(String namespace, String name)
namespace - of the keyword (optional)name - of the keywordprotected static clojure.lang.IPersistentMap getEmbeddedSerializedForm(Object value)
value - to JSON-serializeprotected static <T> T getDeserializedValue(clojure.lang.IPersistentMap embedded,
com.fasterxml.jackson.databind.JavaType type)
T - type of value to deserializeembedded - value to JSON-deserializetype - the type of value to deserializeCopyright © 2021 ODPi. All rights reserved.