XTCE 1.2 RTF Avatar
  1. OMG Issue

XTCE12 — LongDescriptionType as a complexType is unnecessary

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

    In the schema refactoring for 1.2, the LongDescription element content got converted to a complexType containing just a string. This should be a simpleType.

  • Reported: XTCE 1.1 — Thu, 1 Jun 2017 17:51 GMT
  • Disposition: Resolved — XTCE 1.2
  • Disposition Summary:

    Convert complexType for LongDescriptionType to a simpleType

    Propose to simplify LongDescriptionType since it does not add any attributes to the description string that would justify a more complex generated interface. Maintaining it as a separate simpleType is useful for creating a profile that limits the length or otherwise restricts the string content, but the string can be retrieved from JAXB-generated code with the method getLongDescription() of the DescriptionType class.

    Change the complexType LongDescriptionType to a simpleType based on string as shown below:

    <simpleType name="LongDescriptionType">
    <documentation xml:lang="en">The Long Description is intended to be used for explanatory descriptions of the object and may include HTML markup. Long Descriptions are of unbounded length</documentation>
    <restriction base="string"/>

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