Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: MatthiasVDE on January 29, 2019, 01:54:33 am

Title: How to represent an array with initial values in an EA class diagram
Post by: MatthiasVDE on January 29, 2019, 01:54:33 am
I'm trying to 'deserialize' swagger files into class diagrams, but I'm stuck on:
Code: [Select]
schemes:
- "https"
- "http"

I tried to make a string attribute, and put the multiplicity on 0..*, and then add two initial values  https, http. But I don't think that it is the way to go?



Title: Re: How to represent an array with initial values in an EA class diagram
Post by: qwerty on January 29, 2019, 02:01:40 am
There is an Initial Value column. Haven't you noticed?

q.
Title: Re: How to represent an array with initial values in an EA class diagram
Post by: MatthiasVDE on January 29, 2019, 02:02:47 am
There is an Initial Value column. Haven't you noticed?

q.

Yes, but that's only useful in case of one value I think?
Title: Re: How to represent an array with initial values in an EA class diagram
Post by: qwerty on January 29, 2019, 08:08:12 am
How about setting it to
Code: [Select]
[1, 2, "abc", something]?

q.