@Override public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance) throws IOException, JsonProcessingException { set(instance, _managedProperty.deserialize(jp, ctxt)); }
protected Object deserializeWithExternalTypeId(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { if (_propertyBasedCreator != null) { return deserializeUsingPropertyBasedWithExternalTypeId(jp, ctxt); } return deserializeWithExternalTypeId(jp, ctxt, _valueInstantiator.createUsingDefault()); }
@Override public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance) throws IOException, JsonProcessingException { set(instance, deserialize(jp, ctxt)); }
public ManagedReferenceProperty(String refName, SettableBeanProperty forward, SettableBeanProperty backward, Annotations contextAnnotations, boolean isContainer) { super(forward.getName(), forward.getType(), forward._valueTypeDeserializer, contextAnnotations); _referenceName = refName; _managedProperty = forward; _backProperty = backward; _isContainer = isContainer; }
@Override public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance) throws IOException, JsonProcessingException { set(instance, deserialize(jp, ctxt)); }
/** * Method called to deserialize appropriate value, given parser (and * context), and set it using appropriate method (a setter method). */ public final void deserializeAndSet(JsonParser jp, DeserializationContext ctxt, Object instance, String propName) throws IOException, JsonProcessingException { set(instance, propName, deserialize(jp, ctxt)); }
protected DeserializationContext _createDeserializationContext(JsonParser jp, DeserializationConfig cfg) { return new StdDeserializationContext(cfg, jp, _deserializerProvider, _injectableValues); }
@Override public void assign(Object bean) throws IOException, JsonProcessingException { _property.set(bean, value); } }
/** * Public accessor to deserializers for core types. */ public static HashMap<ClassKey, JsonDeserializer<Object>> constructAll() { return new StdDeserializers()._deserializers; }
@Override public void assign(Object bean) throws IOException, JsonProcessingException { _property.set(bean, _propertyName, value); } }
protected InnerClassProperty(InnerClassProperty src, JsonDeserializer<Object> deser) { super(src, deser); _delegate = src._delegate.withValueDeserializer(deser); _creator = src._creator; }
@SuppressWarnings("deprecation") @Override public String deserializeWithType(JsonParser jp, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException, JsonProcessingException { return deserialize(jp, ctxt); } }
/** * @since 1.7 */ public BeanDeserializerFactory(DeserializerFactory.Config config) { if (config == null) { config = new ConfigImpl(); } _factoryConfig = config; }
/** * Overridable method that constructs a {@link BeanDeserializerBuilder} * which is used to accumulate information needed to create deserializer * instance. * * @since 1.7 */ protected BeanDeserializerBuilder constructBeanDeserializerBuilder(BasicBeanDescription beanDesc) { return new BeanDeserializerBuilder(beanDesc); }
public void assignIndexes() { // order is arbitrary, but stable: int index = 0; for (Bucket bucket : _buckets) { while (bucket != null) { bucket.value.assignIndex(index++); bucket = bucket.next; } } }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _managedProperty.getAnnotation(acls); }
/** * Method that can be called to check whether a delegate-based creator (single-arg * constructor or factory method) * is available for this instantiator */ public boolean canCreateUsingDelegate() { return getDelegateType() != null; }
/** * Method that can be called to check whether a default creator (constructor, * or no-arg static factory method) * is available for this instantiator */ public boolean canCreateUsingDefault() { return getDefaultCreator() != null; }
protected DeserializationContext _createDeserializationContext(JsonParser jp, DeserializationConfig cfg) { // 04-Jan-2010, tatu: we do actually need the provider too... (for polymorphic deser) return new StdDeserializationContext(cfg, jp, _provider, _injectableValues); }
@Override public final void set(Object instance, Object value) throws IOException { _delegate.set(instance, value); } }