Class CanonicalJson
java.lang.Object
org.ehrbase.openehr.sdk.serialisation.jsonencoding.CanonicalJson
- All Implemented Interfaces:
RMDataFormat
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshal(com.nedap.archie.rm.RMObject rmObject) <T extends com.nedap.archie.rm.RMObject>
TunmarshalToMap(String value) TODO: pull into interface and therefore into XML and other formats too, since this should work regardless of format?! Helper function to unmarshal to a general map, where RMObjects can't be expected or need to be preprocessed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ehrbase.openehr.sdk.serialisation.RMDataFormat
unmarshal
-
Field Details
-
MARSHAL_OM
public static final com.fasterxml.jackson.databind.ObjectMapper MARSHAL_OM
-
-
Constructor Details
-
CanonicalJson
public CanonicalJson()
-
-
Method Details
-
marshal
- Specified by:
marshalin interfaceRMDataFormat
-
unmarshal
- Specified by:
unmarshalin interfaceRMDataFormat
-
unmarshalToMap
TODO: pull into interface and therefore into XML and other formats too, since this should work regardless of format?! Helper function to unmarshal to a general map, where RMObjects can't be expected or need to be preprocessed.- Parameters:
value-- Returns:
-