Page tree
Skip to end of metadata
Go to start of metadata

XSD generation pattern

Classes marked with the stereotype <<choice>> do not appear in the XML Schema. Instead, the choice of elements is created.

Example

 
The name of the element is the concatenation of the role of the <<choice>> class with the role of the target class of each choice branch, separated by "_", as shown in the following example:

Choice element
<group name="HoldingPatternPropertyGroup"> <sequence> ............ <element name="nonStandardHolding" type="aixm:CodeYesNoType" nillable="true" minOccurs="0"> <annotation> <appinfo> <gml:description>ndicates whether the HoldingPattern is non-standard, for example because it uses left-hand turns.</gml:description> </appinfo> </annotation> </element> <choice> <element name="outboundLegSpan_endTime" type="aixm:HoldingPatternDurationPropertyType" nillable="true" minOccurs="0"> <annotation> <appinfo> <gml:description>Span is timing</gml:description> </appinfo> </annotation> </element> <element name="outboundLegSpan_endDistance" type="aixm:HoldingPatternDistancePropertyType" nillable="true" minOccurs="0"> <annotation> <appinfo> <gml:description>span is length</gml:description> </appinfo> </annotation> </element> <element name="outboundLegSpan_endPoint" type="aixm:SegmentPointPropertyType" nillable="true" minOccurs="0"> <annotation> <appinfo> <gml:description>The second waypoint of a two point holding, used to define the end of the outbound leg.</gml:description> </appinfo> </annotation> </element> </choice> ............ </sequence> </group>
  • No labels