Class XhtmlBaseSink

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

    public class XhtmlBaseSink
    extends AbstractXmlSink
    implements HtmlMarkup
    Abstract base xhtml sink implementation.
    Since:
    1.1
    Author:
    Jason van Zyl, ltheussl
    • Field Detail

      • tableAttributes

        protected javax.swing.text.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();
         
      • inlineStack

        protected java.util.Stack<java.util.List<javax.swing.text.html.HTML.Tag>> inlineStack
        Keep track of the closing tags for inline events.
    • Constructor Detail

      • XhtmlBaseSink

        public XhtmlBaseSink​(java.io.Writer out)
        Constructor, initialize the PrintWriter.
        Parameters:
        out - The writer to write the result.
    • Method Detail

      • getTextBuffer

        protected java.lang.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.
      • 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.
        See Also:
        HTML.Tag.DIV
      • onSection_

        protected void onSection_​(int depth)
        Ends a section.
        Parameters:
        depth - The level of the section.
        See Also:
        HTML.Tag.DIV
      • 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:
        HTML.Tag.H2, HTML.Tag.H3, HTML.Tag.H4, HTML.Tag.H5, HTML.Tag.H6
      • onSectionTitle_

        protected void onSectionTitle_​(int depth)
        Ends a section title.
        Parameters:
        depth - The level of the section title.
        See Also:
        HTML.Tag.H2, HTML.Tag.H3, HTML.Tag.H4, HTML.Tag.H5, HTML.Tag.H6
      • list

        public void list()
        Specified by:
        list in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        list in class SinkAdapter
        See Also:
        HTML.Tag.UL
      • 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:
        HTML.Tag.UL
      • list_

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

        public void listItem()
        Specified by:
        listItem in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        listItem in class SinkAdapter
        See Also:
        HTML.Tag.LI
      • 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:
        HTML.Tag.LI
      • listItem_

        public void listItem_()
        Specified by:
        listItem_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        listItem_ in class SinkAdapter
        See Also:
        HTML.Tag.LI
      • 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:
        HTML.Tag.OL
      • 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:
        HTML.Tag.OL
      • numberedList_

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

        public void numberedListItem()
        Specified by:
        numberedListItem in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        numberedListItem in class SinkAdapter
        See Also:
        HTML.Tag.LI
      • 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:
        HTML.Tag.LI
      • numberedListItem_

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

        public void definitionList()
        Specified by:
        definitionList in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        definitionList in class SinkAdapter
        See Also:
        HTML.Tag.DL
      • 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:
        HTML.Tag.DL
      • definitionList_

        public void definitionList_()
        Specified by:
        definitionList_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        definitionList_ in class SinkAdapter
        See Also:
        HTML.Tag.DL
      • 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:
        HTML.Tag.DT
      • definedTerm

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

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

        public void definition()
        Specified by:
        definition in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        definition in class SinkAdapter
        See Also:
        HTML.Tag.DD
      • 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:
        HTML.Tag.DD
      • definition_

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

        public void figure()
        Deprecated.
        Use figure(SinkEventAttributes), this method is only kept for backward compatibility. Note that the behavior is different though, as this method writes an img tag, while correctly the img tag should be written by figureGraphics().
        Specified by:
        figure in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        figure in class SinkAdapter
        See Also:
        HTML.Tag.IMG
      • 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
        See Also:
        HTML.Tag.IMG
      • figure_

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

        public void figureGraphics​(java.lang.String name)
        Deprecated.
        Use figureGraphics(String,SinkEventAttributes), this method is only kept for backward compatibility. Note that the behavior is different though, as this method does not write the img tag, only the src attribute.
        Specified by:
        figureGraphics in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        figureGraphics in class SinkAdapter
      • figureGraphics

        public void figureGraphics​(java.lang.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()
        Deprecated.
        Use figureCaption(SinkEventAttributes), this method is only kept for backward compatibility. Note that the behavior is different though, as this method only writes an alt attribute.
        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:
        HTML.Tag.P
      • 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:
        HTML.Tag.P
      • paragraph_

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

        public void address()
        Specified by:
        address in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        address in class SinkAdapter
        See Also:
        HTML.Tag.ADDRESS
      • 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:
        HTML.Tag.ADDRESS
      • address_

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

        public void blockquote()
        Specified by:
        blockquote in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        blockquote in class SinkAdapter
        See Also:
        HTML.Tag.BLOCKQUOTE
      • 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:
        HTML.Tag.BLOCKQUOTE
      • blockquote_

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

        public void division()
        Specified by:
        division in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        division in class SinkAdapter
        See Also:
        HTML.Tag.DIV
      • 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:
        HTML.Tag.DIV
      • division_

        public void division_()
        Specified by:
        division_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        division_ in class SinkAdapter
        See Also:
        HTML.Tag.DIV
      • 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:
        HTML.Tag.DIV, HTML.Tag.PRE
      • 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:
        HTML.Tag.DIV, HTML.Tag.PRE
      • verbatim_

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

        public void horizontalRule()
        Specified by:
        horizontalRule in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        horizontalRule in class SinkAdapter
        See Also:
        HTML.Tag.HR
      • 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:
        HTML.Tag.HR
      • 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:
        HTML.Tag.TABLE
      • 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:
        HTML.Tag.TABLE
      • 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:
        HTML.Tag.TR
      • 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:
        HTML.Tag.TR
      • tableRow_

        public void tableRow_()
        Specified by:
        tableRow_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableRow_ in class SinkAdapter
        See Also:
        HTML.Tag.TR
      • 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​(java.lang.String width)
        Specified by:
        tableCell in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableCell in class SinkAdapter
      • tableHeaderCell

        public void tableHeaderCell​(java.lang.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:
        HTML.Tag.CAPTION
      • 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:
        HTML.Tag.CAPTION
      • tableCaption_

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

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

        public void anchor​(java.lang.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:
        HTML.Tag.A
      • anchor_

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

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

        public void link​(java.lang.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
      • link_

        public void link_()
        Specified by:
        link_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        link_ in class SinkAdapter
        See Also:
        HTML.Tag.A
      • 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:
        HTML.Tag.I
      • italic_

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

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

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

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

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

        public void lineBreak()
        Specified by:
        lineBreak in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        lineBreak in class SinkAdapter
        See Also:
        HTML.Tag.BR
      • 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:
        HTML.Tag.BR
      • 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​(java.lang.String text)
        Specified by:
        text in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        text in class SinkAdapter
      • text

        public void text​(java.lang.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​(java.lang.String text)
        Specified by:
        rawText in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        rawText in class SinkAdapter
      • comment

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

        public void unknown​(java.lang.String name,
                            java.lang.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​(java.lang.String text)
        Write HTML escaped text to output.
        Parameters:
        text - The text to write.
      • verbatimContent

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

        protected static java.lang.String escapeHTML​(java.lang.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:
        HtmlTools.escapeHTML(String)
      • encodeURL

        protected static java.lang.String encodeURL​(java.lang.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:
        HtmlTools.encodeURL(String)
      • write

        protected void write​(java.lang.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​(javax.swing.text.html.HTML.Tag t,
                                     javax.swing.text.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​(javax.swing.text.html.HTML.Tag t)
        Ends a Tag without writing an EOL. For instance:
        </tag>
        .
        Overrides:
        writeEndTag in class AbstractXmlSink
        Parameters:
        t - a tag.