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:
ConversionHints.KEY_MESSAGE_TYPE: use the value.
ConversionHints.KEY_BULLETING_HEADING (does not yet exist, create it) containing a BulletinHeading object as value: use return value of getExpectedContainedMessageType().
Declare
ConversionSpecification
s for converting a single message as an IWXXM string or DOM object toGenericAviationWeatherMessage
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:ConversionHints.KEY_MESSAGE_TYPE
: use the value.ConversionHints.KEY_BULLETING_HEADING
(does not yet exist, create it) containing aBulletinHeading
object as value: use return value ofgetExpectedContainedMessageType()
.