Skip to content

Extendability of bulletin data designators

Compare
Choose a tag to compare

This release complements 3.8.0 by enabling the use of custom (non-WMO GTS manual) data designator values in bulletin headings. Change details:

  • The bulletin related model classes have been moved into package fi.fmi.avi.model.bulletin and fi.fmi.avi.model.bulletin.immutable.
  • BulletinHeading.DataDesignatorT1 and BulletinHeading.DataDesignatorT2 enums have been refactored into separate classes DataDesignatorT1 and DataDesignatorT2 with public static fields representing the know (standard) values of the data designators. Code using these enums needs to be refactored to use the new classes instead:
    • fi.fmi.avi.model.BulletinHeading.DataDesignatorT1 to fi.fmi.avi.model.bulletin.DataDesignatorT1,
    • fi.fmi.avi.model.BulletinHeading.DataDesignatorT2 to fi.fmi.avi.model.bulletin.DataDesignatorT2,
    • fi.fmi.avi.model.BulletinHeading.ForecastDataTypeDesignatorT2 to fi.fmi.avi.model.bulletin.DataDesignatorT2.ForecastDataTypeDesignatorT2,
    • fi.fmi.avi.model.BulletinHeading.WarningsDataTypeDesignatorT2 to fi.fmi.avi.model.bulletin.DataDesignatorT2.WarningsDataTypeDesignatorT2,
    • fi.fmi.avi.model.BulletinHeading.SurfaceDataTypeDesignatorT2 to fi.fmi.avi.model.bulletin.DataDesignatorT2.SurfaceDataTypeDesignatorT2,
    • fi.fmi.avi.model.BulletinHeading.UpperAirDataTypeDesignatorT2 to fi.fmi.avi.model.bulletin.DataDesignatorT2.UpperAirDataTypeDesignatorT2,
    • fi.fmi.avi.model.BulletinHeading.XMLDataTypeDesignatorT2 to fi.fmi.avi.model.bulletin.DataDesignatorT2.XMLDataTypeDesignatorT2,
  • Custom T1 data designator can be created using the constructor for DataDesignatorT1. If the designator character is not one of the standard ones, the designator will have the name "EXTENSION_[code]".
  • Custom T2 data designator can be created using the constructor for DataDesignatorT2. These designators will always have names "EXTENSION_[code]".
  • Both the DataDesignatorT1 and DataDesignatorT2 uses reflection to automatically infer the names and the codes of the known designator values from the static fields of these classes to drive the convenience methods fromCode and fromName.