Package org.apache.maven.doxia.sink.impl
Class SinkWrapper
java.lang.Object
org.apache.maven.doxia.sink.impl.AbstractSink
org.apache.maven.doxia.sink.impl.SinkWrapper
- All Implemented Interfaces:
AutoCloseable,Markup,Sink
- Direct Known Subclasses:
IndexingSink,RandomAccessSink,UniqueAnchorNamesValidator
By default a
SinkWrapper just delegates each method to the wrapped sink's method.
For certain sink methods a derived wrapper may modify the sink before/after or instead of calling the delegate's method.
Sink wrappers can either be registered manually via Parser.addSinkWrapperFactory(SinkWrapperFactory) or
are automatically registered if provided as JSR330 component.
In addition Sink wrappers can be used programmatically without an according factory.- Since:
- 2.0.0
-
Field Summary
Fields inherited from interface org.apache.maven.doxia.markup.Markup
COLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STARFields inherited from interface org.apache.maven.doxia.sink.Sink
JUSTIFY_CENTER, JUSTIFY_DEFAULT, JUSTIFY_LEFT, JUSTIFY_RIGHT, NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN, SECTION_LEVEL_1, SECTION_LEVEL_2, SECTION_LEVEL_3, SECTION_LEVEL_4, SECTION_LEVEL_5, SECTION_LEVEL_6 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddress(SinkEventAttributes attributes) voidaddress_()voidanchor(String name, SinkEventAttributes attributes) voidanchor_()voidarticle(SinkEventAttributes attributes) voidarticle_()voidauthor(SinkEventAttributes attributes) voidauthor_()voidblockquote(SinkEventAttributes attributes) voidvoidbody(SinkEventAttributes attributes) voidbody_()voidbold()voidbold_()voidclose()voidvoidcontent(SinkEventAttributes attributes) voidcontent_()voiddata(String value, SinkEventAttributes attributes) voiddata_()voiddate(SinkEventAttributes attributes) voiddate_()voiddefinedTerm(SinkEventAttributes attributes) voidvoiddefinition(SinkEventAttributes attributes) voidvoiddefinitionList(SinkEventAttributes attributes) voidvoiddefinitionListItem(SinkEventAttributes attributes) voidvoiddivision(SinkEventAttributes attributes) voidvoidfigure(SinkEventAttributes attributes) voidfigure_()voidfigureCaption(SinkEventAttributes attributes) voidvoidfigureGraphics(String src, SinkEventAttributes attributes) voidflush()voidfooter(SinkEventAttributes attributes) voidfooter_()voidhead(SinkEventAttributes attributes) voidhead_()voidheader(SinkEventAttributes attributes) voidheader_()voidhorizontalRule(SinkEventAttributes attributes) voidinline(SinkEventAttributes attributes) voidinline_()voiditalic()voiditalic_()voidlineBreak(SinkEventAttributes attributes) voidlineBreakOpportunity(SinkEventAttributes attributes) voidlink(String name, SinkEventAttributes attributes) voidlink_()voidlist(SinkEventAttributes attributes) voidlist_()voidlistItem(SinkEventAttributes attributes) voidvoidmarkupLineBreak(int indentLevel) voidvoidvoidnavigation(SinkEventAttributes attributes) voidvoidvoidnumberedList(int numbering, SinkEventAttributes attributes) voidvoidnumberedListItem(SinkEventAttributes attributes) voidvoidvoidparagraph(SinkEventAttributes attributes) voidvoidvoidsection(int level, SinkEventAttributes attributes) voidsection_(int level) voidsectionTitle(int level, SinkEventAttributes attributes) voidsectionTitle_(int level) voidsetDocumentLocator(Locator locator) voidsetWrappedSink(Sink sink) voidsidebar(SinkEventAttributes attributes) voidsidebar_()voidtable(SinkEventAttributes attributes) voidtable_()voidtableCaption(SinkEventAttributes attributes) voidvoidtableCell(SinkEventAttributes attributes) voidvoidtableHeaderCell(SinkEventAttributes attributes) voidvoidtableRow(SinkEventAttributes attributes) voidvoidtableRows(int[] justification, boolean grid) voidvoidtext(String text, SinkEventAttributes attributes) voidtime(String datetime, SinkEventAttributes attributes) voidtime_()voidtitle(SinkEventAttributes attributes) voidtitle_()voidunknown(String name, Object[] requiredParams, SinkEventAttributes attributes) voidverbatim(SinkEventAttributes attributes) voidMethods inherited from class org.apache.maven.doxia.sink.impl.AbstractSink
address, anchor, article, author, blockquote, body, content, data, date, definedTerm, definition, definitionList, definitionListItem, division, figure, figureCaption, figureGraphics, footer, formatLocation, getLocationLogPrefix, head, header, horizontalRule, init, inline, lineBreak, lineBreakOpportunity, link, list, listItem, navigation, numberedList, numberedListItem, paragraph, section1, section1_, section2, section2_, section3, section3_, section4, section4_, section5, section5_, section6, section6_, sectionTitle, sectionTitle_, sectionTitle1, sectionTitle1_, sectionTitle2, sectionTitle2_, sectionTitle3, sectionTitle3_, sectionTitle4, sectionTitle4_, sectionTitle5, sectionTitle5_, sectionTitle6, sectionTitle6_, sidebar, table, tableCaption, tableCell, tableHeaderCell, tableRow, tableRows, text, time, title, unifyEOLs, verbatim
-
Constructor Details
-
SinkWrapper
-
-
Method Details
-
getWrappedSink
-
setWrappedSink
-
head
-
head_
-
title
-
title_
-
author
-
author_
-
date
-
date_
-
body
-
body_
-
article
-
article_
-
sidebar
-
sidebar_
-
section
-
section_
-
sectionTitle
-
sectionTitle_
-
header
-
header_
-
content
-
content_
-
list
-
list_
-
listItem
-
listItem_
-
numberedList
-
numberedList_
-
numberedListItem
-
numberedListItem_
-
definitionList
-
definitionList_
-
definitionListItem
-
definitionListItem_
-
definition
-
definition_
-
definedTerm
-
definedTerm_
-
figure
-
figure_
-
figureCaption
-
figureCaption_
-
figureGraphics
-
table
-
table_
-
tableRows
-
tableRows_
-
tableRow
-
tableRow_
-
tableCell
-
tableCell_
-
tableHeaderCell
-
tableHeaderCell_
-
tableCaption
-
tableCaption_
-
paragraph
-
paragraph_
-
data
-
data_
-
time
-
time_
-
address
-
address_
-
blockquote
-
blockquote_
-
division
-
division_
-
verbatim
-
verbatim_
-
horizontalRule
-
pageBreak
-
anchor
-
anchor_
-
link
-
link_
-
inline
-
inline_
-
italic
-
italic_
-
bold
-
bold_
-
monospaced
-
monospaced_
-
lineBreak
-
lineBreakOpportunity
-
nonBreakingSpace
-
text
-
rawText
-
comment
-
markupLineBreak
-
unknown
-
flush
-
close
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceSink- Overrides:
setDocumentLocatorin classAbstractSink
-
getDocumentLocator
- Specified by:
getDocumentLocatorin interfaceSink- Overrides:
getDocumentLocatorin classAbstractSink
-