fmidev / fmi-avi-messageconverter

API classes for aviation weather message handling
MIT License
4 stars 6 forks source link

Enable handling of invalid BBB in bulletin heading #90

Closed petringo closed 3 years ago

petringo commented 3 years ago

Sometimes the augmentation indicator BBB is invalid in a bulletin heading. Currently BulletinHeadingDecoder throws an exception and returns nothing. Enable getting a result even when BBB is invalid.

  1. Let BulletinHeadingIndicatorInterpreter also return an empty string, in which case the result is interpreted as NORMAL.
  2. Add String getAugmentationIndicator(); in BulletinHeading
    • Empty String is equal to BulletinHeading.Type.NORMAL
    • Include javadoc describing contents of the value and its relation to getType() and getBulletinAugmentationNumber().
  3. Make BulletinHeadingDecoder to set the augmentation indicator String in BulletinHeading.