XTCE 1.2 RTF Avatar
  1. OMG Issue

XTCE12 — Alternate approach to xs:positiveInteger and xs:nonNegativeInteger

  • Key: XTCE12-431
  • Status: closed  
  • Source: Boeing ( Mr. David Overeem)
  • Summary:

    The XTCE Schema uses two XSD types that cause issues for code generators. The xs:positiveInteger and xs:nonNegativeInter end up with things like the "BigInteger" class in the generated code mapping, although the ranging capability is lost. This is not convenient for implementations.

  • Reported: XTCE 1.1 — Thu, 23 Mar 2017 17:20 GMT
  • Disposition: Resolved — XTCE 1.2
  • Disposition Summary:

    Propose to define a local type for positive and non-negative integers

    To support a number of other changes and this issue, add two new types to the XTCE schema:

    <simpleType name="NonNegativeLongType">
    <annotation>
    <documentation>XTCE-specific replacement for xs:nonNegativeInteger which more cleanly maps to native data types.</documentation>
    </annotation>
    <restriction base="long">
    <minInclusive value="0"/>
    </restriction>
    </simpleType>

    <simpleType name="PositiveLongType">
    <annotation>
    <documentation>XTCE-specific replacement for xs:positiveInteger which more cleanly maps to native data types.</documentation>
    </annotation>
    <restriction base="long">
    <minInclusive value="1"/>
    </restriction>
    </simpleType>

  • Updated: Tue, 10 Jul 2018 14:22 GMT