Top Description Inners Fields Constructors Methods
com.fasterxml.jackson.databind.deser

public abstract Class SettableAnyProperty

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
com.fasterxml.jackson.databind.deser.SettableAnyProperty.MethodAnyProperty, com.fasterxml.jackson.databind.deser.SettableAnyProperty.MapFieldAnyProperty, com.fasterxml.jackson.databind.deser.SettableAnyProperty.JsonNodeFieldAnyProperty, com.fasterxml.jackson.databind.deser.SettableAnyProperty.MapParameterAnyProperty, com.fasterxml.jackson.databind.deser.SettableAnyProperty.JsonNodeParameterAnyProperty
Imports
java.io.IOException, java.util.HashMap, .LinkedHashMap, .Map, .Objects, com.fasterxml.jackson.core.*, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators, .ReadableObjectId.Referring, com.fasterxml.jackson.databind.introspect.AnnotatedField, .AnnotatedMember, .AnnotatedMethod, com.fasterxml.jackson.databind.jsontype.TypeDeserializer, com.fasterxml.jackson.databind.node.JsonNodeFactory, .ObjectNode, com.fasterxml.jackson.databind.util.ClassUtil

Class that represents a "wildcard" set method which can be used to generically set values of otherwise unmapped (aka "unknown") properties read from JSON content.

Note

starting with 2.14, is abstract class with multiple concrete implementations

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
protected static class
protected static class
SettableAnyProperty.JsonNodeParameterAnyProperty

[databind#562] Allow @JsonAnySetter on Creator constructor

protected static class
protected static class
SettableAnyProperty.MapParameterAnyProperty

[databind#562] Allow @JsonAnySetter on Creator constructor

protected static class

Field Summary

Modifier and TypeField and Description
protected final KeyDeserializer
protected final BeanProperty
_property

Method used for setting "any" properties, along with annotation information.

protected final AnnotatedMember
_setter

Annotated variant is needed for JDK serialization only

protected final boolean
protected final JavaType
protected JsonDeserializer<Object>
protected final TypeDeserializer
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract void
_set(Object instance, Object propName, Object value)

protected void
_throwAsIOE(Exception
Exception to re-throw or wrap
e
,
Object
Name of property (from Json input) to set
propName
,
Object
Value of the property
value
)

public static SettableAnyProperty
public static SettableAnyProperty
constructForJsonNodeParameter(DeserializationContext ctxt, BeanProperty prop, AnnotatedMember mutator, JavaType valueType, JsonDeserializer<Object> valueDeser, int parameterIndex)

public static SettableAnyProperty
public static SettableAnyProperty
constructForMapParameter(DeserializationContext ctxt, BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer typeDeser, int parameterIndex)

public static SettableAnyProperty
public Object
createParameterObject()

Create an instance of value to pass through Creator parameter.

public Object
public void
deserializeAndSet(JsonParser p, DeserializationContext ctxt, Object instance, String propName)

Method called to deserialize appropriate value, given parser (and context), and set it using appropriate method (a setter method).

public void
private String
public int

Returns:

-1 if not a parameterized setter, otherwise index of parameter
getParameterIndex
()

Accessor for parameterIndex.

public BeanProperty
public String
public JavaType
public boolean
public boolean
isFieldType()

Method called to check whether this property is field

public boolean

Returns:

2.18.2
isSetterType
()

Method called to check whether this property is method

pack-priv Object
readResolve()

Need to define this to verify that we retain actual Method reference

public void
set(Object instance, Object propName, Object value)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public abstract SettableAnyProperty
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait