Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-75

Code generator creating "properties" for non-property attributes

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: s0-pre
    • Component/s: None
    • Labels:
      None

      Description

      The code generator is creating properties for things like the ref attribute on format annotations, or the test attribute on asserts. These are not properties and the rules are different for them. E.g., for format properties, most of the time code will simply insist they have a value, want to know what it is, and it's an error if they are not defined. This uniform behavior is built into the getProperty that is called when you access one of these property members.

      But for the non-property attributes, code will typically need to implement conditional behaviors. E.g., whether or not there is a ref attribute different things will happen.

      So, since the XML Schema for format annotations doesn't distinguish these two kinds of attributes, the code-generator needs a special-case filter so that it either doesn't generate any code for these attributes, or generates different code for them (which will return an Option type so one can have the code behave differently.)

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              jchab Jessie Chab
              Reporter:
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks

                  Progress: 
                   0/0