JiBX
  1. JiBX
  2. JIBX-271

Codegen: No code generated for empty elements within choice groups

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.2 beta 1
    • Fix Version/s: JiBX 1.2
    • Component/s: core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      I'm unable to get the code generator to generate code + bindings for empty elements.

      The original schema contains:
      <xsd:element name="Accept" />

      which results in a "Warning: No type defined for element element at .." message.

      I've also tried
      <xsd:element name="Accept" >
      <xsd:complexType>
      </xsd:complexType>
      </xsd:element>

      which clears up the warning, but does not create any code or bindings for the Accept element.

      This element is within a choice group. I'd ideally like to have something like a setAccept() method that would create the empty <Accept/> element.

        Activity

        Dennis Sosnoski made changes -
        Field Original Value New Value
        Assignee Dennis Sosnoski [ dsosnoski ]
        Affects Version/s JiBX 1.2 [ 14415 ]
        Affects Version/s JiBX 1.2 beta 1 [ 15068 ]
        Fix Version/s JiBX 1.2 [ 14415 ]
        Hide
        Dennis Sosnoski added a comment -

        Added flag-method feature and implemented code generation to use this for empty elements.

        Show
        Dennis Sosnoski added a comment - Added flag-method feature and implemented code generation to use this for empty elements.
        Dennis Sosnoski made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Nigel Charman added a comment -

        works great. thanks.

        Show
        Nigel Charman added a comment - works great. thanks.
        Nigel Charman made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Nigel Charman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: