Class RosettaObjectMapperCreator
java.lang.Object
com.regnosys.rosetta.common.serialisation.RosettaObjectMapperCreator
- All Implemented Interfaces:
ObjectMapperCreator
A lazy-loading holder that returns a pre-configured
ObjectMapper that serves as the default when
serialising/deserializing Rosetta Model Objects.-
Constructor Summary
ConstructorsConstructorDescriptionRosettaObjectMapperCreator(com.fasterxml.jackson.databind.Module rosettaModule, com.fasterxml.jackson.databind.ObjectMapper baseMapper) If the supportNativeEnumValue is set to true, then the Logical Model enumerations will be used to read and write the enums rather than the Java enum names which are upper case by convention. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMappercreate()static RosettaObjectMapperCreatorforJSON()static RosettaObjectMapperCreatorforXML()static RosettaObjectMapperCreatorforXML(com.rosetta.util.serialisation.RosettaXMLConfiguration config) static RosettaObjectMapperCreatorforXML(InputStream configInputStream)
-
Constructor Details
-
RosettaObjectMapperCreator
public RosettaObjectMapperCreator(com.fasterxml.jackson.databind.Module rosettaModule, com.fasterxml.jackson.databind.ObjectMapper baseMapper) If the supportNativeEnumValue is set to true, then the Logical Model enumerations will be used to read and write the enums rather than the Java enum names which are upper case by convention.
-
-
Method Details
-
forJSON
-
forXML
public static RosettaObjectMapperCreator forXML(com.rosetta.util.serialisation.RosettaXMLConfiguration config) -
forXML
- Throws:
IOException
-
forXML
-
create
public com.fasterxml.jackson.databind.ObjectMapper create()- Specified by:
createin interfaceObjectMapperCreator
-