public class JsonDeserializationContext extends JsonMappingContext
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonDeserializationContext.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id,
Object instance) |
Logger |
getLogger() |
Object |
getObjectWithId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id) |
boolean |
isAcceptSingleValueAsArray() |
boolean |
isFailOnUnknownProperties() |
boolean |
isUnwrapRootValue() |
JsonReader |
newJsonReader(String input) |
RuntimeException |
traceError(RuntimeException cause)
Trace an error and returns a corresponding exception.
|
RuntimeException |
traceError(RuntimeException cause,
JsonReader reader)
Trace an error with current reader state and returns a corresponding exception.
|
JsonDeserializationException |
traceError(String message)
Trace an error with current reader state and returns a corresponding exception.
|
JsonDeserializationException |
traceError(String message,
JsonReader reader)
Trace an error with current reader state and returns a corresponding exception.
|
public Logger getLogger()
getLogger in class JsonMappingContextpublic boolean isFailOnUnknownProperties()
public boolean isUnwrapRootValue()
public boolean isAcceptSingleValueAsArray()
public JsonReader newJsonReader(String input)
public JsonDeserializationException traceError(String message)
message - error messageJsonDeserializationException with the given messagepublic JsonDeserializationException traceError(String message, JsonReader reader)
message - error messagereader - current readerJsonDeserializationException with the given messagepublic RuntimeException traceError(RuntimeException cause)
cause - cause of the errorJsonDeserializationException if we wrap the exceptions, the cause otherwisepublic RuntimeException traceError(RuntimeException cause, JsonReader reader)
cause - cause of the errorreader - current readerJsonDeserializationException if we wrap the exceptions, the cause otherwisepublic void addObjectId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id,
Object instance)
public Object getObjectWithId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id)
Copyright © 2014. All Rights Reserved.