Example usage for com.fasterxml.jackson.databind.deser.impl BeanPropertyMap withProperty

List of usage examples for com.fasterxml.jackson.databind.deser.impl BeanPropertyMap withProperty

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.deser.impl BeanPropertyMap withProperty.

Prototype

public BeanPropertyMap withProperty(SettableBeanProperty paramSettableBeanProperty) 

Source Link

Usage

From source file:com.github.shyiko.jackson.module.advice.AdvisedBeanDeserializerBuilder.java

@Override
public JsonDeserializer<?> build() {
    Collection<SettableBeanProperty> props = _properties.values();
    BeanPropertyMap propertyMap = new BeanPropertyMap(props);
    propertyMap.assignIndexes();/*w ww  . ja v a  2s  .c  o m*/
    boolean anyViews = !_defaultViewInclusion;
    if (!anyViews) {
        for (SettableBeanProperty prop : props) {
            if (prop.hasViews()) {
                anyViews = true;
                break;
            }
        }
    }
    if (_objectIdReader != null) {
        ObjectIdValueProperty prop = new ObjectIdValueProperty(_objectIdReader, PropertyMetadata.STD_REQUIRED);
        propertyMap = propertyMap.withProperty(prop);
    }
    return new AdvisedBeanDeserializer(this, _beanDesc, propertyMap, _backRefProperties, _ignorableProps,
            _ignoreAllUnknown, anyViews, beanDeserializerAdvice);
}