Package org.ossreviewtoolkit.model
Class MappersKt
-
- All Implemented Interfaces:
public final class MappersKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static PropertyNamingStrategies.NamingBasePROPERTY_NAMING_STRATEGYprivate final static Function1<ObjectMapper, Unit>mapperConfigprivate final static JsonMapperjsonMapperprivate final static XmlMapperxmlMapperprivate final static YAMLMapperyamlMapperprivate final static JsonNodeEMPTY_JSON_NODE
-
Method Summary
Modifier and Type Method Description final PropertyNamingStrategies.NamingBasegetPROPERTY_NAMING_STRATEGY()final Function1<ObjectMapper, Unit>getMapperConfig()A lambda expression that can be applied to all ObjectMappers to configure them the same way. final JsonMappergetJsonMapper()final XmlMappergetXmlMapper()final YAMLMappergetYamlMapper()final JsonNodegetEMPTY_JSON_NODE()final static <T extends Any> TfromYaml(String $self)final static StringtoYaml(Object $self)-
-
Method Detail
-
getPROPERTY_NAMING_STRATEGY
final PropertyNamingStrategies.NamingBase getPROPERTY_NAMING_STRATEGY()
-
getMapperConfig
final Function1<ObjectMapper, Unit> getMapperConfig()
A lambda expression that can be applied to all ObjectMappers to configure them the same way.
-
getJsonMapper
final JsonMapper getJsonMapper()
-
getXmlMapper
final XmlMapper getXmlMapper()
-
getYamlMapper
final YAMLMapper getYamlMapper()
-
getEMPTY_JSON_NODE
final JsonNode getEMPTY_JSON_NODE()
-
-
-
-