XMI 1.2 NO IDEA Avatar
  1. OMG Issue

XMI12 — Encoding a union value that has no field value.

  • Key: XMI12-122
  • Legacy Issue Number: 4001
  • Status: closed  
  • Source: DSTC ( Stephen Crawley)
  • Summary:

    Consider the following CORBA union type:

    union Foo switch(long)

    { case 1: boolean one; case 2: char two; }

    ;

    The production rules in 9.5.7.4 and 9.5.9.9 do not say how a "Foo" value
    should be encoded in an XML document when the discriminator is (say) zero.
    (The OCL for 9.5.9.9 will give an exception in CORBA 2.3 in this case.)

    Should the Foo value be encoded in XMI as:

    <XMI.unionDiscrim>0</XMI.unionDiscrim>

    or

    <XMI.unionDiscrim>0</XMI.unionDiscrim>
    <XMI.field></XMI.field>

    or something else?

  • Reported: XMI 1.1 — Fri, 27 Oct 2000 04:00 GMT
  • Disposition: Resolved — XMI 1.2
  • Disposition Summary:

    Close with no action because of updates to MOF 1.4 datatypes.

  • Updated: Fri, 6 Mar 2015 20:59 GMT