Class DefaultObjectMapper


  • public class DefaultObjectMapper
    extends Object
    • Field Detail

      • objectMapper

        public static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • YAML_MAPPER

        public static final com.fasterxml.jackson.databind.ObjectMapper YAML_MAPPER
    • Constructor Detail

      • DefaultObjectMapper

        public DefaultObjectMapper()
    • Method Detail

      • readTree

        public static <T> T readTree​(com.fasterxml.jackson.databind.JsonNode node,
                                     Class<T> clazz)
                              throws IOException
        Throws:
        IOException
      • writeJsonTree

        public static String writeJsonTree​(com.fasterxml.jackson.databind.JsonNode jsonNode)
                                    throws IOException
        Throws:
        IOException
      • writeValueAsString

        public static String writeValueAsString​(Object value,
                                                boolean omitDefaults)
                                         throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • readValue

        public static <T> T readValue​(String string,
                                      com.fasterxml.jackson.core.type.TypeReference<T> tr)
                               throws IOException
        Throws:
        IOException
      • readValue

        public static <T> T readValue​(String string,
                                      com.fasterxml.jackson.databind.JavaType jt)
                               throws IOException
        Throws:
        IOException
      • convertValue

        public static <T> T convertValue​(Object value,
                                         com.fasterxml.jackson.databind.JavaType jt)
                                  throws IOException
        Throws:
        IOException
      • convertValue

        public static <T> T convertValue​(Object value,
                                         com.fasterxml.jackson.databind.JavaType jt,
                                         boolean omitDefaults)
                                  throws IOException
        Throws:
        IOException
      • getTypeFactory

        public static com.fasterxml.jackson.databind.type.TypeFactory getTypeFactory()