public class AlfrescoDefaultObjectMapper extends Object
ObjectMapper with default configuration
and provide access to ObjectReader, ObjectWriter, ObjectNode and ArrayNode.
AlfrescoDefaultObjectMapper should be reused by all classes
as it takes time to create a new ObjectMapper and if it is exposed directly
one can alter it's configuration via ObjectMapper.configure(JsonGenerator.Feature, boolean) and others.
.| Constructor and Description |
|---|
AlfrescoDefaultObjectMapper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
convertValue(Object fromValue,
Class<T> toValueType) |
static com.fasterxml.jackson.databind.node.ArrayNode |
createArrayNode() |
static com.fasterxml.jackson.databind.node.ObjectNode |
createObjectNode() |
static com.fasterxml.jackson.databind.ObjectReader |
getReader() |
static com.fasterxml.jackson.databind.ObjectWriter |
getWriter() |
static String |
writeValueAsString(Object value) |
public static com.fasterxml.jackson.databind.ObjectReader getReader()
public static com.fasterxml.jackson.databind.ObjectWriter getWriter()
public static com.fasterxml.jackson.databind.node.ObjectNode createObjectNode()
public static com.fasterxml.jackson.databind.node.ArrayNode createArrayNode()
Copyright © 2005–2018 Alfresco Software. All rights reserved.