Package com.floragunn.searchguard
Class DefaultObjectMapper
- java.lang.Object
-
- com.floragunn.searchguard.DefaultObjectMapper
-
public class DefaultObjectMapper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.fasterxml.jackson.databind.ObjectMapperobjectMapperstatic com.fasterxml.jackson.databind.ObjectMapperYAML_MAPPER
-
Constructor Summary
Constructors Constructor Description DefaultObjectMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TconvertValue(Object value, com.fasterxml.jackson.databind.JavaType jt)static <T> TconvertValue(Object value, com.fasterxml.jackson.databind.JavaType jt, boolean omitDefaults)static <T> TconvertValue(Object value, Class<T> clazz, boolean omitDefaults)static com.fasterxml.jackson.databind.type.TypeFactorygetTypeFactory()static <T> TreadTree(com.fasterxml.jackson.databind.JsonNode node, Class<T> clazz)static com.fasterxml.jackson.databind.JsonNodereadTree(String string)static <T> TreadValue(String string, com.fasterxml.jackson.core.type.TypeReference<T> tr)static <T> TreadValue(String string, com.fasterxml.jackson.databind.JavaType jt)static <T> TreadValue(String string, Class<T> clazz)static StringwriteJsonTree(com.fasterxml.jackson.databind.JsonNode jsonNode)static StringwriteValueAsString(Object value, boolean omitDefaults)
-
-
-
Method Detail
-
readTree
public static <T> T readTree(com.fasterxml.jackson.databind.JsonNode node, Class<T> clazz) throws IOException- Throws:
IOException
-
readValue
public static <T> T readValue(String string, Class<T> clazz) throws IOException
- Throws:
IOException
-
readTree
public static com.fasterxml.jackson.databind.JsonNode readTree(String string) 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
-
convertValue
public static <T> T convertValue(Object value, Class<T> clazz, boolean omitDefaults) throws IOException
- Throws:
IOException
-
getTypeFactory
public static com.fasterxml.jackson.databind.type.TypeFactory getTypeFactory()
-
-