Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support parameterized class in classDiagram #5623

Open
benfortuna opened this issue Jul 5, 2024 · 0 comments
Open

Support parameterized class in classDiagram #5623

benfortuna opened this issue Jul 5, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@benfortuna
Copy link

Proposal

UML provides a syntax for type binding via parameterized class:

http://etutorials.org/Programming/UML/Chapter+6.+Class+Diagrams+Advanced+Concepts/Parameterized+Class/

This proposal seeks to be able to add a label on a relationship using the following syntax:

ClassA~T~ <|-- ClassB: <<bind>>T::String

In this example the type String is bound to generic type T for implementation ClassB.

Currently this is a syntax error due to not supporting <<>> and :: in labels.

Example

ClassA~T~ <|-- ClassB: <<bind>>T::String

Screenshots

No response

@benfortuna benfortuna added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant