validateAndPush() — spring-boot Function Reference
Architecture documentation for the validateAndPush() function in ValidationBindHandler.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 673e1229_eef6_33a0_d2c4_3a4aec746779["validateAndPush()"] fc150228_4e3d_2d1a_838d_e8d1164db258["validate()"] fc150228_4e3d_2d1a_838d_e8d1164db258 -->|calls| 673e1229_eef6_33a0_d2c4_3a4aec746779 a90d80cb_e3f2_ed3c_a6b4_0783163912e9["ValidationResult()"] 673e1229_eef6_33a0_d2c4_3a4aec746779 -->|calls| a90d80cb_e3f2_ed3c_a6b4_0783163912e9 fc150228_4e3d_2d1a_838d_e8d1164db258["validate()"] 673e1229_eef6_33a0_d2c4_3a4aec746779 -->|calls| fc150228_4e3d_2d1a_838d_e8d1164db258 3c03e8a2_dea4_98a2_8c26_ae9cf52a60e4["getValidationErrors()"] 673e1229_eef6_33a0_d2c4_3a4aec746779 -->|calls| 3c03e8a2_dea4_98a2_8c26_ae9cf52a60e4 style 673e1229_eef6_33a0_d2c4_3a4aec746779 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/validation/ValidationBindHandler.java lines 138–149
private void validateAndPush(ConfigurationPropertyName name, Object target, Class<?> type) {
ValidationResult result = null;
for (Validator validator : this.validators) {
if (validator.supports(type)) {
result = (result != null) ? result : new ValidationResult(name, target);
validator.validate(target, result);
}
}
if (result != null && result.hasErrors()) {
this.exception = new BindValidationException(result.getValidationErrors());
}
}
Domain
Subdomains
Calls
- ValidationResult()
- getValidationErrors()
- validate()
Called By
Source
Frequently Asked Questions
What does validateAndPush() do?
validateAndPush() is a function in the spring-boot codebase.
What does validateAndPush() call?
validateAndPush() calls 3 function(s): ValidationResult, getValidationErrors, validate.
What calls validateAndPush()?
validateAndPush() is called by 1 function(s): validate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free