Book a Demo

Author Topic: Incorrect multiplicity when importing XSD file  (Read 3145 times)

pixelpshr

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Incorrect multiplicity when importing XSD file
« on: August 22, 2015, 02:31:58 am »
When I imported a set of XSD files to create a UML diagram, it seems that all of the sub-elements have a maximum multiplicity of 1. However, there should be no upper limit.

The typical schema entry looks like this:

Code: [Select]
...
      <xs:complexType name="ScenarioWeatherType">
            <xs:annotation>
                  <xs:documentation>The specification of the scenario weather conditions.</xs:documentation>
            </xs:annotation>
            <xs:all>
                  <xs:element name="Atmosphere" type="jc3iedm:Atmosphere" minOccurs="0">
                        <xs:annotation>
                              <xs:documentation>JC3IEDM atmospheric conditions of the environment.</xs:documentation>
                        </xs:annotation>
                  </xs:element>
                  <xs:element name="CloudCoverItems" type="msdl:CloudCoverItemsType" minOccurs="0">
                        <xs:annotation>
                              <xs:documentation>JC3IEDM cloud cover conditions of the environment.</xs:documentation>
                        </xs:annotation>
                  </xs:element>
...

But the UML diagram multiplicity values of "0..1" instead of "0.." for all of the elements.

This occurs even when the XSD sequence sets maxOccurs="unbounded". But then, the UML shows "1..1" instead of "0.."

Any ideas why this is failing? I'm just getting started with EA, so I have no doubts that I'm doing something wrong.

Thanks,
Thom
« Last Edit: August 22, 2015, 05:07:12 am by pixelpshr »