Home / Function/ validate() — spring-boot Function Reference

validate() — spring-boot Function Reference

Architecture documentation for the validate() function in MessageSourceMessageInterpolatorIntegrationTests.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 2 called by 9

Entity Profile

Dependency Diagram

graph TD
  93f31c79_1570_86bd_ba2e_ed509b5fd799["validate()"]
  791508e2_8de4_368d_79c9_46b28c9b63e0["defaultMessage()"]
  791508e2_8de4_368d_79c9_46b28c9b63e0 -->|calls| 93f31c79_1570_86bd_ba2e_ed509b5fd799
  e55ae1ad_2e9f_69d5_90e1_919fbf0f14d9["nullable()"]
  e55ae1ad_2e9f_69d5_90e1_919fbf0f14d9 -->|calls| 93f31c79_1570_86bd_ba2e_ed509b5fd799
  91dc2b08_a933_e810_79ad_08118aefb18a["blank()"]
  91dc2b08_a933_e810_79ad_08118aefb18a -->|calls| 93f31c79_1570_86bd_ba2e_ed509b5fd799
  47361744_af3b_469e_4301_ad190e276837["recursion()"]
  47361744_af3b_469e_4301_ad190e276837 -->|calls| 93f31c79_1570_86bd_ba2e_ed509b5fd799
  484714dd_e57a_953d_3840_8edbb852713f["unknown()"]
  484714dd_e57a_953d_3840_8edbb852713f -->|calls| 93f31c79_1570_86bd_ba2e_ed509b5fd799
  6422c247_3917_e62f_7342_cf966e977e4e["escapePrefix()"]
  6422c247_3917_e62f_7342_cf966e977e4e -->|calls| 93f31c79_1570_86bd_ba2e_ed509b5fd799
  6bc62700_80d1_aa34_44c0_e1ff942b9b38["escapeSuffix()"]
  6bc62700_80d1_aa34_44c0_e1ff942b9b38 -->|calls| 93f31c79_1570_86bd_ba2e_ed509b5fd799
  acc290bc_1a5a_eae7_1988_775bfa8a5b9c["escapePrefixSuffix()"]
  acc290bc_1a5a_eae7_1988_775bfa8a5b9c -->|calls| 93f31c79_1570_86bd_ba2e_ed509b5fd799
  0388f064_a1ae_f9bc_425f_d85cbadafdcd["escapeEscape()"]
  0388f064_a1ae_f9bc_425f_d85cbadafdcd -->|calls| 93f31c79_1570_86bd_ba2e_ed509b5fd799
  a428cfb5_73fc_dee0_22fb_f5cb82886391["withEnglishLocale()"]
  93f31c79_1570_86bd_ba2e_ed509b5fd799 -->|calls| a428cfb5_73fc_dee0_22fb_f5cb82886391
  20be90e6_97b9_a2c5_8a74_0e029b70c086["buildValidator()"]
  93f31c79_1570_86bd_ba2e_ed509b5fd799 -->|calls| 20be90e6_97b9_a2c5_8a74_0e029b70c086
  style 93f31c79_1570_86bd_ba2e_ed509b5fd799 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/validation/MessageSourceMessageInterpolatorIntegrationTests.java lines 126–136

	private List<String> validate(String property) {
		return withEnglishLocale(() -> {
			Validator validator = buildValidator();
			List<String> messages = new ArrayList<>();
			Set<ConstraintViolation<Object>> constraints = validator.validateProperty(this, property);
			for (ConstraintViolation<Object> constraint : constraints) {
				messages.add(constraint.getMessage());
			}
			return messages;
		});
	}

Domain

Subdomains

Calls

  • buildValidator()
  • withEnglishLocale()

Called By

  • blank()
  • defaultMessage()
  • escapeEscape()
  • escapePrefix()
  • escapePrefixSuffix()
  • escapeSuffix()
  • nullable()
  • recursion()
  • unknown()

Frequently Asked Questions

What does validate() do?
validate() is a function in the spring-boot codebase.
What does validate() call?
validate() calls 2 function(s): buildValidator, withEnglishLocale.
What calls validate()?
validate() is called by 9 function(s): blank, defaultMessage, escapeEscape, escapePrefix, escapePrefixSuffix, escapeSuffix, nullable, recursion, and 1 more.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free