fmidev / fmi-avi-messageconverter-iwxxm

Conversion module for aviation IWXXM messages
MIT License
7 stars 5 forks source link

Separate generic message parsing from generic bulletin parsing #83

Closed petringo closed 3 years ago

petringo commented 3 years ago

Declare ConversionSpecifications for converting a single message as an IWXXM string or DOM object to GenericAviationWeatherMessage and provide corresponding parser. Refactor current generic bulletin parser to use the new message parser.

The message MessageType is detected automatically. In case auto detection fails, two fallback methods based on conversion hints are used to infer message type, in following order:

  1. ConversionHints.KEY_MESSAGE_TYPE: use the value.
  2. ConversionHints.KEY_BULLETING_HEADING (does not yet exist, create it) containing a BulletinHeading object as value: use return value of getExpectedContainedMessageType().
petringo commented 3 years ago

Related issue for TAC: fmidev/fmi-avi-messageconverter-tac#107