|
|
|
@ -89,16 +89,6 @@ public class JacksonProperties { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private final Map<JsonGenerator.Feature, Boolean> generator = new EnumMap<>(JsonGenerator.Feature.class); |
|
|
|
private final Map<JsonGenerator.Feature, Boolean> generator = new EnumMap<>(JsonGenerator.Feature.class); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Jackson on/off features for enum types. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private final Map<EnumFeature, Boolean> enumDatatype = new EnumMap<>(EnumFeature.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Jackson on/off features for JsonNode types. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private final Map<JsonNodeFeature, Boolean> jsonNodeDatatype = new EnumMap<>(JsonNodeFeature.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Controls the inclusion of properties during serialization. Configured with one of |
|
|
|
* Controls the inclusion of properties during serialization. Configured with one of |
|
|
|
* the values in Jackson's JsonInclude.Include enumeration. |
|
|
|
* the values in Jackson's JsonInclude.Include enumeration. |
|
|
|
@ -127,6 +117,8 @@ public class JacksonProperties { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private Locale locale; |
|
|
|
private Locale locale; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final Datatype datatype = new Datatype(); |
|
|
|
|
|
|
|
|
|
|
|
public String getDateFormat() { |
|
|
|
public String getDateFormat() { |
|
|
|
return this.dateFormat; |
|
|
|
return this.dateFormat; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -167,14 +159,6 @@ public class JacksonProperties { |
|
|
|
return this.generator; |
|
|
|
return this.generator; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Map<EnumFeature, Boolean> getEnumDatatype() { |
|
|
|
|
|
|
|
return this.enumDatatype; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Map<JsonNodeFeature, Boolean> getJsonNodeDatatype() { |
|
|
|
|
|
|
|
return this.jsonNodeDatatype; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public JsonInclude.Include getDefaultPropertyInclusion() { |
|
|
|
public JsonInclude.Include getDefaultPropertyInclusion() { |
|
|
|
return this.defaultPropertyInclusion; |
|
|
|
return this.defaultPropertyInclusion; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -215,6 +199,10 @@ public class JacksonProperties { |
|
|
|
this.locale = locale; |
|
|
|
this.locale = locale; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Datatype getDatatype() { |
|
|
|
|
|
|
|
return this.datatype; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public enum ConstructorDetectorStrategy { |
|
|
|
public enum ConstructorDetectorStrategy { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -240,4 +228,26 @@ public class JacksonProperties { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class Datatype { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Jackson on/off features for enums. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private final Map<EnumFeature, Boolean> enumFeatures = new EnumMap<>(EnumFeature.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Jackson on/off features for JsonNodes. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private final Map<JsonNodeFeature, Boolean> jsonNode = new EnumMap<>(JsonNodeFeature.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Map<EnumFeature, Boolean> getEnum() { |
|
|
|
|
|
|
|
return this.enumFeatures; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Map<JsonNodeFeature, Boolean> getJsonNode() { |
|
|
|
|
|
|
|
return this.jsonNode; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|