private final void _handleUnknown(JsonParser jp, DeserializationContext ctxt, Object bean, String propName) throws IOException, JsonProcessingException { /* As per [JACKSON-313], things marked as ignorable should not be * passed to any setter */ if (_ignorableProps != null && _ignorableProps.contains(propName)) { jp.skipChildren(); } else if (_anySetter != null) { try { _anySetter.deserializeAndSet(jp, ctxt, bean, propName); } catch (Exception e) { wrapAndThrow(e, bean, propName, ctxt); } } else { // Unknown: let's call handler method handleUnknownProperty(jp, ctxt, bean, propName); } }
jp.skipChildren(); } else if (_anySetter != null) { _anySetter.deserializeAndSet(jp, ctxt, bean, propName); continue; } else {
_anySetter.deserializeAndSet(jp, ctxt, bean, propName);
_anySetter.deserializeAndSet(jp, ctxt, bean, propName); } catch (Exception e) { wrapAndThrow(e, bean, propName, ctxt);
_anySetter.deserializeAndSet(jp, ctxt, bean, propName); } catch (Exception e) { wrapAndThrow(e, bean, propName, ctxt);
_anySetter.deserializeAndSet(jp, ctxt, throwable, propName); continue;
private final void _handleUnknown(JsonParser jp, DeserializationContext ctxt, Object bean, String propName) throws IOException, JsonProcessingException { /* As per [JACKSON-313], things marked as ignorable should not be * passed to any setter */ if (_ignorableProps != null && _ignorableProps.contains(propName)) { jp.skipChildren(); } else if (_anySetter != null) { try { _anySetter.deserializeAndSet(jp, ctxt, bean, propName); } catch (Exception e) { wrapAndThrow(e, bean, propName, ctxt); } } else { // Unknown: let's call handler method handleUnknownProperty(jp, ctxt, bean, propName); } }
jp.skipChildren(); } else if (_anySetter != null) { _anySetter.deserializeAndSet(jp, ctxt, bean, propName); continue; } else {
_anySetter.deserializeAndSet(jp, ctxt, bean, propName);
_anySetter.deserializeAndSet(jp, ctxt, bean, propName); } catch (Exception e) { wrapAndThrow(e, bean, propName, ctxt);
_anySetter.deserializeAndSet(jp, ctxt, bean, propName); } catch (Exception e) { wrapAndThrow(e, bean, propName, ctxt);
_anySetter.deserializeAndSet(jp, ctxt, throwable, propName); continue;
private final void _handleUnknown(JsonParser jp, DeserializationContext ctxt, Object bean, String propName) throws IOException, JsonProcessingException { /* As per [JACKSON-313], things marked as ignorable should not be * passed to any setter */ if (_ignorableProps != null && _ignorableProps.contains(propName)) { jp.skipChildren(); } else if (_anySetter != null) { try { _anySetter.deserializeAndSet(jp, ctxt, bean, propName); } catch (Exception e) { wrapAndThrow(e, bean, propName, ctxt); } } else { // Unknown: let's call handler method handleUnknownProperty(jp, ctxt, bean, propName); } }
/** * Method that will process "extra" properties that follow * Creator-bound properties (if any). */ protected Object _deserializeProperties(final JsonParser jp, final DeserializationContext ctxt, Object bean) throws IOException, JsonProcessingException { while (jp.nextToken() != JsonToken.END_OBJECT) { // otherwise field name String propName = jp.getCurrentName(); SettableBeanProperty prop = _props.get(propName); if (prop != null) { // normal case prop.deserializeAndSet(jp, ctxt, bean); continue; } if (_anySetter != null) { _anySetter.deserializeAndSet(jp, ctxt, bean, propName); continue; } // need to process or skip the following token /*JsonToken t =*/ jp.nextToken(); // Unknown: let's call handler method handleUnknownProperty(ctxt, bean, propName); } return bean; }
_anySetter.deserializeAndSet(jp, ctxt, bean, propName); continue;
_anySetter.deserializeAndSet(jp, ctxt, bean, propName); continue;
_anySetter.deserializeAndSet(jp, ctxt, bean, propName); } catch (Exception e) { wrapAndThrow(e, bean, propName, ctxt);
jp.skipChildren(); } else if (_anySetter != null) { _anySetter.deserializeAndSet(jp, ctxt, bean, propName); continue; } else {
_anySetter.deserializeAndSet(jp, ctxt, bean, propName);
_anySetter.deserializeAndSet(jp, ctxt, bean, propName);