Example usage for com.fasterxml.jackson.databind.deser.impl ObjectIdValueProperty ObjectIdValueProperty

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

Introduction

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

Prototype

protected ObjectIdValueProperty(ObjectIdValueProperty paramObjectIdValueProperty, String paramString) 

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();/*from ww  w.  java2 s. 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);
}