@Override public final void set(Object instance, Object value) throws IOException { try { _field.set(instance, value); } catch (Exception e) { _throwAsIOE(e, value); } } }
type = modifyTypeByAnnotation(config, field, type, name); TypeDeserializer typeDeser = type.getTypeHandler(); SettableBeanProperty prop = new SettableBeanProperty.FieldProperty(name, type, typeDeser, beanDesc.getClassAnnotations(), field); if (propDeser != null) {
type = modifyTypeByAnnotation(config, field, type, name); TypeDeserializer typeDeser = type.getTypeHandler(); SettableBeanProperty prop = new SettableBeanProperty.FieldProperty(name, type, typeDeser, beanDesc.getClassAnnotations(), field); if (propDeser != null) {
type = modifyTypeByAnnotation(config, field, type, name); TypeDeserializer typeDeser = type.getTypeHandler(); SettableBeanProperty prop = new SettableBeanProperty.FieldProperty(name, type, typeDeser, beanDesc.getClassAnnotations(), field); if (propDeser != null) {
protected SettableBeanProperty constructSettableProperty(DeserializationConfig config, BasicBeanDescription beanDesc, String name, AnnotatedField field) throws JsonMappingException { // need to ensure method is callable (for non-public) if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) { field.fixAccess(); } JavaType type = resolveType(config, beanDesc, field.getGenericType(), field); /* First: does the Method specify the deserializer to use? * If so, let's use it. */ JsonDeserializer<Object> propDeser = findDeserializerFromAnnotation(config, field); Field f = field.getAnnotated(); if (propDeser != null) { SettableBeanProperty prop = new SettableBeanProperty.FieldProperty(name, type, f); prop.setValueDeserializer(propDeser); return prop; } // Otherwise, method may specify more specific (sub-)class for // value (no need to check if explicit deser was specified): type = modifyTypeByAnnotation(config, field, type); return new SettableBeanProperty.FieldProperty(name, type, f); }
@Override public FieldProperty withValueDeserializer(JsonDeserializer<Object> deser) { return new FieldProperty(this, deser); }
@Override public FieldProperty withValueDeserializer(JsonDeserializer<Object> deser) { return new FieldProperty(this, deser); }
@Override public final void set(Object instance, Object value) throws IOException { try { _field.set(instance, value); } catch (Exception e) { _throwAsIOE(e, value); } } }
@Override public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance) throws IOException, JsonProcessingException { set(instance, deserialize(jp, ctxt)); }
@Override public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance) throws IOException, JsonProcessingException { set(instance, deserialize(jp, ctxt)); }
@Override public final void set(Object instance, Object value) throws IOException { try { _field.set(instance, value); } catch (Exception e) { _throwAsIOE(e, value); } } }
@Override public final void set(Object instance, Object value) throws IOException { try { _field.set(instance, value); } catch (Exception e) { _throwAsIOE(e, value); } } }
@Override public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance) throws IOException, JsonProcessingException { set(instance, deserialize(jp, ctxt)); }
public final void set(Object instance, Object value) throws IOException { try { _field.set(instance, value); } catch (Exception e) { _throwAsIOE(e, value); } } }
public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance) throws IOException, JsonProcessingException { set(instance, deserialize(jp, ctxt)); }
type = modifyTypeByAnnotation(config, field, type, name); TypeDeserializer typeDeser = type.getTypeHandler(); SettableBeanProperty prop = new SettableBeanProperty.FieldProperty(name, type, typeDeser, beanDesc.getClassAnnotations(), field); if (propDeser != null) {
@Override public FieldProperty withValueDeserializer(JsonDeserializer<Object> deser) { return new FieldProperty(this, deser); }
@Override public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance) throws IOException, JsonProcessingException { set(instance, deserialize(jp, ctxt)); }
type = modifyTypeByAnnotation(config, field, type, name); TypeDeserializer typeDeser = type.getTypeHandler(); SettableBeanProperty prop = new SettableBeanProperty.FieldProperty(name, type, typeDeser, beanDesc.getClassAnnotations(), field); if (propDeser != null) {
@Override public FieldProperty withValueDeserializer(JsonDeserializer<Object> deser) { return new FieldProperty(this, deser); }