Home
last modified time | relevance | path

Searched refs:JsonSetter (Results 1 – 25 of 30) sorted by relevance

12

/external/jackson-annotations/src/test/java/com/fasterxml/jackson/annotation/
DJsonSetterTest.java6 @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/
DConfigOverrides.java7 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()
DConfigOverride.java7 import com.fasterxml.jackson.annotation.JsonSetter;
53 protected JsonSetter.Value _setterInfo;
114 public JsonSetter.Value getSetterInfo() { return _setterInfo; } in getSetterInfo()
DMutableConfigOverride.java7 import com.fasterxml.jackson.annotation.JsonSetter;
76 public MutableConfigOverride setSetterInfo(JsonSetter.Value v) { in setSetterInfo()
DMapperBuilder.java10 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/
DNullConversionsSkipTest.java3 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()
DNullConversionsPojoTest.java3 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()
DNullConversionsForContentTest.java5 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 …]
DNullConversionsForEnumsTest.java6 import com.fasterxml.jackson.annotation.JsonSetter;
15 @JsonSetter(nulls=Nulls.AS_EMPTY)
20 @JsonSetter(contentNulls=Nulls.AS_EMPTY)
25 @JsonSetter(contentNulls=Nulls.SKIP)
DNullConversionsGenericTest.java6 import com.fasterxml.jackson.annotation.JsonSetter;
21 @JsonSetter(nulls=Nulls.AS_EMPTY)
28 @JsonSetter(nulls=Nulls.AS_EMPTY)
DNullConversionsViaCreator2458Test.java8 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/
DMergeWithNullTest.java4 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()
DMapMergeTest.java6 import com.fasterxml.jackson.annotation.JsonSetter;
55 .setDefaultSetterInfo(JsonSetter.Value.forContentNulls(Nulls.SKIP));
/external/jackson-annotations/src/main/java/com/fasterxml/jackson/annotation/
DJsonSetter.java17 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/
DAsEmptyPOJONoDefaultCtor2572Test.java34 .setDefaultSetterInfo(JsonSetter.Value.construct(Nulls.AS_EMPTY, Nulls.AS_EMPTY)); in testJackson()
DJsonSetter2572Test.java40 .defaultSetterInfo(JsonSetter.Value.construct(Nulls.AS_EMPTY, Nulls.AS_EMPTY)) in testSetterWithEmpty()
DJacksonInject2465Test.java41 .defaultSetterInfo(JsonSetter.Value.construct(Nulls.AS_EMPTY, Nulls.AS_EMPTY)) in testInjectWithCreator()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DObjectMapperTest.java9 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/
DAnnotationIntrospector.java1366 public JsonSetter.Value findSetterInfo(Annotated ann) { in findSetterInfo()
1367 return JsonSetter.Value.empty(); in findSetterInfo()
/external/jackson-annotations/release-notes/
DVERSION-2.x41 #104: Add `JsonSetter.nulls`, `JsonSetter.contentNulls` for configurable null handling
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DAnnotationIntrospectorPair.java15 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()
DJacksonAnnotationIntrospector.java1293 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()
DPOJOPropertyBuilder.java7 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/
DExternalTypeIdTest.java268 @JsonSetter("type")
280 @JsonSetter(value = "objectValue")
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/
DBuilderSimpleTest.java76 @JsonSetter("c")

12