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

isFieldNameMatch() — spring-boot Function Reference

Architecture documentation for the isFieldNameMatch() function in ValidationBindHandler.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  eea1a5b7_99d0_ac13_05b3_53505f333d44["isFieldNameMatch()"]
  525abbb1_6743_e605_eaba_dadf11b6e4eb["getBoundField()"]
  525abbb1_6743_e605_eaba_dadf11b6e4eb -->|calls| eea1a5b7_99d0_ac13_05b3_53505f333d44
  5acc70e6_66e3_8996_e541_fcd335154b61["getNumberOfElements()"]
  eea1a5b7_99d0_ac13_05b3_53505f333d44 -->|calls| 5acc70e6_66e3_8996_e541_fcd335154b61
  bc164715_9139_37ca_1cb7_07a5191210d7["getElement()"]
  eea1a5b7_99d0_ac13_05b3_53505f333d44 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  7c815938_1300_656d_3578_a3a40d16a945["nullSafeEquals()"]
  eea1a5b7_99d0_ac13_05b3_53505f333d44 -->|calls| 7c815938_1300_656d_3578_a3a40d16a945
  style eea1a5b7_99d0_ac13_05b3_53505f333d44 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 229–241

		private boolean isFieldNameMatch(ConfigurationPropertyName name, ConfigurationPropertyName fieldName) {
			if (name.getNumberOfElements() != fieldName.getNumberOfElements()) {
				return false;
			}
			for (int i = 0; i < name.getNumberOfElements(); i++) {
				String element = name.getElement(i, Form.ORIGINAL);
				String fieldElement = fieldName.getElement(i, Form.ORIGINAL);
				if (!ObjectUtils.nullSafeEquals(element, fieldElement)) {
					return false;
				}
			}
			return true;
		}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isFieldNameMatch() do?
isFieldNameMatch() is a function in the spring-boot codebase.
What does isFieldNameMatch() call?
isFieldNameMatch() calls 3 function(s): getElement, getNumberOfElements, nullSafeEquals.
What calls isFieldNameMatch()?
isFieldNameMatch() is called by 1 function(s): getBoundField.

Analyze Your Own Codebase

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

Try Supermodel Free