toDashedCase() — spring-boot Function Reference
Architecture documentation for the toDashedCase() function in ConventionUtils.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 3ed4d996_8b28_bc25_338f_de92815454ed["toDashedCase()"] 624147d7_9f06_5f26_bebf_99a1e96ec79e["SourceMetadata()"] 624147d7_9f06_5f26_bebf_99a1e96ec79e -->|calls| 3ed4d996_8b28_bc25_338f_de92815454ed 2a507fd2_a3ac_dca8_9698_42e280536c6b["createPropertyDescriptor()"] 2a507fd2_a3ac_dca8_9698_42e280536c6b -->|calls| 3ed4d996_8b28_bc25_338f_de92815454ed b58c4ce9_c02d_4bb7_9e22_7ddcf436f67f["getValue()"] b58c4ce9_c02d_4bb7_9e22_7ddcf436f67f -->|calls| 3ed4d996_8b28_bc25_338f_de92815454ed 9f7c8c2c_9eec_7063_dab6_820716cccd7c["nestedPrefix()"] 9f7c8c2c_9eec_7063_dab6_820716cccd7c -->|calls| 3ed4d996_8b28_bc25_338f_de92815454ed ca5978ad_8dbb_e64a_860c_2a6dd15afc88["toCanonicalName()"] ca5978ad_8dbb_e64a_860c_2a6dd15afc88 -->|calls| 3ed4d996_8b28_bc25_338f_de92815454ed 95082e99_c478_5456_e6f7_88c017692e7c["applyPrefix()"] 95082e99_c478_5456_e6f7_88c017692e7c -->|calls| 3ed4d996_8b28_bc25_338f_de92815454ed 7844338c_85fa_e0fd_b1f6_1e674c27610b["buildName()"] 7844338c_85fa_e0fd_b1f6_1e674c27610b -->|calls| 3ed4d996_8b28_bc25_338f_de92815454ed af45424a_c93d_8c4a_9be6_8295f8e4a2f0["newItemMetadataPrefix()"] af45424a_c93d_8c4a_9be6_8295f8e4a2f0 -->|calls| 3ed4d996_8b28_bc25_338f_de92815454ed style 3ed4d996_8b28_bc25_338f_de92815454ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/support/ConventionUtils.java lines 47–65
public static String toDashedCase(String value) {
StringBuilder dashed = new StringBuilder();
Character previous = null;
for (int i = 0; i < value.length(); i++) {
char current = value.charAt(i);
if (SEPARATORS.contains(current)) {
dashed.append("-");
}
else if (Character.isUpperCase(current) && previous != null && !SEPARATORS.contains(previous)) {
dashed.append("-").append(current);
}
else {
dashed.append(current);
}
previous = current;
}
return dashed.toString().toLowerCase(Locale.ENGLISH);
}
Domain
Subdomains
Called By
- SourceMetadata()
- applyPrefix()
- buildName()
- createPropertyDescriptor()
- getValue()
- nestedPrefix()
- newItemMetadataPrefix()
- toCanonicalName()
Source
Frequently Asked Questions
What does toDashedCase() do?
toDashedCase() is a function in the spring-boot codebase.
What calls toDashedCase()?
toDashedCase() is called by 8 function(s): SourceMetadata, applyPrefix, buildName, createPropertyDescriptor, getValue, nestedPrefix, newItemMetadataPrefix, toCanonicalName.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free