Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The Sink API comes with several limitations with regards to valid order of events/method calls and valid parametrization. Those are documented in the javadoc of the Sink interface but are complex to follow. This includes
- certain start events need to be followed by an according end event
- sectionTitle(int,SinkEventAttributes) needs to be directly preceded by section(int,SinkEventAttributes) with the same first argument.
- certain rules for sequence of events for table, list (numbered, non-numbered and definition) and figure
- validation of certain common parameters like level or SinkEventAttributes for valid values
As we encourage the direct usage of the Sink API for report mojos there should be a way for mojo authors to quickly crosscheck whether they used the Sink API in a correct way.