Example usage for com.fasterxml.jackson.databind PropertyName USE_DEFAULT

List of usage examples for com.fasterxml.jackson.databind PropertyName USE_DEFAULT

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind PropertyName USE_DEFAULT.

Prototype

PropertyName USE_DEFAULT

To view the source code for com.fasterxml.jackson.databind PropertyName USE_DEFAULT.

Click Source Link

Usage

From source file:com.addthis.codec.jackson.CodecIntrospector.java

@Override
public PropertyName findNameForDeserialization(Annotated a) {
    FieldConfig fieldConfig = a.getAnnotation(FieldConfig.class);
    if ((fieldConfig != null) && !fieldConfig.writeonly() && fieldConfig.codable()) {
        return PropertyName.USE_DEFAULT;
    }//from w ww  .  j a v  a2  s  .c  om
    return null;
}

From source file:com.addthis.codec.jackson.CodecIntrospector.java

@Override
public PropertyName findNameForSerialization(Annotated a) {
    FieldConfig fieldConfig = a.getAnnotation(FieldConfig.class);
    if ((fieldConfig != null) && !fieldConfig.readonly() && fieldConfig.codable()) {
        return PropertyName.USE_DEFAULT;
    }/*from ww w.  j a  va2s . co  m*/
    return null;
}