Package io.debezium.metadata
Class DisplayNameResolver
java.lang.Object
io.debezium.metadata.DisplayNameResolver
Derives human-readable display names from fully-qualified component class names.
The algorithm extracts the simple class name, strips mechanical suffixes based on the component type, splits CamelCase into words, applies brand-name merging and abbreviation expansion, then assembles a display name with an appropriate prefix and type suffix.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmergeBrandNames(List<String> words) static StringDerives a human-readable display name from a fully-qualified class name and component type.splitCamelCase(String name) private static StringstripTypeSuffix(String simpleName, String type)
-
Field Details
-
SOURCE_CONNECTOR_TYPE
- See Also:
-
SINK_CONNECTOR_TYPE
- See Also:
-
SERVER_SINK_TYPE
- See Also:
-
CONVERTER_TYPE
- See Also:
-
CUSTOM_CONVERTER_TYPE
- See Also:
-
BRAND_SEQUENCES
-
WORD_REPLACEMENTS
-
TYPE_SUFFIXES
-
TYPE_DISPLAY_SUFFIXES
-
-
Constructor Details
-
DisplayNameResolver
private DisplayNameResolver()
-
-
Method Details
-
resolve
Derives a human-readable display name from a fully-qualified class name and component type.- Parameters:
className- the fully-qualified class nametype- the component type (e.g. "source-connector", "server-sink", "transformation")- Returns:
- a human-readable display name
-
stripTypeSuffix
-
splitCamelCase
-
mergeBrandNames
-