/external/jackson-annotations/src/test/java/com/fasterxml/jackson/annotation/ |
D | IncludeTest.java | 3 import com.fasterxml.jackson.annotation.JsonInclude.Include; 11 private final JsonInclude.Value EMPTY = JsonInclude.Value.empty(); 13 @JsonInclude(value=JsonInclude.Include.NON_EMPTY, content=JsonInclude.Include.NON_DEFAULT) 16 @JsonInclude(value=JsonInclude.Include.CUSTOM, valueFilter=Integer.class, 17 content=JsonInclude.Include.CUSTOM, contentFilter=Long.class) 23 JsonInclude.Value v1 = JsonInclude.Value.construct(Include.NON_ABSENT, null); in testEquality() 24 JsonInclude.Value v2 = JsonInclude.Value.construct(Include.NON_ABSENT, null); in testEquality() 25 JsonInclude.Value v3 = JsonInclude.Value.construct(Include.NON_ABSENT, Include.NON_EMPTY); in testEquality() 38 JsonInclude ann = Bogus.class.getAnnotation(JsonInclude.class); in testFromAnnotation() 39 JsonInclude.Value v = JsonInclude.Value.from(ann); in testFromAnnotation() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/filter/ |
D | JsonIncludeOverrideTest.java | 8 import com.fasterxml.jackson.annotation.JsonInclude; 30 @JsonInclude(JsonInclude.Include.ALWAYS) 34 @JsonInclude(JsonInclude.Include.USE_DEFAULTS) 37 @JsonInclude(JsonInclude.Include.NON_NULL) 43 @JsonInclude(JsonInclude.Include.NON_NULL) 47 @JsonInclude(JsonInclude.Include.USE_DEFAULTS) 50 @JsonInclude(JsonInclude.Include.ALWAYS) 67 .setInclude(JsonInclude.Value.construct(JsonInclude.Include.NON_EMPTY, null)); in testPropConfigOverridesForInclude() 73 .setInclude(JsonInclude.Value.construct(JsonInclude.Include.NON_EMPTY, null)); in testPropConfigOverridesForInclude() 89 .setIncludeAsProperty(JsonInclude.Value in testOverrideForIncludeAsPropertyNonNull() [all …]
|
D | JsonIncludeTest.java | 7 import com.fasterxml.jackson.annotation.JsonInclude; 27 @JsonInclude(JsonInclude.Include.ALWAYS) // just to ensure default 30 @JsonInclude(JsonInclude.Include.NON_NULL) 36 @JsonInclude(JsonInclude.Include.NON_DEFAULT) 50 @JsonInclude(JsonInclude.Include.NON_DEFAULT) 64 @JsonInclude(JsonInclude.Include.NON_DEFAULT) 73 @JsonInclude(JsonInclude.Include.NON_NULL) 78 @JsonInclude(JsonInclude.Include.NON_DEFAULT) 83 @JsonInclude(JsonInclude.Include.NON_DEFAULT) 91 @JsonInclude(JsonInclude.Include.NON_DEFAULT) [all …]
|
D | JsonIncludeArrayTest.java | 5 import com.fasterxml.jackson.annotation.JsonInclude; 13 @JsonInclude(JsonInclude.Include.NON_EMPTY) 20 @JsonInclude(JsonInclude.Include.NON_EMPTY) 27 @JsonInclude(JsonInclude.Include.NON_EMPTY) 34 @JsonInclude(JsonInclude.Include.NON_EMPTY) 41 @JsonInclude(JsonInclude.Include.NON_EMPTY) 48 @JsonInclude(JsonInclude.Include.NON_EMPTY) 55 @JsonInclude(JsonInclude.Include.NON_EMPTY) 62 @JsonInclude(JsonInclude.Include.NON_EMPTY)
|
D | MapInclusion2573Test.java | 5 import com.fasterxml.jackson.annotation.JsonInclude; 37 …private final JsonInclude.Value BOTH_NON_NULL = JsonInclude.Value.construct(JsonInclude.Include.NO… 38 JsonInclude.Include.NON_NULL); 62 .setInclude(JsonInclude.Value.construct(JsonInclude.Include.USE_DEFAULTS, in test2572MapOverrideUseDefaults() 63 JsonInclude.Include.USE_DEFAULTS)); in test2572MapOverrideUseDefaults() 77 .setInclude(JsonInclude.Value.construct(JsonInclude.Include.ALWAYS, in test2572MapOverrideInclAlways() 78 JsonInclude.Include.ALWAYS)); in test2572MapOverrideInclAlways()
|
D | MapInclusionTest.java | 6 import com.fasterxml.jackson.annotation.JsonInclude; 12 @JsonInclude(value=JsonInclude.Include.NON_EMPTY, 13 content=JsonInclude.Include.NON_EMPTY) 23 @JsonInclude(value=JsonInclude.Include.NON_NULL, 24 content=JsonInclude.Include.NON_NULL) 34 @JsonInclude(value=JsonInclude.Include.NON_EMPTY, 35 content=JsonInclude.Include.NON_NULL)
|
D | JsonInclude1327Test.java | 5 import com.fasterxml.jackson.annotation.JsonInclude; 18 @JsonInclude(JsonInclude.Include.NON_EMPTY) 24 @JsonInclude(JsonInclude.Include.ALWAYS) 37 om.setSerializationInclusion(JsonInclude.Include.NON_NULL); in testClassDefaultsForEmpty() 48 om.setSerializationInclusion(JsonInclude.Include.NON_EMPTY); in testClassDefaultsForAlways()
|
D | TestMapFiltering.java | 9 import com.fasterxml.jackson.annotation.JsonInclude; 106 @JsonInclude(content=JsonInclude.Include.NON_NULL) 116 @JsonInclude(content=JsonInclude.Include.NON_NULL) 125 @JsonInclude(content=JsonInclude.Include.NON_ABSENT) 134 @JsonInclude(content=JsonInclude.Include.NON_EMPTY) 144 @JsonInclude(content=JsonInclude.Include.NON_EMPTY, 145 value=JsonInclude.Include.NON_EMPTY) 275 mapper.setDefaultPropertyInclusion(JsonInclude.Value.empty() in testMapViaGlobalNonEmpty() 276 .withContentInclusion(JsonInclude.Include.NON_EMPTY)); in testMapViaGlobalNonEmpty() 289 .setInclude(JsonInclude.Value.empty() in testMapViaTypeOverride() [all …]
|
D | JsonIncludeCustomTest.java | 36 @JsonInclude(value=JsonInclude.Include.CUSTOM, 44 @JsonInclude(content=JsonInclude.Include.CUSTOM, 55 @JsonInclude(value=JsonInclude.Include.CUSTOM,
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | JDKAtomicTypesDeserTest.java | 146 mapper.setSerializationInclusion(JsonInclude.Include.NON_ABSENT); in testAbsentExclusion() 155 JsonInclude.Value incl = in testSerPropInclusionAlways() 156 … JsonInclude.Value.construct(JsonInclude.Include.NON_ABSENT, JsonInclude.Include.ALWAYS); in testSerPropInclusionAlways() 165 JsonInclude.Value incl = in testSerPropInclusionNonNull() 166 … JsonInclude.Value.construct(JsonInclude.Include.NON_ABSENT, JsonInclude.Include.NON_NULL); in testSerPropInclusionNonNull() 175 JsonInclude.Value incl = in testSerPropInclusionNonAbsent() 176 … JsonInclude.Value.construct(JsonInclude.Include.NON_ABSENT, JsonInclude.Include.NON_ABSENT); in testSerPropInclusionNonAbsent() 185 JsonInclude.Value incl = in testSerPropInclusionNonEmpty() 186 … JsonInclude.Value.construct(JsonInclude.Include.NON_ABSENT, JsonInclude.Include.NON_EMPTY); in testSerPropInclusionNonEmpty() 216 mapper = new ObjectMapper().setSerializationInclusion(JsonInclude in testFilteringOfAtomicReference() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/format/ |
D | MapEntryFormatTest.java | 7 import com.fasterxml.jackson.annotation.JsonInclude; 53 @JsonInclude(value=JsonInclude.Include.NON_EMPTY, 54 content=JsonInclude.Include.NON_NULL) 65 @JsonInclude(value=JsonInclude.Include.NON_EMPTY, 66 content=JsonInclude.Include.NON_DEFAULT) 77 @JsonInclude(value=JsonInclude.Include.NON_EMPTY, 78 content=JsonInclude.Include.NON_ABSENT) 89 @JsonInclude(value=JsonInclude.Include.NON_EMPTY, 90 content=JsonInclude.Include.NON_EMPTY)
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/ |
D | VirtualBeanPropertyWriter.java | 3 import com.fasterxml.jackson.annotation.JsonInclude; 55 JsonInclude.Value inclusion, Class<?>[] includeInViews) in VirtualBeanPropertyWriter() 67 JsonInclude.Value inclusion) in VirtualBeanPropertyWriter() 80 protected static boolean _suppressNulls(JsonInclude.Value inclusion) { in _suppressNulls() 84 JsonInclude.Include incl = inclusion.getValueInclusion(); in _suppressNulls() 85 return (incl != JsonInclude.Include.ALWAYS) && (incl != JsonInclude.Include.USE_DEFAULTS); in _suppressNulls() 88 protected static Object _suppressableValue(JsonInclude.Value inclusion) { in _suppressableValue() 92 JsonInclude.Include incl = inclusion.getValueInclusion(); in _suppressableValue() 93 if ((incl == JsonInclude.Include.ALWAYS) in _suppressableValue() 94 || (incl == JsonInclude.Include.NON_NULL) in _suppressableValue() [all …]
|
D | PropertyBuilder.java | 3 import com.fasterxml.jackson.annotation.JsonInclude; 42 final protected JsonInclude.Value _defaultInclusion; 66 JsonInclude.Value inclPerType = JsonInclude.Value.merge( in PropertyBuilder() 67 beanDesc.findPropertyInclusion(JsonInclude.Value.empty()), in PropertyBuilder() 69 JsonInclude.Value.empty())); in PropertyBuilder() 70 _defaultInclusion = JsonInclude.Value.merge(config.getDefaultPropertyInclusion(), in PropertyBuilder() 72 … _useRealPropertyDefaults = inclPerType.getValueInclusion() == JsonInclude.Include.NON_DEFAULT; in PropertyBuilder() 145 JsonInclude.Value inclV = _config.getDefaultInclusion(actualType.getRawClass(), in buildWriter() 152 JsonInclude.Include inclusion = inclV.getValueInclusion(); in buildWriter() 153 if (inclusion == JsonInclude.Include.USE_DEFAULTS) { // should not occur but... in buildWriter() [all …]
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/ |
D | MapperConfig.java | 48 protected final static JsonInclude.Value EMPTY_INCLUDE = JsonInclude.Value.empty(); 405 public abstract JsonInclude.Value getDefaultPropertyInclusion(); in getDefaultPropertyInclusion() 415 public abstract JsonInclude.Value getDefaultPropertyInclusion(Class<?> baseType); in getDefaultPropertyInclusion() 426 public JsonInclude.Value getDefaultPropertyInclusion(Class<?> baseType, in getDefaultPropertyInclusion() 427 JsonInclude.Value defaultIncl) in getDefaultPropertyInclusion() 429 JsonInclude.Value v = getConfigOverride(baseType).getInclude(); in getDefaultPropertyInclusion() 448 public abstract JsonInclude.Value getDefaultInclusion(Class<?> baseType, in getDefaultInclusion() 463 public JsonInclude.Value getDefaultInclusion(Class<?> baseType, in getDefaultInclusion() 464 Class<?> propertyType, JsonInclude.Value defaultIncl) in getDefaultInclusion() 466 JsonInclude.Value baseOverride = getConfigOverride(baseType).getInclude(); in getDefaultInclusion() [all …]
|
D | ConfigOverride.java | 6 import com.fasterxml.jackson.annotation.JsonInclude; 30 protected JsonInclude.Value _include; 40 protected JsonInclude.Value _includeAsProperty; 98 public JsonInclude.Value getInclude() { return _include; } in getInclude() 103 public JsonInclude.Value getIncludeAsProperty() { return _includeAsProperty; } in getIncludeAsProperty()
|
D | ConfigOverrides.java | 6 import com.fasterxml.jackson.annotation.JsonInclude; 30 protected JsonInclude.Value _defaultInclusion; 66 JsonInclude.Value.empty(), in ConfigOverrides() 77 JsonInclude.Value defIncl, JsonSetter.Value defSetter, in ConfigOverrides() 93 JsonInclude.Value defIncl, JsonSetter.Value defSetter, in ConfigOverrides() 173 public JsonInclude.Value getDefaultInclusion() { in getDefaultInclusion() 202 public void setDefaultInclusion(JsonInclude.Value v) { in setDefaultInclusion()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/ |
D | SimpleBeanPropertyDefinition.java | 6 import com.fasterxml.jackson.annotation.JsonInclude; 46 protected final JsonInclude.Value _inclusion; 59 JsonInclude.Value inclusion) in SimpleBeanPropertyDefinition() 93 JsonInclude.Include inclusion) in construct() 95 JsonInclude.Value inclValue in construct() 96 = ((inclusion == null) || (inclusion == JsonInclude.Include.USE_DEFAULTS)) in construct() 97 ? EMPTY_INCLUDE : JsonInclude.Value.construct(inclusion, null); in construct() 107 JsonInclude.Value inclusion) { in construct() 150 public BeanPropertyDefinition withInclusion(JsonInclude.Value inclusion) { in withInclusion() 217 public JsonInclude.Value findInclusion() { in findInclusion()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/ |
D | IntrospectorPairTest.java | 7 import com.fasterxml.jackson.annotation.JsonInclude; 31 public JsonInclude.Value findPropertyInclusion(Annotated a) { in findPropertyInclusion() 32 return JsonInclude.Value.empty() in findPropertyInclusion() 33 .withContentInclusion(JsonInclude.Include.ALWAYS) in findPropertyInclusion() 34 .withValueInclusion(JsonInclude.Include.NON_ABSENT); in findPropertyInclusion() 45 public JsonInclude.Value findPropertyInclusion(Annotated a) { in findPropertyInclusion() 46 return JsonInclude.Value.empty() in findPropertyInclusion() 47 .withContentInclusion(JsonInclude.Include.NON_EMPTY) in findPropertyInclusion() 48 .withValueInclusion(JsonInclude.Include.USE_DEFAULTS); in findPropertyInclusion() 99 public JsonInclude.Value findPropertyInclusion(Annotated a) { in findPropertyInclusion() [all …]
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/annotation/ |
D | JsonAppend.java | 8 import com.fasterxml.jackson.annotation.JsonInclude; 76 public JsonInclude.Include include() default JsonInclude.Include.NON_NULL; in include() 114 public JsonInclude.Include include() default JsonInclude.Include.NON_NULL; in include()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/mixins/ |
D | TestMixinSerForClass.java | 13 @JsonInclude(JsonInclude.Include.ALWAYS) 35 @JsonInclude(JsonInclude.Include.NON_DEFAULT) 51 @JsonInclude(JsonInclude.Include.NON_NULL)
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/ |
D | MapInclusion1649Test.java | 6 import com.fasterxml.jackson.annotation.JsonInclude; 11 @JsonInclude(value=JsonInclude.Include.NON_EMPTY, content=JsonInclude.Include.NON_EMPTY)
|
/external/geojson-jackson/src/main/java/org/geojson/ |
D | Feature.java | 3 import com.fasterxml.jackson.annotation.JsonInclude; 10 @JsonInclude(JsonInclude.Include.ALWAYS) 12 @JsonInclude(JsonInclude.Include.ALWAYS)
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ |
D | BeanProperty.java | 9 import com.fasterxml.jackson.annotation.JsonInclude; 40 public final static JsonInclude.Value EMPTY_INCLUDE = JsonInclude.Value.empty(); 167 public JsonInclude.Value findPropertyInclusion(MapperConfig<?> config, Class<?> baseType); in findPropertyInclusion() 301 public JsonInclude.Value findPropertyInclusion(MapperConfig<?> config, Class<?> baseType) in findPropertyInclusion() 303 JsonInclude.Value v0 = config.getDefaultInclusion(baseType, _type.getRawClass()); in findPropertyInclusion() 308 JsonInclude.Value v = intr.findPropertyInclusion(_member); in findPropertyInclusion() 416 public com.fasterxml.jackson.annotation.JsonInclude.Value findPropertyInclusion( in findPropertyInclusion()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ |
D | TestPolymorphicDeserialization676.java | 3 import com.fasterxml.jackson.annotation.JsonInclude; 20 @JsonInclude(JsonInclude.Include.NON_NULL) 58 @JsonInclude(JsonInclude.Include.NON_NULL)
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/ |
D | ConcreteBeanPropertyBase.java | 7 import com.fasterxml.jackson.annotation.JsonInclude; 89 public JsonInclude.Value findPropertyInclusion(MapperConfig<?> config, Class<?> baseType) in findPropertyInclusion() 94 JsonInclude.Value def = config.getDefaultPropertyInclusion(baseType); in findPropertyInclusion() 97 JsonInclude.Value v0 = config.getDefaultInclusion(baseType, member.getRawType()); in findPropertyInclusion() 101 JsonInclude.Value v = intr.findPropertyInclusion(member); in findPropertyInclusion()
|