public class SettableAnyProperty
extends java.lang.Object
implements java.io.Serializable
!!! Note: might make sense to refactor to share some code
with SettableBeanProperty
?
Modifier and Type | Class and Description |
---|---|
private static class |
SettableAnyProperty.AnySetterReferring |
Modifier and Type | Field and Description |
---|---|
protected BeanProperty |
_property
Method used for setting "any" properties, along with annotation
information.
|
protected AnnotatedMethod |
_setter
Annotated variant is needed for JDK serialization only
|
protected JavaType |
_type |
protected JsonDeserializer<java.lang.Object> |
_valueDeserializer |
protected TypeDeserializer |
_valueTypeDeserializer |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
|
SettableAnyProperty(BeanProperty property,
AnnotatedMethod setter,
JavaType type,
JsonDeserializer<java.lang.Object> valueDeser,
TypeDeserializer typeDeser) |
protected |
SettableAnyProperty(SettableAnyProperty src)
Constructor used for JDK Serialization when reading persisted object
|
Modifier and Type | Method and Description |
---|---|
protected void |
_throwAsIOE(java.lang.Exception e,
java.lang.String propName,
java.lang.Object value) |
java.lang.Object |
deserialize(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt) |
void |
deserializeAndSet(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
java.lang.Object instance,
java.lang.String propName)
Method called to deserialize appropriate value, given parser (and
context), and set it using appropriate method (a setter method).
|
private java.lang.String |
getClassName() |
BeanProperty |
getProperty() |
JavaType |
getType() |
boolean |
hasValueDeserializer() |
(package private) java.lang.Object |
readResolve()
Need to define this to verify that we retain actual Method reference
|
void |
set(java.lang.Object instance,
java.lang.String propName,
java.lang.Object value) |
java.lang.String |
toString() |
SettableAnyProperty |
withValueDeserializer(JsonDeserializer<java.lang.Object> deser) |
private static final long serialVersionUID
protected final BeanProperty _property
protected final AnnotatedMethod _setter
protected final JavaType _type
protected JsonDeserializer<java.lang.Object> _valueDeserializer
protected final TypeDeserializer _valueTypeDeserializer
public SettableAnyProperty(BeanProperty property, AnnotatedMethod setter, JavaType type, JsonDeserializer<java.lang.Object> valueDeser, TypeDeserializer typeDeser)
protected SettableAnyProperty(SettableAnyProperty src)
public SettableAnyProperty withValueDeserializer(JsonDeserializer<java.lang.Object> deser)
java.lang.Object readResolve()
public BeanProperty getProperty()
public boolean hasValueDeserializer()
public JavaType getType()
public final void deserializeAndSet(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, java.lang.Object instance, java.lang.String propName) throws java.io.IOException
java.io.IOException
public java.lang.Object deserialize(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) throws java.io.IOException
java.io.IOException
public void set(java.lang.Object instance, java.lang.String propName, java.lang.Object value) throws java.io.IOException
java.io.IOException
protected void _throwAsIOE(java.lang.Exception e, java.lang.String propName, java.lang.Object value) throws java.io.IOException
e
- Exception to re-throw or wrappropName
- Name of property (from Json input) to setvalue
- Value of the propertyjava.io.IOException
private java.lang.String getClassName()
public java.lang.String toString()
toString
in class java.lang.Object