Skip to content

[DOXIA-712] Add validation capability to Sink API #849

Description

@jira-importer

Konrad Windszus opened DOXIA-712 and commented

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.


Issue Links:

  • DOXIA-711 Introduce SinkWrapper with factory
    ("is blocked by")
  • DOXIA-699 Xhtml5Parser may emit sectionX() without sectionX_() when using both <hX> and <section>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions