Class Xhtml5BaseSink

All Implemented Interfaces:
org.apache.maven.doxia.logging.LogEnabled, HtmlMarkup, Markup, XmlMarkup, org.apache.maven.doxia.sink.Sink

public class Xhtml5BaseSink extends AbstractXmlSink implements HtmlMarkup
Abstract base xhtml5 sink implementation.
  • Field Details

    • contentStack

      protected Stack<HTML.Tag> contentStack
      Keep track of the main and div tags for content events.
    • inlineStack

      protected Stack<List<HTML.Tag>> inlineStack
      Keep track of the closing tags for inline events.
    • tableAttributes

      protected MutableAttributeSet tableAttributes
      used to store attributes passed to table().
    • tableRows

      protected boolean tableRows
      Flag to know if tableRows(int[], boolean) is called or not. It is mainly to be backward compatible with some plugins (like checkstyle) which uses:
       sink.table();
       sink.tableRow();
       
      instead of
       sink.table();
       sink.tableRows( justify, true );
       sink.tableRow();
       
  • Constructor Details

    • Xhtml5BaseSink

      public Xhtml5BaseSink(Writer out)
      Constructor, initialize the PrintWriter.
      Parameters:
      out - The writer to write the result.
  • Method Details

    • getTextBuffer

      protected StringBuffer getTextBuffer()
      To use mainly when playing with the head events.
      Returns:
      the current buffer of text events.
    • setHeadFlag

      protected void setHeadFlag(boolean headFlag)

      Setter for the field headFlag.

      Parameters:
      headFlag - an header flag.
    • isHeadFlag

      protected boolean isHeadFlag()

      isHeadFlag.

      Returns:
      the current headFlag.
    • setVerbatimFlag

      protected void setVerbatimFlag(boolean verb)

      Setter for the field verbatimFlag.

      Parameters:
      verb - a verbatim flag.
    • isVerbatimFlag

      protected boolean isVerbatimFlag()

      isVerbatimFlag.

      Returns:
      the current verbatim flag.
    • setCellJustif

      protected void setCellJustif(int[] justif)

      Setter for the field cellJustif.

      Parameters:
      justif - the new cell justification array.
    • getCellJustif

      protected int[] getCellJustif()

      Getter for the field cellJustif.

      Returns:
      the current cell justification array.
    • setCellCount

      protected void setCellCount(int count)

      Setter for the field cellCount.

      Parameters:
      count - the new cell count.
    • getCellCount

      protected int getCellCount()

      Getter for the field cellCount.

      Returns:
      the current cell count.
    • resetState

      protected void resetState()
      Deprecated.
      since 1.1.2, use init() instead of.
      Reset all variables.
    • init

      protected void init()
      This is called in Sink.head() or in Sink.close(), and can be used to set the sink into a clear state so it can be re-used.
      Overrides:
      init in class AbstractSink
    • resetTextBuffer

      protected void resetTextBuffer()
      Reset the text buffer.
    • article

      public void article()
      Specified by:
      article in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      article in class SinkAdapter
    • article

      public void article(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      article in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      article in class SinkAdapter
    • article_

      public void article_()
      Specified by:
      article_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      article_ in class SinkAdapter
    • sidebar

      public void sidebar()
      Specified by:
      sidebar in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sidebar in class SinkAdapter
    • sidebar

      public void sidebar(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      sidebar in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sidebar in class SinkAdapter
    • section

      public void section(int level, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      section in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section in class SinkAdapter
    • sectionTitle

      public void sectionTitle(int level, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      sectionTitle in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle in class SinkAdapter
    • sectionTitle_

      public void sectionTitle_(int level)
      Specified by:
      sectionTitle_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle_ in class SinkAdapter
    • section_

      public void section_(int level)
      Specified by:
      section_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section_ in class SinkAdapter
    • section1

      public void section1()
      Specified by:
      section1 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section1 in class SinkAdapter
    • sectionTitle1

      public void sectionTitle1()
      Specified by:
      sectionTitle1 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle1 in class SinkAdapter
    • sectionTitle1_

      public void sectionTitle1_()
      Specified by:
      sectionTitle1_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle1_ in class SinkAdapter
    • section1_

      public void section1_()
      Specified by:
      section1_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section1_ in class SinkAdapter
    • section2

      public void section2()
      Specified by:
      section2 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section2 in class SinkAdapter
    • sectionTitle2

      public void sectionTitle2()
      Specified by:
      sectionTitle2 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle2 in class SinkAdapter
    • sectionTitle2_

      public void sectionTitle2_()
      Specified by:
      sectionTitle2_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle2_ in class SinkAdapter
    • section2_

      public void section2_()
      Specified by:
      section2_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section2_ in class SinkAdapter
    • section3

      public void section3()
      Specified by:
      section3 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section3 in class SinkAdapter
    • sectionTitle3

      public void sectionTitle3()
      Specified by:
      sectionTitle3 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle3 in class SinkAdapter
    • sectionTitle3_

      public void sectionTitle3_()
      Specified by:
      sectionTitle3_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle3_ in class SinkAdapter
    • section3_

      public void section3_()
      Specified by:
      section3_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section3_ in class SinkAdapter
    • section4

      public void section4()
      Specified by:
      section4 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section4 in class SinkAdapter
    • sectionTitle4

      public void sectionTitle4()
      Specified by:
      sectionTitle4 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle4 in class SinkAdapter
    • sectionTitle4_

      public void sectionTitle4_()
      Specified by:
      sectionTitle4_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle4_ in class SinkAdapter
    • section4_

      public void section4_()
      Specified by:
      section4_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section4_ in class SinkAdapter
    • section5

      public void section5()
      Specified by:
      section5 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section5 in class SinkAdapter
    • sectionTitle5

      public void sectionTitle5()
      Specified by:
      sectionTitle5 in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle5 in class SinkAdapter
    • sectionTitle5_

      public void sectionTitle5_()
      Specified by:
      sectionTitle5_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      sectionTitle5_ in class SinkAdapter
    • section5_

      public void section5_()
      Specified by:
      section5_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      section5_ in class SinkAdapter
    • onSection

      protected void onSection(int depth, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Starts a section. The default class style is section.
      Parameters:
      depth - The level of the section.
      attributes - some attributes. May be null.
    • onSection_

      protected void onSection_(int depth)
      Ends a section.
      Parameters:
      depth - The level of the section.
      See Also:
    • onSectionTitle

      protected void onSectionTitle(int depth, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Starts a section title.
      Parameters:
      depth - The level of the section title.
      attributes - some attributes. May be null.
      See Also:
    • onSectionTitle_

      protected void onSectionTitle_(int depth)
      Ends a section title.
      Parameters:
      depth - The level of the section title.
      See Also:
    • header

      public void header()
      Specified by:
      header in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      header in class SinkAdapter
    • header

      public void header(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      header in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      header in class SinkAdapter
    • header_

      public void header_()
      Specified by:
      header_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      header_ in class SinkAdapter
    • content

      public void content()
      Specified by:
      content in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      content in class SinkAdapter
    • content

      public void content(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      content in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      content in class SinkAdapter
    • content_

      public void content_()
      Specified by:
      content_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      content_ in class SinkAdapter
    • footer

      public void footer()
      Specified by:
      footer in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      footer in class SinkAdapter
    • footer

      public void footer(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      footer in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      footer in class SinkAdapter
    • list

      public void list()
      Specified by:
      list in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      list in class SinkAdapter
      See Also:
    • list

      public void list(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      list in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      list in class SinkAdapter
      See Also:
    • list_

      public void list_()
      Specified by:
      list_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      list_ in class SinkAdapter
      See Also:
    • listItem

      public void listItem()
      Specified by:
      listItem in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      listItem in class SinkAdapter
      See Also:
    • listItem

      public void listItem(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      listItem in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      listItem in class SinkAdapter
      See Also:
    • listItem_

      public void listItem_()
      Specified by:
      listItem_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      listItem_ in class SinkAdapter
      See Also:
    • numberedList

      public void numberedList(int numbering)
      The default list style depends on the numbering.
      Specified by:
      numberedList in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      numberedList in class SinkAdapter
      See Also:
    • numberedList

      public void numberedList(int numbering, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      The default list style depends on the numbering.
      Specified by:
      numberedList in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      numberedList in class SinkAdapter
      See Also:
    • numberedList_

      public void numberedList_()
      Specified by:
      numberedList_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      numberedList_ in class SinkAdapter
      See Also:
    • numberedListItem

      public void numberedListItem()
      Specified by:
      numberedListItem in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      numberedListItem in class SinkAdapter
      See Also:
    • numberedListItem

      public void numberedListItem(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      numberedListItem in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      numberedListItem in class SinkAdapter
      See Also:
    • numberedListItem_

      public void numberedListItem_()
      Specified by:
      numberedListItem_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      numberedListItem_ in class SinkAdapter
      See Also:
    • definitionList

      public void definitionList()
      Specified by:
      definitionList in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      definitionList in class SinkAdapter
      See Also:
    • definitionList

      public void definitionList(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      definitionList in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      definitionList in class SinkAdapter
      See Also:
    • definitionList_

      public void definitionList_()
      Specified by:
      definitionList_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      definitionList_ in class SinkAdapter
      See Also:
    • definedTerm

      public void definedTerm(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      definedTerm in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      definedTerm in class SinkAdapter
      See Also:
    • definedTerm

      public void definedTerm()
      Specified by:
      definedTerm in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      definedTerm in class SinkAdapter
      See Also:
    • definedTerm_

      public void definedTerm_()
      Specified by:
      definedTerm_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      definedTerm_ in class SinkAdapter
      See Also:
    • definition

      public void definition()
      Specified by:
      definition in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      definition in class SinkAdapter
      See Also:
    • definition

      public void definition(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      definition in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      definition in class SinkAdapter
      See Also:
    • definition_

      public void definition_()
      Specified by:
      definition_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      definition_ in class SinkAdapter
      See Also:
    • figure

      public void figure()
      Specified by:
      figure in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      figure in class SinkAdapter
    • figure

      public void figure(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      figure in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      figure in class SinkAdapter
    • figure_

      public void figure_()
      Specified by:
      figure_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      figure_ in class SinkAdapter
    • figureGraphics

      public void figureGraphics(String name)
      Specified by:
      figureGraphics in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      figureGraphics in class SinkAdapter
    • figureGraphics

      public void figureGraphics(String src, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      figureGraphics in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      figureGraphics in class SinkAdapter
    • figureCaption

      public void figureCaption()
      Specified by:
      figureCaption in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      figureCaption in class SinkAdapter
    • figureCaption

      public void figureCaption(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      figureCaption in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      figureCaption in class SinkAdapter
    • figureCaption_

      public void figureCaption_()
      Specified by:
      figureCaption_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      figureCaption_ in class SinkAdapter
    • paragraph

      public void paragraph()
      Specified by:
      paragraph in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      paragraph in class SinkAdapter
      See Also:
    • paragraph

      public void paragraph(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      paragraph in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      paragraph in class SinkAdapter
      See Also:
    • paragraph_

      public void paragraph_()
      Specified by:
      paragraph_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      paragraph_ in class SinkAdapter
      See Also:
    • data

      public void data(String value)
      Specified by:
      data in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      data in class SinkAdapter
    • data

      public void data(String value, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      data in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      data in class SinkAdapter
    • data_

      public void data_()
      Specified by:
      data_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      data_ in class SinkAdapter
    • time

      public void time(String datetime)
      Specified by:
      time in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      time in class SinkAdapter
    • time

      public void time(String datetime, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      time in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      time in class SinkAdapter
    • time_

      public void time_()
      Specified by:
      time_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      time_ in class SinkAdapter
    • address

      public void address()
      Specified by:
      address in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      address in class SinkAdapter
      See Also:
    • address

      public void address(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      address in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      address in class SinkAdapter
      See Also:
    • address_

      public void address_()
      Specified by:
      address_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      address_ in class SinkAdapter
      See Also:
    • blockquote

      public void blockquote()
      Specified by:
      blockquote in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      blockquote in class SinkAdapter
      See Also:
    • blockquote

      public void blockquote(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      blockquote in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      blockquote in class SinkAdapter
      See Also:
    • blockquote_

      public void blockquote_()
      Specified by:
      blockquote_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      blockquote_ in class SinkAdapter
      See Also:
    • division

      public void division()
      Specified by:
      division in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      division in class SinkAdapter
      See Also:
    • division

      public void division(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      division in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      division in class SinkAdapter
      See Also:
    • division_

      public void division_()
      Specified by:
      division_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      division_ in class SinkAdapter
      See Also:
    • verbatim

      public void verbatim(boolean boxed)
      The default class style for boxed is source.
      Specified by:
      verbatim in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      verbatim in class SinkAdapter
      See Also:
    • verbatim

      public void verbatim(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      The default class style for boxed is source.
      Specified by:
      verbatim in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      verbatim in class SinkAdapter
      See Also:
    • verbatim_

      public void verbatim_()
      Specified by:
      verbatim_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      verbatim_ in class SinkAdapter
      See Also:
    • horizontalRule

      public void horizontalRule()
      Specified by:
      horizontalRule in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      horizontalRule in class SinkAdapter
      See Also:
    • horizontalRule

      public void horizontalRule(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      horizontalRule in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      horizontalRule in class SinkAdapter
      See Also:
    • table

      public void table()
      Specified by:
      table in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      table in class SinkAdapter
    • table

      public void table(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      table in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      table in class SinkAdapter
    • table_

      public void table_()
      Specified by:
      table_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      table_ in class SinkAdapter
      See Also:
    • tableRows

      public void tableRows(int[] justification, boolean grid)
      The default class style is bodyTable. The default align is center.
      Specified by:
      tableRows in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableRows in class SinkAdapter
      See Also:
    • tableRows_

      public void tableRows_()
      Specified by:
      tableRows_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableRows_ in class SinkAdapter
    • tableRow

      public void tableRow()
      The default class style is a or b depending the row id.
      Specified by:
      tableRow in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableRow in class SinkAdapter
      See Also:
    • tableRow

      public void tableRow(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      The default class style is a or b depending the row id.
      Specified by:
      tableRow in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableRow in class SinkAdapter
      See Also:
    • tableRow_

      public void tableRow_()
      Specified by:
      tableRow_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableRow_ in class SinkAdapter
      See Also:
    • tableCell

      public void tableCell()
      Specified by:
      tableCell in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableCell in class SinkAdapter
    • tableHeaderCell

      public void tableHeaderCell()
      Specified by:
      tableHeaderCell in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableHeaderCell in class SinkAdapter
    • tableCell

      public void tableCell(String width)
      Specified by:
      tableCell in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableCell in class SinkAdapter
    • tableHeaderCell

      public void tableHeaderCell(String width)
      Specified by:
      tableHeaderCell in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableHeaderCell in class SinkAdapter
    • tableCell

      public void tableCell(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      tableCell in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableCell in class SinkAdapter
    • tableHeaderCell

      public void tableHeaderCell(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      tableHeaderCell in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableHeaderCell in class SinkAdapter
    • tableCell_

      public void tableCell_()
      Specified by:
      tableCell_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableCell_ in class SinkAdapter
    • tableHeaderCell_

      public void tableHeaderCell_()
      Specified by:
      tableHeaderCell_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableHeaderCell_ in class SinkAdapter
    • tableCaption

      public void tableCaption()
      Specified by:
      tableCaption in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableCaption in class SinkAdapter
      See Also:
    • tableCaption

      public void tableCaption(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      tableCaption in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableCaption in class SinkAdapter
      See Also:
    • tableCaption_

      public void tableCaption_()
      Specified by:
      tableCaption_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      tableCaption_ in class SinkAdapter
      See Also:
    • anchor

      public void anchor(String name)
      Specified by:
      anchor in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      anchor in class SinkAdapter
      See Also:
    • anchor

      public void anchor(String name, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      anchor in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      anchor in class SinkAdapter
      See Also:
    • anchor_

      public void anchor_()
      Specified by:
      anchor_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      anchor_ in class SinkAdapter
      See Also:
    • link

      public void link(String name)
      Specified by:
      link in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      link in class SinkAdapter
    • link

      public void link(String name, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      link in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      link in class SinkAdapter
    • inline

      public void inline()
      Specified by:
      inline in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      inline in class SinkAdapter
    • inline

      public void inline(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      inline in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      inline in class SinkAdapter
    • inline_

      public void inline_()
      Specified by:
      inline_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      inline_ in class SinkAdapter
    • italic

      public void italic()
      Specified by:
      italic in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      italic in class SinkAdapter
      See Also:
    • italic_

      public void italic_()
      Specified by:
      italic_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      italic_ in class SinkAdapter
      See Also:
    • bold

      public void bold()
      Specified by:
      bold in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      bold in class SinkAdapter
      See Also:
    • bold_

      public void bold_()
      Specified by:
      bold_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      bold_ in class SinkAdapter
      See Also:
    • monospaced

      public void monospaced()
      Specified by:
      monospaced in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      monospaced in class SinkAdapter
      See Also:
    • monospaced_

      public void monospaced_()
      Specified by:
      monospaced_ in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      monospaced_ in class SinkAdapter
      See Also:
    • lineBreak

      public void lineBreak()
      Specified by:
      lineBreak in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      lineBreak in class SinkAdapter
      See Also:
    • lineBreak

      public void lineBreak(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      lineBreak in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      lineBreak in class SinkAdapter
      See Also:
    • lineBreakOpportunity

      public void lineBreakOpportunity()
      Specified by:
      lineBreakOpportunity in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      lineBreakOpportunity in class SinkAdapter
    • lineBreakOpportunity

      public void lineBreakOpportunity(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      lineBreakOpportunity in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      lineBreakOpportunity in class SinkAdapter
    • pageBreak

      public void pageBreak()
      Specified by:
      pageBreak in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      pageBreak in class SinkAdapter
    • nonBreakingSpace

      public void nonBreakingSpace()
      Specified by:
      nonBreakingSpace in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      nonBreakingSpace in class SinkAdapter
    • text

      public void text(String text)
      Specified by:
      text in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      text in class SinkAdapter
    • text

      public void text(String text, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Specified by:
      text in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      text in class SinkAdapter
    • rawText

      public void rawText(String text)
      Specified by:
      rawText in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      rawText in class SinkAdapter
    • comment

      public void comment(String comment)
      Specified by:
      comment in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      comment in class SinkAdapter
    • unknown

      public void unknown(String name, Object[] requiredParams, org.apache.maven.doxia.sink.SinkEventAttributes attributes)
      Add an unknown event. This can be used to generate html tags for which no corresponding sink event exists.

      If HtmlTools.getHtmlTag( name ) does not return null, the corresponding tag will be written.

      For example, the div block

        <div class="detail" style="display:inline">text</div>
       

      can be generated via the following event sequence:

        SinkEventAttributeSet atts = new SinkEventAttributeSet();
        atts.addAttribute( SinkEventAttributes.CLASS, "detail" );
        atts.addAttribute( SinkEventAttributes.STYLE, "display:inline" );
        sink.unknown( "div", new Object[]{new Integer( HtmlMarkup.TAG_TYPE_START )}, atts );
        sink.text( "text" );
        sink.unknown( "div", new Object[]{new Integer( HtmlMarkup.TAG_TYPE_END )}, null );
       
      Specified by:
      unknown in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      unknown in class SinkAdapter
      Parameters:
      name - the name of the event. If this is not a valid xhtml tag name as defined in HtmlMarkup then the event is ignored.
      requiredParams - If this is null or the first argument is not an Integer then the event is ignored. The first argument should indicate the type of the unknown event, its integer value should be one of TAG_TYPE_START, TAG_TYPE_END, TAG_TYPE_SIMPLE, ENTITY_TYPE, or CDATA_TYPE, otherwise the event will be ignored.
      attributes - a set of attributes for the event. May be null. The attributes will always be written, no validity check is performed.
    • flush

      public void flush()
      Specified by:
      flush in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      flush in class SinkAdapter
    • close

      public void close()
      Specified by:
      close in interface org.apache.maven.doxia.sink.Sink
      Overrides:
      close in class SinkAdapter
    • content

      protected void content(String text)
      Write HTML escaped text to output.
      Parameters:
      text - The text to write.
    • verbatimContent

      protected void verbatimContent(String text)
      Write HTML escaped text to output.
      Parameters:
      text - The text to write.
    • escapeHTML

      protected static String escapeHTML(String text)
      Forward to HtmlTools.escapeHTML( text ).
      Parameters:
      text - the String to escape, may be null
      Returns:
      the text escaped, "" if null String input
      See Also:
    • encodeURL

      protected static String encodeURL(String text)
      Forward to HtmlTools.encodeURL( text ).
      Parameters:
      text - the String to encode, may be null.
      Returns:
      the text encoded, null if null String input.
      See Also:
    • write

      protected void write(String text)
      Write a text to the sink.
      Specified by:
      write in class AbstractXmlSink
      Parameters:
      text - the given text to write
    • writeStartTag

      protected void writeStartTag(HTML.Tag t, MutableAttributeSet att, boolean isSimpleTag)
      Starts a Tag with attributes. For instance:
       <tag attName="attValue">
       
      Overrides:
      writeStartTag in class AbstractXmlSink
      Parameters:
      t - a non null tag.
      att - a set of attributes. May be null.
      isSimpleTag - boolean to write as a simple tag.
    • writeEndTag

      protected void writeEndTag(HTML.Tag t)
      Ends a Tag without writing an EOL. For instance:
      </tag>
      .
      Overrides:
      writeEndTag in class AbstractXmlSink
      Parameters:
      t - a tag.