Class McpLocalizationCatalog
java.lang.Object
com.soklet.McpLocalizationCatalog
Immutable deterministic extraction view of configured framework-owned MCP
presentation text.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic @NonNull McpLocalizationCatalogfromEndpointRegistry(@NonNull McpEndpointRegistry endpointRegistry) Extracts the canonical localizable catalog from the final endpoint registry.getTexts()Returns every configured eligible source field exactly once in stable external-key order.inthashCode()
-
Method Details
-
fromEndpointRegistry
public static @NonNull McpLocalizationCatalog fromEndpointRegistry(@NonNull McpEndpointRegistry endpointRegistry) Extracts the canonical localizable catalog from the final endpoint registry. Annotated, generated, and programmatic registrations therefore share one extraction authority. Extraction rejects an external-key collision between unequal coordinates instead of silently merging fields.- Parameters:
endpointRegistry- final immutable endpoint registry- Returns:
- deterministic localization catalog
- Throws:
NullPointerException- ifendpointRegistryis nullIllegalStateException- if unequal coordinates produce the same external key
-
getTexts
Returns every configured eligible source field exactly once in stable external-key order.- Returns:
- immutable extracted text list
-
equals
-
hashCode
-