/external/jackson-annotations/src/test/java/com/fasterxml/jackson/annotation/ |
D | JsonSetterTest.java | 6 @JsonSetter(nulls=Nulls.FAIL, contentNulls=Nulls.SKIP) 10 private final JsonSetter.Value EMPTY = JsonSetter.Value.empty(); 17 assertEquals(JsonSetter.class, EMPTY.valueFor()); in testEmpty() 37 assertSame(EMPTY, JsonSetter.Value.from(null)); // legal in testFromAnnotation() 39 JsonSetter ann = Bogus.class.getField("field").getAnnotation(JsonSetter.class); in testFromAnnotation() 40 JsonSetter.Value v = JsonSetter.Value.from(ann); in testFromAnnotation() 47 JsonSetter.Value v = JsonSetter.Value.construct(null, null); in testConstruct() 53 JsonSetter.Value v = JsonSetter.Value.forContentNulls(Nulls.SET); in testFactories() 58 JsonSetter.Value skip = JsonSetter.Value.forValueNulls(Nulls.SKIP); in testFactories() 66 JsonSetter.Value v = EMPTY.withContentNulls(Nulls.SKIP); in testSimpleMerge() [all …]
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/ |
D | ConfigOverrides.java | 7 import com.fasterxml.jackson.annotation.JsonSetter; 35 protected JsonSetter.Value _defaultSetterInfo; 67 JsonSetter.Value.empty(), in ConfigOverrides() 77 JsonInclude.Value defIncl, JsonSetter.Value defSetter, in ConfigOverrides() 93 JsonInclude.Value defIncl, JsonSetter.Value defSetter, in ConfigOverrides() 177 public JsonSetter.Value getDefaultSetterInfo() { in getDefaultSetterInfo() 209 public void setDefaultSetterInfo(JsonSetter.Value v) { in setDefaultSetterInfo()
|
D | ConfigOverride.java | 7 import com.fasterxml.jackson.annotation.JsonSetter; 53 protected JsonSetter.Value _setterInfo; 114 public JsonSetter.Value getSetterInfo() { return _setterInfo; } in getSetterInfo()
|
D | MutableConfigOverride.java | 7 import com.fasterxml.jackson.annotation.JsonSetter; 76 public MutableConfigOverride setSetterInfo(JsonSetter.Value v) { in setSetterInfo()
|
D | MapperBuilder.java | 10 import com.fasterxml.jackson.annotation.JsonSetter; 452 public B defaultSetterInfo(JsonSetter.Value v) {
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/ |
D | NullConversionsSkipTest.java | 3 import com.fasterxml.jackson.annotation.JsonSetter; 13 @JsonSetter(nulls=Nulls.SKIP) 25 @JsonSetter(nulls=Nulls.SKIP) 45 @JsonSetter(value = "number", nulls = Nulls.SKIP) 108 .setSetterInfo(JsonSetter.Value.forValueNulls(Nulls.SKIP)); in testSkipNullWithDefaults()
|
D | NullConversionsPojoTest.java | 3 import com.fasterxml.jackson.annotation.JsonSetter; 14 @JsonSetter(nulls=Nulls.FAIL) 21 @JsonSetter(nulls=Nulls.AS_EMPTY) 75 .setSetterInfo(JsonSetter.Value.forValueNulls(Nulls.FAIL)); in testFailOnNullWithDefaults() 103 .setSetterInfo(JsonSetter.Value.forValueNulls(Nulls.AS_EMPTY)); in testNullsToEmptyScalar()
|
D | NullConversionsForContentTest.java | 5 import com.fasterxml.jackson.annotation.JsonSetter; 18 @JsonSetter(contentNulls=Nulls.FAIL) 23 @JsonSetter(contentNulls=Nulls.AS_EMPTY) 28 @JsonSetter(contentNulls=Nulls.SKIP) 33 @JsonSetter // leave with defaults 59 mapper.setDefaultSetterInfo(JsonSetter.Value.forContentNulls(Nulls.FAIL)); in testFailOnNullFromDefaults() 71 .setSetterInfo(JsonSetter.Value.forContentNulls(Nulls.FAIL)); in testFailOnNullFromDefaults() 223 mapper.setDefaultSetterInfo(JsonSetter.Value.forContentNulls(Nulls.AS_EMPTY)); in testNullsAsEmptyUsingDefaults() 231 .setSetterInfo(JsonSetter.Value.forContentNulls(Nulls.AS_EMPTY)); in testNullsAsEmptyUsingDefaults() 315 mapper.setDefaultSetterInfo(JsonSetter.Value.forContentNulls(Nulls.SKIP)); in testNullsSkipUsingDefaults() [all …]
|
D | NullConversionsForEnumsTest.java | 6 import com.fasterxml.jackson.annotation.JsonSetter; 15 @JsonSetter(nulls=Nulls.AS_EMPTY) 20 @JsonSetter(contentNulls=Nulls.AS_EMPTY) 25 @JsonSetter(contentNulls=Nulls.SKIP)
|
D | NullConversionsGenericTest.java | 6 import com.fasterxml.jackson.annotation.JsonSetter; 21 @JsonSetter(nulls=Nulls.AS_EMPTY) 28 @JsonSetter(nulls=Nulls.AS_EMPTY)
|
D | NullConversionsViaCreator2458Test.java | 8 import com.fasterxml.jackson.annotation.JsonSetter; 34 .defaultSetterInfo(JsonSetter.Value.construct(Nulls.AS_EMPTY,
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/merge/ |
D | MergeWithNullTest.java | 4 import com.fasterxml.jackson.annotation.JsonSetter; 24 @JsonSetter(nulls=Nulls.SKIP) 35 @JsonSetter(nulls=Nulls.SET) 88 .setSetterInfo(JsonSetter.Value.forValueNulls(Nulls.SKIP)); in testBeanMergingWithNullDefault() 97 mapper.setDefaultSetterInfo(JsonSetter.Value.forValueNulls(Nulls.SKIP)); in testBeanMergingWithNullDefault()
|
D | MapMergeTest.java | 6 import com.fasterxml.jackson.annotation.JsonSetter; 55 .setDefaultSetterInfo(JsonSetter.Value.forContentNulls(Nulls.SKIP));
|
/external/jackson-annotations/src/main/java/com/fasterxml/jackson/annotation/ |
D | JsonSetter.java | 17 public @interface JsonSetter annotation 63 implements JacksonAnnotationValue<JsonSetter>, 83 public Class<JsonSetter> valueFor() { in valueFor() 84 return JsonSetter.class; in valueFor() 95 public static Value from(JsonSetter src) { in from()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/ |
D | AsEmptyPOJONoDefaultCtor2572Test.java | 34 .setDefaultSetterInfo(JsonSetter.Value.construct(Nulls.AS_EMPTY, Nulls.AS_EMPTY)); in testJackson()
|
D | JsonSetter2572Test.java | 40 .defaultSetterInfo(JsonSetter.Value.construct(Nulls.AS_EMPTY, Nulls.AS_EMPTY)) in testSetterWithEmpty()
|
D | JacksonInject2465Test.java | 41 .defaultSetterInfo(JsonSetter.Value.construct(Nulls.AS_EMPTY, Nulls.AS_EMPTY)) in testInjectWithCreator()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | ObjectMapperTest.java | 9 import com.fasterxml.jackson.annotation.JsonSetter; 174 assertEquals(JsonSetter.Value.empty(), config.getDefaultSetterInfo()); in testCopyOfConfigOverrides() 182 JsonSetter.Value customSetter = JsonSetter.Value.forValueNulls(Nulls.SKIP); in testCopyOfConfigOverrides()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ |
D | AnnotationIntrospector.java | 1366 public JsonSetter.Value findSetterInfo(Annotated ann) { in findSetterInfo() 1367 return JsonSetter.Value.empty(); in findSetterInfo()
|
/external/jackson-annotations/release-notes/ |
D | VERSION-2.x | 41 #104: Add `JsonSetter.nulls`, `JsonSetter.contentNulls` for configurable null handling
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/ |
D | AnnotationIntrospectorPair.java | 15 import com.fasterxml.jackson.annotation.JsonSetter; 797 public JsonSetter.Value findSetterInfo(Annotated a) { in findSetterInfo() 798 JsonSetter.Value v2 = _secondary.findSetterInfo(a); in findSetterInfo() 799 JsonSetter.Value v1 = _primary.findSetterInfo(a); in findSetterInfo()
|
D | JacksonAnnotationIntrospector.java | 1293 JsonSetter js = _findAnnotation(a, JsonSetter.class); in findNameForDeserialization() 1320 public JsonSetter.Value findSetterInfo(Annotated a) { in findSetterInfo() 1321 return JsonSetter.Value.from(_findAnnotation(a, JsonSetter.class)); in findSetterInfo()
|
D | POJOPropertyBuilder.java | 7 import com.fasterxml.jackson.annotation.JsonSetter; 278 JsonSetter.Value setterInfo = _annotationIntrospector.findSetterInfo(primary); in _getSetterInfo() 292 JsonSetter.Value setterInfo = co.getSetterInfo(); in _getSetterInfo() 313 JsonSetter.Value setterInfo = _config.getDefaultSetterInfo(); in _getSetterInfo()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/ |
D | ExternalTypeIdTest.java | 268 @JsonSetter("type") 280 @JsonSetter(value = "objectValue")
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/ |
D | BuilderSimpleTest.java | 76 @JsonSetter("c")
|