public class ApplyDefaultsStrategy extends Object
| Constructor and Description |
|---|
ApplyDefaultsStrategy(boolean applyPropertyDefaults,
boolean applyPropertyDefaultsIfNull,
boolean applyArrayDefaults)
Specify which default values to apply.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldApplyArrayDefaults() |
boolean |
shouldApplyPropertyDefaults() |
boolean |
shouldApplyPropertyDefaultsIfNull() |
public ApplyDefaultsStrategy(boolean applyPropertyDefaults,
boolean applyPropertyDefaultsIfNull,
boolean applyArrayDefaults)
Note that the walker changes the input object in place. If validation fails, the input object will be changed.
applyPropertyDefaults - if true then apply defaults inside json objects if the attribute is missingapplyPropertyDefaultsIfNull - if true then apply defaults inside json objects if the attribute is explicitly nullapplyArrayDefaults - if true then apply defaults inside json arrays if the attribute is explicitly nullIllegalArgumentException - if applyPropertyDefaults is false and applyPropertyDefaultsIfNull is trueCopyright © 2022. All rights reserved.