1 package com.fasterxml.jackson.databind.cfg;
2 
3 /**
4  * Mutable version of {@link CoercionConfig} (or rather, extended API)
5  * exposed during configuration phase of {@link com.fasterxml.jackson.databind.ObjectMapper}
6  * construction (via Builder).
7  *
8  * @since 2.12
9  */
10 public class MutableCoercionConfig
11     extends CoercionConfig
12     implements java.io.Serializable
13 {
14     private static final long serialVersionUID = 1L;
15 
MutableCoercionConfig()16     public MutableCoercionConfig() { }
17 
MutableCoercionConfig(MutableCoercionConfig src)18     protected MutableCoercionConfig(MutableCoercionConfig src) {
19         super(src);
20     }
21 
copy()22     public MutableCoercionConfig copy() {
23         return new MutableCoercionConfig(this);
24     }
25 
setCoercion(CoercionInputShape shape, CoercionAction action)26     public MutableCoercionConfig setCoercion(CoercionInputShape shape,
27             CoercionAction action) {
28         _coercionsByShape[shape.ordinal()] = action;
29         return this;
30     }
31 
setAcceptBlankAsEmpty(Boolean state)32     public MutableCoercionConfig setAcceptBlankAsEmpty(Boolean state) {
33         _acceptBlankAsEmpty = state;
34         return this;
35     }
36 }
37