XMI 1.2 NO IDEA Avatar
  1. OMG Issue

XMI12 — How does an XMI document represent multi-valued attribute values?

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

    How does an XMI 1.1 document represent multi-valued attribute values?
    For example, suppose we have an attribute "foo" with type == 'string'
    and multiplicity of '0..*'. How do you represent this attributes
    value when it contains multiple strings; e.g.

    {'string1', 'string2'}?

    There seem to be three different answers according to Chapter 9.
    The EBNF on page 9-205 is unclear, but it seems to be saying that it
    would look something like:

    <pkg.cls.foo>
    <pkg.cls.foo> string1 </pkg.cls.foo>
    <pkg.cls.foo> string2 </pkg.cls.foo>
    </pkg.cls.foo>

    though the following could be valid also:

    <pkg.cls.foo>
    <pkg.cls.foo> string1
    <pkg.cls.foo> string2 </pkg.cls.foo>
    </pkg.cls.foo>
    </pkg.cls.foo>

    The EBNF on pages 9-217 and 9-221 seems to say:

    <pkg.cls.foo> string1 string2 </pkg.cls.foo>

    This leaves us with a problem in distinguishing {'string1', 'string2'}

    from

    {'string1 string2'}

    .

    On OCL on pages 9-217 and 9-221 seems to say:

    <pkg.cls.foo>
    <XMI.seqItem> string1 </XMI.seqItem>
    <XMI.seqItem> string2 </XMI.seqItem>
    </pkg.cls.foo>

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

    see above

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