"""Protected module containing the ECMDescriptionEntry dataclass."""

from __future__ import annotations

from dataclasses import dataclass


@dataclass(frozen=True)
class ECMDescriptionEntry:
    """A single language-specific name entry from the ``<name>`` XML element.

    Attributes:
        name: Display name.
        tooltip: Tooltip text shown in the UI.
        image_id: Icon image identifier.
        default_url: URL used for the default view.
        new_url: URL used when creating a new object.
        update_url: URL used when updating an object.
        request_url: URL used for checkout / request.
        readonly_url: URL used for the read-only view.
    """

    name: str
    tooltip: str
    image_id: str
    default_url: str
    new_url: str
    update_url: str
    request_url: str
    readonly_url: str
