T - Type of Objects to be transformedpublic class Verjson<T> extends Object
| Constructor and Description |
|---|
Verjson(Class<T> valueClass,
Versions versions) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(Versions versions) |
static <T> Verjson<T> |
create(Class<T> valueClass,
Versions versions) |
protected StepSequencer |
createStepSequencer() |
protected long |
determineHighestSourceVersion() |
protected long |
getHighestSourceVersion() |
protected com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
protected String |
getNamespace() |
protected Class<T> |
getValueClass() |
T |
read(com.fasterxml.jackson.databind.JsonNode node) |
T |
read(String json) |
T |
readPlain(com.fasterxml.jackson.databind.JsonNode node,
long version) |
com.fasterxml.jackson.databind.JsonNode |
readTree(String json) |
protected String |
verifyNamespace(com.fasterxml.jackson.databind.JsonNode node) |
protected Long |
verifyVersion(com.fasterxml.jackson.databind.JsonNode node) |
protected com.fasterxml.jackson.databind.JsonNode |
wrapPlainNode(com.fasterxml.jackson.databind.JsonNode node,
long version) |
String |
write(T obj)
Serializes the given object to a String
|
String |
writePlain(T obj)
Serializes the given object without any metadata to a String.
|
protected void configure(Versions versions)
protected long determineHighestSourceVersion()
protected StepSequencer createStepSequencer()
protected String getNamespace()
protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
public String write(T obj) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic String writePlain(T obj) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic com.fasterxml.jackson.databind.JsonNode readTree(String json) throws IOException
IOExceptionprotected com.fasterxml.jackson.databind.JsonNode wrapPlainNode(com.fasterxml.jackson.databind.JsonNode node,
long version)
public T readPlain(com.fasterxml.jackson.databind.JsonNode node, long version) throws VersionNotSupportedException, NamespaceMismatchException, ProcessStepException, IOReadException
public T read(String json) throws VersionNotSupportedException, NamespaceMismatchException, ProcessStepException, IOReadException
public T read(com.fasterxml.jackson.databind.JsonNode node) throws VersionNotSupportedException, NamespaceMismatchException, ProcessStepException, IOReadException
protected Long verifyVersion(com.fasterxml.jackson.databind.JsonNode node) throws VersionNotSupportedException
VersionNotSupportedExceptionprotected String verifyNamespace(com.fasterxml.jackson.databind.JsonNode node) throws NamespaceMismatchException
NamespaceMismatchExceptionprotected long getHighestSourceVersion()
Copyright © 2015. All rights reserved.