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

parseType() — spring-boot Function Reference

Architecture documentation for the parseType() function in InitializrServiceMetadata.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 5 called by 1

Entity Profile

Dependency Diagram

graph TD
  34a3cce4_cf3e_ddb5_4b68_b2f3a09e83d5["parseType()"]
  e721633d_ad67_37e4_3e15_bcafca31adc2["parseProjectTypes()"]
  e721633d_ad67_37e4_3e15_bcafca31adc2 -->|calls| 34a3cce4_cf3e_ddb5_4b68_b2f3a09e83d5
  aa32a554_24df_5ed3_d20a_2693c174f4c3["getStringValue()"]
  34a3cce4_cf3e_ddb5_4b68_b2f3a09e83d5 -->|calls| aa32a554_24df_5ed3_d20a_2693c174f4c3
  01cac3c2_893b_01cd_0a37_3ed2b3df77df["equals()"]
  34a3cce4_cf3e_ddb5_4b68_b2f3a09e83d5 -->|calls| 01cac3c2_893b_01cd_0a37_3ed2b3df77df
  bce510cf_7d62_2e24_bead_369f8b5a84e7["has()"]
  34a3cce4_cf3e_ddb5_4b68_b2f3a09e83d5 -->|calls| bce510cf_7d62_2e24_bead_369f8b5a84e7
  d4a35d86_cbf4_c372_4de4_20a385040cc0["parseStringItems()"]
  34a3cce4_cf3e_ddb5_4b68_b2f3a09e83d5 -->|calls| d4a35d86_cbf4_c372_4de4_20a385040cc0
  3128ccd0_28ac_1273_dfe1_db2bf2f8d7d9["getJSONObject()"]
  34a3cce4_cf3e_ddb5_4b68_b2f3a09e83d5 -->|calls| 3128ccd0_28ac_1273_dfe1_db2bf2f8d7d9
  style 34a3cce4_cf3e_ddb5_4b68_b2f3a09e83d5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrServiceMetadata.java lines 195–209

	private ProjectType parseType(JSONObject object, @Nullable String defaultId) throws JSONException {
		String id = getStringValue(object, ID_ATTRIBUTE, null);
		String name = getStringValue(object, NAME_ATTRIBUTE, null);
		String action = getStringValue(object, ACTION_ATTRIBUTE, null);
		Assert.state(id != null, "'id' must not be null");
		boolean defaultType = id.equals(defaultId);
		Map<String, String> tags = new HashMap<>();
		if (object.has("tags")) {
			JSONObject jsonTags = object.getJSONObject("tags");
			tags.putAll(parseStringItems(jsonTags));
		}
		Assert.state(name != null, "'name' must not be null");
		Assert.state(action != null, "'action' must not be null");
		return new ProjectType(id, name, action, defaultType, tags);
	}

Domain

Subdomains

Frequently Asked Questions

What does parseType() do?
parseType() is a function in the spring-boot codebase.
What does parseType() call?
parseType() calls 5 function(s): equals, getJSONObject, getStringValue, has, parseStringItems.
What calls parseType()?
parseType() is called by 1 function(s): parseProjectTypes.

Analyze Your Own Codebase

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

Try Supermodel Free