protected InnerClassProperty(InnerClassProperty src, JsonDeserializer<Object> deser) { super(src, deser); _delegate = src._delegate.withValueDeserializer(deser); _creator = src._creator; }
public void assignDeserializer(SettableBeanProperty prop, JsonDeserializer<Object> deser) { prop = prop.withValueDeserializer(deser); _properties.put(prop.getName(), prop); Object nullValue = deser.getNullValue(); if (nullValue != null) { if (_defaultValues == null) { _defaultValues = new Object[_properties.size()]; } _defaultValues[prop.getPropertyIndex()] = nullValue; } }
/** * Helper method called to see if given property might be so-called unwrapped * property: these require special handling. * * @since 1.9 */ protected SettableBeanProperty _resolveUnwrappedProperty(DeserializationConfig config, SettableBeanProperty prop) { AnnotatedMember am = prop.getMember(); if (am != null && config.getAnnotationIntrospector().shouldUnwrapProperty(am) == Boolean.TRUE) { JsonDeserializer<Object> orig = prop.getValueDeserializer(); JsonDeserializer<Object> unwrapping = orig.unwrappingDeserializer(); if (unwrapping != orig && unwrapping != null) { // might be cleaner to create new instance; but difficult to do reliably, so: return prop.withValueDeserializer(unwrapping); } } return null; }
protected InnerClassProperty(InnerClassProperty src, JsonDeserializer<Object> deser) { super(src, deser); _delegate = src._delegate.withValueDeserializer(deser); _creator = src._creator; }
beanDesc.getClassAnnotations(), getter); if (propDeser != null) { prop = prop.withValueDeserializer(propDeser);
prop = prop.withValueDeserializer(findDeserializer(config, provider, prop.getType(), prop));
beanDesc.getClassAnnotations(), field); if (propDeser != null) { prop = prop.withValueDeserializer(propDeser);
beanDesc.getClassAnnotations(), setter); if (propDeser != null) { prop = prop.withValueDeserializer(propDeser);
public void assignDeserializer(SettableBeanProperty prop, JsonDeserializer<Object> deser) { prop = prop.withValueDeserializer(deser); _properties.put(prop.getName(), prop); Object nullValue = deser.getNullValue(); if (nullValue != null) { if (_defaultValues == null) { _defaultValues = new Object[_properties.size()]; } _defaultValues[prop.getPropertyIndex()] = nullValue; } }
/** * Helper method called to see if given property might be so-called unwrapped * property: these require special handling. * * @since 1.9 */ protected SettableBeanProperty _resolveUnwrappedProperty(DeserializationConfig config, SettableBeanProperty prop) { AnnotatedMember am = prop.getMember(); if (am != null && config.getAnnotationIntrospector().shouldUnwrapProperty(am) == Boolean.TRUE) { JsonDeserializer<Object> orig = prop.getValueDeserializer(); JsonDeserializer<Object> unwrapping = orig.unwrappingDeserializer(); if (unwrapping != orig && unwrapping != null) { // might be cleaner to create new instance; but difficult to do reliably, so: return prop.withValueDeserializer(unwrapping); } } return null; }
protected InnerClassProperty(InnerClassProperty src, JsonDeserializer<Object> deser) { super(src, deser); _delegate = src._delegate.withValueDeserializer(deser); _creator = src._creator; }
protected InnerClassProperty(InnerClassProperty src, JsonDeserializer<Object> deser) { super(src, deser); _delegate = src._delegate.withValueDeserializer(deser); _creator = src._creator; }
beanDesc.getClassAnnotations(), getter); if (propDeser != null) { prop = prop.withValueDeserializer(propDeser);
prop = prop.withValueDeserializer(findDeserializer(config, provider, prop.getType(), prop));
public void assignDeserializer(SettableBeanProperty prop, JsonDeserializer<Object> deser) { prop = prop.withValueDeserializer(deser); _properties.put(prop.getName(), prop); }
beanDesc.getClassAnnotations(), field); if (propDeser != null) { prop = prop.withValueDeserializer(propDeser);
public void assignDeserializer(SettableBeanProperty prop, JsonDeserializer<Object> deser) { prop = prop.withValueDeserializer(deser); _properties.put(prop.getName(), prop); Object nullValue = deser.getNullValue(); if (nullValue != null) { if (_defaultValues == null) { _defaultValues = new Object[_properties.size()]; } _defaultValues[prop.getPropertyIndex()] = nullValue; } }
beanDesc.getClassAnnotations(), setter); if (propDeser != null) { prop = prop.withValueDeserializer(propDeser);
@Override public BeanDeserializerBuilder updateBuilder(DeserializationConfig config, BasicBeanDescription beanDesc, BeanDeserializerBuilder builder) { Iterator<SettableBeanProperty> beanPropertyIterator = builder.getProperties(); while (beanPropertyIterator.hasNext()) { SettableBeanProperty settableBeanProperty = beanPropertyIterator.next(); Class<?> rawClass = settableBeanProperty.getType().getRawClass(); if (!isBasicType(rawClass)) { SettableBeanProperty newSettableBeanProperty = settableBeanProperty.withValueDeserializer(new PolymorphicDeserializer(rawClass, mapper)); builder.addOrReplaceProperty(newSettableBeanProperty, true); } } return builder; }
/** * Helper method called to see if given property might be so-called unwrapped * property: these require special handling. * * @since 1.9 */ protected SettableBeanProperty _resolveUnwrappedProperty(DeserializationConfig config, SettableBeanProperty prop) { AnnotatedMember am = prop.getMember(); if (am != null && config.getAnnotationIntrospector().shouldUnwrapProperty(am) == Boolean.TRUE) { JsonDeserializer<Object> orig = prop.getValueDeserializer(); JsonDeserializer<Object> unwrapping = orig.unwrappingDeserializer(); if (unwrapping != orig && unwrapping != null) { // might be cleaner to create new instance; but difficult to do reliably, so: return prop.withValueDeserializer(unwrapping); } } return null; }