Class McpLocalizationCatalog

java.lang.Object
com.soklet.McpLocalizationCatalog

@ThreadSafe public final class McpLocalizationCatalog extends Object
Immutable deterministic extraction view of configured framework-owned MCP presentation text.
Author:
Mark Allen
  • Method Details

    • fromEndpointRegistry

      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 - if endpointRegistry is null
      IllegalStateException - 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

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object
      Returns:
      whether the extracted text lists are structurally equal
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      structural localization-catalog hash code