com.fasterxml.jackson.databind.deser

Class BeanDeserializer

    • Method Detail

      • unwrappingDeserializer

        public JsonDeserializer<Object> unwrappingDeserializer(NameTransformer unwrapper)
        Description copied from class: JsonDeserializer
        Method that will return deserializer instance that is able to handle "unwrapped" value instances If no unwrapped instance can be constructed, will simply return this object as-is.

        Default implementation just returns 'this' indicating that no unwrapped variant exists

        Specified by:
        unwrappingDeserializer in class BeanDeserializerBase
      • deserialize

        public Object deserialize(com.fasterxml.jackson.core.JsonParser jp,
                         DeserializationContext ctxt)
                           throws IOException,
                                  com.fasterxml.jackson.core.JsonProcessingException
        Main deserialization method for bean-based objects (POJOs).

        NOTE: was declared 'final' in 2.2; should NOT be to let extensions like Afterburner change definition.

        Specified by:
        deserialize in class JsonDeserializer<Object>
        Parameters:
        jp - Parsed used for reading JSON content
        ctxt - Context that can be used to access information about this deserialization activity.
        Returns:
        Deserialized value
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • _deserializeOther

        protected final Object _deserializeOther(com.fasterxml.jackson.core.JsonParser jp,
                               DeserializationContext ctxt,
                               com.fasterxml.jackson.core.JsonToken t)
                                          throws IOException,
                                                 com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • _missingToken

        protected Object _missingToken(com.fasterxml.jackson.core.JsonParser jp,
                           DeserializationContext ctxt)
                                throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • deserialize

        public Object deserialize(com.fasterxml.jackson.core.JsonParser jp,
                         DeserializationContext ctxt,
                         Object bean)
                           throws IOException,
                                  com.fasterxml.jackson.core.JsonProcessingException
        Secondary deserialization method, called in cases where POJO instance is created as part of deserialization, potentially after collecting some or all of the properties to set.
        Overrides:
        deserialize in class JsonDeserializer<Object>
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • _deserializeUsingPropertyBased

        protected Object _deserializeUsingPropertyBased(com.fasterxml.jackson.core.JsonParser jp,
                                            DeserializationContext ctxt)
                                                 throws IOException,
                                                        com.fasterxml.jackson.core.JsonProcessingException
        Method called to deserialize bean using "property-based creator": this means that a non-default constructor or factory method is called, and then possibly other setters. The trick is that values for creator method need to be buffered, first; and due to non-guaranteed ordering possibly some other properties as well.
        Specified by:
        _deserializeUsingPropertyBased in class BeanDeserializerBase
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • deserializeWithView

        protected final Object deserializeWithView(com.fasterxml.jackson.core.JsonParser jp,
                                 DeserializationContext ctxt,
                                 Object bean,
                                 Class<?> activeView)
                                            throws IOException,
                                                   com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • deserializeWithUnwrapped

        protected Object deserializeWithUnwrapped(com.fasterxml.jackson.core.JsonParser jp,
                                      DeserializationContext ctxt)
                                           throws IOException,
                                                  com.fasterxml.jackson.core.JsonProcessingException
        Method called when there are declared "unwrapped" properties which need special handling
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • deserializeWithUnwrapped

        protected Object deserializeWithUnwrapped(com.fasterxml.jackson.core.JsonParser jp,
                                      DeserializationContext ctxt,
                                      Object bean)
                                           throws IOException,
                                                  com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • deserializeUsingPropertyBasedWithUnwrapped

        protected Object deserializeUsingPropertyBasedWithUnwrapped(com.fasterxml.jackson.core.JsonParser jp,
                                                        DeserializationContext ctxt)
                                                             throws IOException,
                                                                    com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • deserializeWithExternalTypeId

        protected Object deserializeWithExternalTypeId(com.fasterxml.jackson.core.JsonParser jp,
                                           DeserializationContext ctxt)
                                                throws IOException,
                                                       com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • deserializeWithExternalTypeId

        protected Object deserializeWithExternalTypeId(com.fasterxml.jackson.core.JsonParser jp,
                                           DeserializationContext ctxt,
                                           Object bean)
                                                throws IOException,
                                                       com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • deserializeUsingPropertyBasedWithExternalTypeId

        protected Object deserializeUsingPropertyBasedWithExternalTypeId(com.fasterxml.jackson.core.JsonParser jp,
                                                             DeserializationContext ctxt)
                                                                  throws IOException,
                                                                         com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException

Copyright © 2012-2013 FasterXML. All Rights Reserved.