Package org.ehrbase.serialisation
Class OpenEHRTypeNaming
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
- com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
-
- org.ehrbase.serialisation.OpenEHRTypeNaming
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public class OpenEHRTypeNaming extends com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolverClass that handles naming of Archie RM and AOM objects for use in Jackson.The AOM class CComplexObject will get the type name "C_COMPLEX_OBJECT" The RM class DvDateTime will get the type name "DV_DATE_TIME"
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOpenEHRTypeNaming()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.JavaType_typeFromId(String typeName, com.fasterxml.jackson.databind.DatabindContext ctxt)com.fasterxml.jackson.annotation.JsonTypeInfo.IdgetMechanism()StringidFromValue(Object value)com.fasterxml.jackson.databind.JavaTypetypeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id)-
Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
_idFrom, construct, getDescForKnownTypeIds, idFromValueAndType, registerSubtype
-
-
-
-
Method Detail
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
- Specified by:
getMechanismin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver- Overrides:
getMechanismin classcom.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
-
idFromValue
public String idFromValue(Object value)
- Specified by:
idFromValuein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver- Overrides:
idFromValuein classcom.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
-
typeFromId
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id) throws IOException- Specified by:
typeFromIdin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver- Overrides:
typeFromIdin classcom.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver- Throws:
IOException
-
_typeFromId
protected com.fasterxml.jackson.databind.JavaType _typeFromId(String typeName, com.fasterxml.jackson.databind.DatabindContext ctxt) throws IOException
- Overrides:
_typeFromIdin classcom.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver- Throws:
IOException
-
-