public class JsonPropertyAccessor extends Object implements PropertyAccessor
PropertyAccessor that knows how to read on Jackson JSON objects.| Modifier and Type | Class and Description |
|---|---|
static class |
JsonPropertyAccessor.ToStringFriendlyJsonNode |
| Constructor and Description |
|---|
JsonPropertyAccessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(EvaluationContext context,
Object target,
String name) |
boolean |
canWrite(EvaluationContext context,
Object target,
String name) |
Class<?>[] |
getSpecificTargetClasses() |
TypedValue |
read(EvaluationContext context,
Object target,
String name) |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
void |
write(EvaluationContext context,
Object target,
String name,
Object newValue) |
public Class<?>[] getSpecificTargetClasses()
getSpecificTargetClasses in interface PropertyAccessorpublic boolean canRead(EvaluationContext context, Object target, String name) throws AccessException
canRead in interface PropertyAccessorAccessExceptionpublic TypedValue read(EvaluationContext context, Object target, String name) throws AccessException
read in interface PropertyAccessorAccessExceptionpublic boolean canWrite(EvaluationContext context, Object target, String name) throws AccessException
canWrite in interface PropertyAccessorAccessExceptionpublic void write(EvaluationContext context, Object target, String name, Object newValue) throws AccessException
write in interface PropertyAccessorAccessExceptionpublic void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)