com.fasterxml.jackson.dataformat.xml.deser
Class WrapperHandlingDeserializer

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonDeserializer<T>
      extended by com.fasterxml.jackson.databind.deser.std.StdDeserializer<Object>
          extended by com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
              extended by com.fasterxml.jackson.dataformat.xml.deser.WrapperHandlingDeserializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.ContextualDeserializer, com.fasterxml.jackson.databind.deser.ResolvableDeserializer, Serializable

public class WrapperHandlingDeserializer
extends com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer

Delegating deserializer whose only function is to handle case of "unwrapped" List/array deserialization from XML.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None
 
Field Summary
protected  Set<String> _namesToWrap
           
 
Fields inherited from class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
_delegatee
 
Fields inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
_valueClass
 
Constructor Summary
WrapperHandlingDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate)
           
WrapperHandlingDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate, Set<String> namesToWrap)
           
 
Method Summary
protected  void _configureParser(com.fasterxml.jackson.core.JsonParser jp)
           
protected  com.fasterxml.jackson.databind.JsonDeserializer<?> _createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.BeanProperty property, com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatee0)
           
protected  com.fasterxml.jackson.databind.deser.BeanDeserializerBase _verifyDeserType(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)
           
 Object deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)
           
 Object deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt, Object intoValue)
           
 Object deserializeWithType(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer)
           
protected  com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatingInstance(com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatee)
           
 
Methods inherited from class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
createContextual, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, resolve
 
Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
_parseBoolean, _parseBooleanFromNumber, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, findDeserializer, getValueClass, getValueType, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
 
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
unwrappingDeserializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_namesToWrap

protected final Set<String> _namesToWrap
Constructor Detail

WrapperHandlingDeserializer

public WrapperHandlingDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate)

WrapperHandlingDeserializer

public WrapperHandlingDeserializer(com.fasterxml.jackson.databind.deser.BeanDeserializerBase delegate,
                                   Set<String> namesToWrap)
Method Detail

newDelegatingInstance

protected com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatingInstance(com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatee)
Specified by:
newDelegatingInstance in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer

_createContextual

protected com.fasterxml.jackson.databind.JsonDeserializer<?> _createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
                                                                               com.fasterxml.jackson.databind.BeanProperty property,
                                                                               com.fasterxml.jackson.databind.JsonDeserializer<?> newDelegatee0)
Overrides:
_createContextual in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer

deserialize

public Object deserialize(com.fasterxml.jackson.core.JsonParser jp,
                          com.fasterxml.jackson.databind.DeserializationContext ctxt)
                   throws IOException,
                          com.fasterxml.jackson.core.JsonProcessingException
Overrides:
deserialize in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException

deserialize

public Object deserialize(com.fasterxml.jackson.core.JsonParser jp,
                          com.fasterxml.jackson.databind.DeserializationContext ctxt,
                          Object intoValue)
                   throws IOException,
                          com.fasterxml.jackson.core.JsonProcessingException
Overrides:
deserialize in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException

deserializeWithType

public Object deserializeWithType(com.fasterxml.jackson.core.JsonParser jp,
                                  com.fasterxml.jackson.databind.DeserializationContext ctxt,
                                  com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer)
                           throws IOException,
                                  com.fasterxml.jackson.core.JsonProcessingException
Overrides:
deserializeWithType in class com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer
Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException

_configureParser

protected void _configureParser(com.fasterxml.jackson.core.JsonParser jp)
                         throws IOException,
                                com.fasterxml.jackson.core.JsonProcessingException
Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException

_verifyDeserType

protected com.fasterxml.jackson.databind.deser.BeanDeserializerBase _verifyDeserType(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)


Copyright © 2012 FasterXML. All Rights Reserved.