validate() — spring-boot Function Reference
Architecture documentation for the validate() function in ValidationBindHandler.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD fc150228_4e3d_2d1a_838d_e8d1164db258["validate()"] d6a7a3a6_6e0b_599b_4e22_190b45351db2["validate()"] d6a7a3a6_6e0b_599b_4e22_190b45351db2 -->|calls| fc150228_4e3d_2d1a_838d_e8d1164db258 862fb9a8_dc7a_85fe_5fae_0c74804c9bdd["onFailure()"] 862fb9a8_dc7a_85fe_5fae_0c74804c9bdd -->|calls| fc150228_4e3d_2d1a_838d_e8d1164db258 3aa85400_b7b3_713d_f303_c6eecaf96580["onFinish()"] 3aa85400_b7b3_713d_f303_c6eecaf96580 -->|calls| fc150228_4e3d_2d1a_838d_e8d1164db258 673e1229_eef6_33a0_d2c4_3a4aec746779["validateAndPush()"] 673e1229_eef6_33a0_d2c4_3a4aec746779 -->|calls| fc150228_4e3d_2d1a_838d_e8d1164db258 011061aa_4c8e_1392_dbf8_d2ff5f73ef57["getValidationTarget()"] fc150228_4e3d_2d1a_838d_e8d1164db258 -->|calls| 011061aa_4c8e_1392_dbf8_d2ff5f73ef57 e2057f67_8158_a1bf_4e35_4171a1c95f3f["getBoxedType()"] fc150228_4e3d_2d1a_838d_e8d1164db258 -->|calls| e2057f67_8158_a1bf_4e35_4171a1c95f3f 673e1229_eef6_33a0_d2c4_3a4aec746779["validateAndPush()"] fc150228_4e3d_2d1a_838d_e8d1164db258 -->|calls| 673e1229_eef6_33a0_d2c4_3a4aec746779 style fc150228_4e3d_2d1a_838d_e8d1164db258 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 113–126
private void validate(ConfigurationPropertyName name, Bindable<?> target, BindContext context,
@Nullable Object result) {
if (this.exception == null) {
Object validationTarget = getValidationTarget(target, context, result);
Class<?> validationType = target.getBoxedType().resolve();
if (validationTarget != null) {
Assert.state(validationType != null, "'validationType' must not be null");
validateAndPush(name, validationTarget, validationType);
}
}
if (context.getDepth() == 0 && this.exception != null) {
throw this.exception;
}
}
Domain
Subdomains
Calls
- getBoxedType()
- getValidationTarget()
- validateAndPush()
Called By
- onFailure()
- onFinish()
- validate()
- validateAndPush()
Source
Frequently Asked Questions
What does validate() do?
validate() is a function in the spring-boot codebase.
What does validate() call?
validate() calls 3 function(s): getBoxedType, getValidationTarget, validateAndPush.
What calls validate()?
validate() is called by 4 function(s): onFailure, onFinish, validate, validateAndPush.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free