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

toItemMetadata() — spring-boot Function Reference

Architecture documentation for the toItemMetadata() function in JsonMarshaller.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 6 called by 1

Entity Profile

Dependency Diagram

graph TD
  a4ddef17_9e29_3655_ab30_36b478cdc572["toItemMetadata()"]
  30292bfa_e8ed_1caa_f042_78733422492f["read()"]
  30292bfa_e8ed_1caa_f042_78733422492f -->|calls| a4ddef17_9e29_3655_ab30_36b478cdc572
  4c649efe_9b8c_671f_8543_8e5ce14da8b6["checkAllowedKeys()"]
  a4ddef17_9e29_3655_ab30_36b478cdc572 -->|calls| 4c649efe_9b8c_671f_8543_8e5ce14da8b6
  f5ebc57f_329f_2178_0092_3159e5e912b8["readItemValue()"]
  a4ddef17_9e29_3655_ab30_36b478cdc572 -->|calls| f5ebc57f_329f_2178_0092_3159e5e912b8
  7340dea3_0533_f065_3340_e4e5990881cc["toItemDeprecation()"]
  a4ddef17_9e29_3655_ab30_36b478cdc572 -->|calls| 7340dea3_0533_f065_3340_e4e5990881cc
  3d8a5356_fa95_533b_a051_95b4dfabf7c2["getString()"]
  a4ddef17_9e29_3655_ab30_36b478cdc572 -->|calls| 3d8a5356_fa95_533b_a051_95b4dfabf7c2
  97bc1256_f1d9_2ba7_f353_6f84952f431c["optString()"]
  a4ddef17_9e29_3655_ab30_36b478cdc572 -->|calls| 97bc1256_f1d9_2ba7_f353_6f84952f431c
  95f4b38d_c00e_563b_67a0_1ac9214df77c["opt()"]
  a4ddef17_9e29_3655_ab30_36b478cdc572 -->|calls| 95f4b38d_c00e_563b_67a0_1ac9214df77c
  style a4ddef17_9e29_3655_ab30_36b478cdc572 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/JsonMarshaller.java lines 115–130

	private ItemMetadata toItemMetadata(JSONObject object, JsonPath path, ItemType itemType) throws Exception {
		switch (itemType) {
			case GROUP -> checkAllowedKeys(object, path, "name", "type", "description", "sourceType", "sourceMethod");
			case PROPERTY -> checkAllowedKeys(object, path, "name", "type", "description", "sourceType", "defaultValue",
					"deprecation", "deprecated");
		}
		String name = object.getString("name");
		String type = object.optString("type", null);
		String description = object.optString("description", null);
		String sourceType = object.optString("sourceType", null);
		String sourceMethod = object.optString("sourceMethod", null);
		Object defaultValue = readItemValue(object.opt("defaultValue"));
		ItemDeprecation deprecation = toItemDeprecation(object, path);
		return new ItemMetadata(itemType, name, null, type, sourceType, sourceMethod, description, defaultValue,
				deprecation);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does toItemMetadata() do?
toItemMetadata() is a function in the spring-boot codebase.
What does toItemMetadata() call?
toItemMetadata() calls 6 function(s): checkAllowedKeys, getString, opt, optString, readItemValue, toItemDeprecation.
What calls toItemMetadata()?
toItemMetadata() is called by 1 function(s): read.

Analyze Your Own Codebase

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

Try Supermodel Free