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

isOverriddenCollectionElement() — spring-boot Function Reference

Architecture documentation for the isOverriddenCollectionElement() function in NoUnboundElementsBindHandler.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 8 called by 1

Entity Profile

Dependency Diagram

graph TD
  e0c84b2d_81dc_e784_94a2_bc56b1a98fe9["isOverriddenCollectionElement()"]
  3e36b84b_bdb9_7b8c_9f97_88cf91923361["isUnbound()"]
  3e36b84b_bdb9_7b8c_9f97_88cf91923361 -->|calls| e0c84b2d_81dc_e784_94a2_bc56b1a98fe9
  5acc70e6_66e3_8996_e541_fcd335154b61["getNumberOfElements()"]
  e0c84b2d_81dc_e784_94a2_bc56b1a98fe9 -->|calls| 5acc70e6_66e3_8996_e541_fcd335154b61
  12350d6d_afd0_ec61_b636_491fbc78f5c2["isLastElementIndexed()"]
  e0c84b2d_81dc_e784_94a2_bc56b1a98fe9 -->|calls| 12350d6d_afd0_ec61_b636_491fbc78f5c2
  772b09b6_d11e_bfff_26ce_f91f0f77fe69["getIndexed()"]
  e0c84b2d_81dc_e784_94a2_bc56b1a98fe9 -->|calls| 772b09b6_d11e_bfff_26ce_f91f0f77fe69
  89d9281e_3be1_058b_e5eb_ec6e21138ea2["getName()"]
  e0c84b2d_81dc_e784_94a2_bc56b1a98fe9 -->|calls| 89d9281e_3be1_058b_e5eb_ec6e21138ea2
  d66ed30d_7112_3e39_20bd_fd06f2171871["getNestedPropertyName()"]
  e0c84b2d_81dc_e784_94a2_bc56b1a98fe9 -->|calls| d66ed30d_7112_3e39_20bd_fd06f2171871
  98818058_ff6c_78ba_42b6_2ec48f71acd3["isCandidateValidPropertyName()"]
  e0c84b2d_81dc_e784_94a2_bc56b1a98fe9 -->|calls| 98818058_ff6c_78ba_42b6_2ec48f71acd3
  8a90add5_32c6_65eb_e312_e210dff95e48["chop()"]
  e0c84b2d_81dc_e784_94a2_bc56b1a98fe9 -->|calls| 8a90add5_32c6_65eb_e312_e210dff95e48
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  e0c84b2d_81dc_e784_94a2_bc56b1a98fe9 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  style e0c84b2d_81dc_e784_94a2_bc56b1a98fe9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/handler/NoUnboundElementsBindHandler.java lines 128–143

	private boolean isOverriddenCollectionElement(ConfigurationPropertyName candidate) {
		int lastIndex = candidate.getNumberOfElements() - 1;
		if (candidate.isLastElementIndexed()) {
			ConfigurationPropertyName propertyName = candidate.chop(lastIndex);
			return this.boundNames.contains(propertyName);
		}
		Indexed indexed = getIndexed(candidate);
		if (indexed != null) {
			String zeroethProperty = indexed.getName() + "[0]";
			if (this.boundNames.contains(ConfigurationPropertyName.of(zeroethProperty))) {
				String nestedZeroethProperty = zeroethProperty + "." + indexed.getNestedPropertyName();
				return isCandidateValidPropertyName(nestedZeroethProperty);
			}
		}
		return false;
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does isOverriddenCollectionElement() do?
isOverriddenCollectionElement() is a function in the spring-boot codebase.
What does isOverriddenCollectionElement() call?
isOverriddenCollectionElement() calls 8 function(s): chop, getIndexed, getName, getNestedPropertyName, getNumberOfElements, isCandidateValidPropertyName, isLastElementIndexed, of.
What calls isOverriddenCollectionElement()?
isOverriddenCollectionElement() is called by 1 function(s): isUnbound.

Analyze Your Own Codebase

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

Try Supermodel Free