yasmin_editor.editor_gui.container_metadata_logic module

Pure helper functions for container metadata panels and rename rules.

class yasmin_editor.editor_gui.container_metadata_logic.ContainerMetadataView(name_label_html: str, selector_label_html: str, selector_items: list[str], current_selector_value: str | None)

Bases: object

UI-ready metadata for the currently visible container.

current_selector_value: str | None
name_label_html: str
selector_items: list[str]
selector_label_html: str
yasmin_editor.editor_gui.container_metadata_logic.build_container_metadata_view(model: StateMachine | Concurrence) ContainerMetadataView

Return the labels and selector entries for one container metadata panel.

yasmin_editor.editor_gui.container_metadata_logic.has_container_name_conflict(proposed_name: str, *, current_name: str, sibling_state_names: Iterable[str], sibling_outcome_names: Sequence[str]) bool

Return whether a rename would collide with sibling states or outcomes.

yasmin_editor.editor_gui.container_metadata_logic.normalize_container_name(text: str) str

Return the trimmed container name entered by the user.