lutaml / lutaml-uml

UML module for LutaML
2 stars 2 forks source link

Support multitype attribute #79

Open andrew2net opened 3 years ago

andrew2net commented 3 years ago

I'm certain that LutaML needs to support multitype attributes. It isn't such a rare case when attributes could have values of different types. For example, PlantUML allows following definfition with multitype bibLocality & bibSourceLocality:

class DocumentRelation {
    +type: DocumentRelationType
    +description: FormattedString[0..*]
    +bibitem: BibliographicItem
    +bibLocality: BibItemLocality[0..*] | LocalityStack[0..*]
    +bibSourceLocality: BibItemLocality[0..*] | LocalityStack[0..*]
}
ronaldtse commented 3 years ago

Agree with @andrew2net