org.codehaus.jackson.map.deser.SettableAnyProperty Maven / Gradle / Ivy
Go to download
Data Mapper package is a high-performance data binding package
built on Jackson JSON processor
package org.codehaus.jackson.map.deser;
import java.io.IOException;
import java.lang.reflect.*;
import org.codehaus.jackson.*;
import org.codehaus.jackson.map.BeanProperty;
import org.codehaus.jackson.map.DeserializationContext;
import org.codehaus.jackson.map.JsonDeserializer;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.introspect.AnnotatedMethod;
import org.codehaus.jackson.type.JavaType;
/**
* 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: might make sense to refactor to share some code
* with {@link SettableBeanProperty}?
*/
public final class SettableAnyProperty
{
/**
* Method used for setting "any" properties, along with annotation
* information. Retained to allow contextualization of any properties.
*
* @since 1.7
*/
final protected BeanProperty _property;
/**
* Physical JDK object used for assigning properties.
*/
final protected Method _setter;
final protected JavaType _type;
protected JsonDeserializer