Class AptSink
java.lang.Object
org.apache.maven.doxia.sink.impl.AbstractSink
org.apache.maven.doxia.sink.impl.SinkAdapter
org.apache.maven.doxia.sink.impl.AbstractTextSink
org.apache.maven.doxia.module.apt.AptSink
- All Implemented Interfaces:
AutoCloseable,Markup,TextMarkup,AptMarkup,Sink
APT generator implementation.
Note: The encoding used is UTF-8.
Note: The encoding used is UTF-8.
- Since:
- 1.0
- Author:
- eredmond
-
Field Summary
FieldsModifier and TypeFieldDescriptionKeep track of the closing tags for inline events.Fields inherited from interface org.apache.maven.doxia.module.apt.AptMarkup
ANCHOR_END_MARKUP, ANCHOR_START_MARKUP, BACKSLASH, BOLD_END_MARKUP, BOLD_START_MARKUP, COMMENT, HEADER_START_MARKUP, HORIZONTAL_RULE_MARKUP, ITALIC_END_MARKUP, ITALIC_START_MARKUP, LINK_END_MARKUP, LINK_START_1_MARKUP, LINK_START_2_MARKUP, LIST_END_MARKUP, LIST_START_MARKUP, MONOSPACED_END_MARKUP, MONOSPACED_START_MARKUP, NON_BREAKING_SPACE_MARKUP, NUMBERING, NUMBERING_LOWER_ALPHA_CHAR, NUMBERING_LOWER_ROMAN_CHAR, NUMBERING_UPPER_ALPHA_CHAR, NUMBERING_UPPER_ROMAN_CHAR, PAGE_BREAK, PAGE_BREAK_MARKUP, PERCENT, SECTION_TITLE_START_MARKUP, TAB, TABLE_CELL_SEPARATOR_MARKUP, TABLE_COL_CENTERED_ALIGNED_MARKUP, TABLE_COL_LEFT_ALIGNED_MARKUP, TABLE_COL_RIGHT_ALIGNED_MARKUP, TABLE_ROW_SEPARATOR_MARKUP, TABLE_ROW_START_MARKUP, VERBATIM_END_MARKUP, VERBATIM_SOURCE_END_MARKUP, VERBATIM_SOURCE_START_MARKUP, VERBATIM_START_MARKUPFields 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_6Fields inherited from interface org.apache.maven.doxia.markup.TextMarkup
PIPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanchor(String name, SinkEventAttributes attributes) voidanchor_()voidauthor_()voidbold()voidbold_()voidclose()voidprotected voidWrite Apt escaped text to output.voiddate_()voiddefinedTerm(SinkEventAttributes attributes) voidvoiddefinition(SinkEventAttributes attributes) voidvoiddefinitionList(SinkEventAttributes attributes) voidvoidvoidfigureGraphics(String name, SinkEventAttributes attributes) voidflush()protected StringBufferReturns the buffer that holds the current text.voidhead(SinkEventAttributes attributes) voidhead_()voidhorizontalRule(SinkEventAttributes attributes) protected voidinit()voidinline(SinkEventAttributes attributes) voidinline_()voiditalic()voiditalic_()voidlineBreak(SinkEventAttributes attributes) voidA link with a target.voidlink(String name, SinkEventAttributes attributes) voidlink_()voidlist(SinkEventAttributes attributes) voidlist_()voidlistItem(SinkEventAttributes attributes) voidvoidvoidvoidvoidnumberedList(int numbering, SinkEventAttributes attributes) voidvoidnumberedListItem(SinkEventAttributes attributes) voidvoidvoidparagraph(SinkEventAttributes attributes) voidvoidprotected voidReset the StringBuilder.protected voidReset the TableCaptionBuffer.voidsection_(int level) voidsectionTitle(int level, SinkEventAttributes attributes) voidsectionTitle_(int level) protected voidsetHeadFlag(boolean headFlag) Used to determine whether we are in head mode.voidtable(SinkEventAttributes attributes) voidtable_()voidtableCaption(SinkEventAttributes attributes) voidvoidtableCell(boolean headerRow) Starts a table cell.voidtableCell(SinkEventAttributes attributes) voidvoidtableHeaderCell(SinkEventAttributes attributes) voidvoidtableRow(SinkEventAttributes attributes) voidvoidtableRows(int[] justification, boolean grid) voidvoidtext(String text, SinkEventAttributes attributes) voidtitle_()voidunknown(String name, Object[] requiredParams, SinkEventAttributes attributes) Unkown events just log a warning message but are ignored otherwise.voidverbatim(SinkEventAttributes attributes) voidprotected voidverbatimContent(String text) Write Apt escaped text to output.protected voidWrite text to output.Methods inherited from class org.apache.maven.doxia.sink.impl.SinkAdapter
address, address_, article, article_, author, blockquote, blockquote_, body, body_, content, content_, data, data_, date, definitionListItem, definitionListItem_, division, division_, figure, figure_, figureCaption, footer, footer_, header, header_, lineBreakOpportunity, navigation, navigation_, section, sidebar, sidebar_, time, time_, titleMethods 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, getDocumentLocator, getLocationLogPrefix, head, header, horizontalRule, 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_, setDocumentLocator, sidebar, table, tableCaption, tableCell, tableHeaderCell, tableRow, tableRows, text, time, title, unifyEOLs, verbatimMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.doxia.sink.Sink
markupLineBreak
-
Field Details
-
inlineStack
Keep track of the closing tags for inline events.
-
-
Constructor Details
-
AptSink
Constructor, initialize the Writer and the variables.- Parameters:
writer- not null writer to write the result. Should be an UTF-8 Writer.
-
-
Method Details
-
getBuffer
Returns the buffer that holds the current text.- Returns:
- A StringBuffer.
-
setHeadFlag
Used to determine whether we are in head mode.- Parameters:
headFlag- True for head mode.
-
init
- Overrides:
initin classAbstractSink
-
resetBuffer
Reset the StringBuilder. -
resetTableCaptionBuffer
Reset the TableCaptionBuffer. -
head
- Specified by:
headin interfaceSink- Overrides:
headin classSinkAdapter
-
head_
- Specified by:
head_in interfaceSink- Overrides:
head_in classSinkAdapter
-
title_
- Specified by:
title_in interfaceSink- Overrides:
title_in classSinkAdapter
-
author_
- Specified by:
author_in interfaceSink- Overrides:
author_in classSinkAdapter
-
date_
- Specified by:
date_in interfaceSink- Overrides:
date_in classSinkAdapter
-
section_
- Specified by:
section_in interfaceSink- Overrides:
section_in classSinkAdapter
-
sectionTitle
- Specified by:
sectionTitlein interfaceSink- Overrides:
sectionTitlein classSinkAdapter
-
sectionTitle_
- Specified by:
sectionTitle_in interfaceSink- Overrides:
sectionTitle_in classSinkAdapter
-
list
- Specified by:
listin interfaceSink- Overrides:
listin classSinkAdapter
-
list_
- Specified by:
list_in interfaceSink- Overrides:
list_in classSinkAdapter
-
listItem
- Specified by:
listItemin interfaceSink- Overrides:
listItemin classSinkAdapter
-
listItem_
- Specified by:
listItem_in interfaceSink- Overrides:
listItem_in classSinkAdapter
-
numberedList
- Specified by:
numberedListin interfaceSink- Overrides:
numberedListin classSinkAdapter
-
numberedList_
- Specified by:
numberedList_in interfaceSink- Overrides:
numberedList_in classSinkAdapter
-
numberedListItem
- Specified by:
numberedListItemin interfaceSink- Overrides:
numberedListItemin classSinkAdapter
-
numberedListItem_
- Specified by:
numberedListItem_in interfaceSink- Overrides:
numberedListItem_in classSinkAdapter
-
definitionList
- Specified by:
definitionListin interfaceSink- Overrides:
definitionListin classSinkAdapter
-
definitionList_
- Specified by:
definitionList_in interfaceSink- Overrides:
definitionList_in classSinkAdapter
-
definedTerm
- Specified by:
definedTermin interfaceSink- Overrides:
definedTermin classSinkAdapter
-
definedTerm_
- Specified by:
definedTerm_in interfaceSink- Overrides:
definedTerm_in classSinkAdapter
-
definition
- Specified by:
definitionin interfaceSink- Overrides:
definitionin classSinkAdapter
-
definition_
- Specified by:
definition_in interfaceSink- Overrides:
definition_in classSinkAdapter
-
pageBreak
- Specified by:
pageBreakin interfaceSink- Overrides:
pageBreakin classSinkAdapter
-
paragraph
- Specified by:
paragraphin interfaceSink- Overrides:
paragraphin classSinkAdapter
-
paragraph_
- Specified by:
paragraph_in interfaceSink- Overrides:
paragraph_in classSinkAdapter
-
verbatim
- Specified by:
verbatimin interfaceSink- Overrides:
verbatimin classSinkAdapter
-
verbatim_
- Specified by:
verbatim_in interfaceSink- Overrides:
verbatim_in classSinkAdapter
-
horizontalRule
- Specified by:
horizontalRulein interfaceSink- Overrides:
horizontalRulein classSinkAdapter
-
table
- Specified by:
tablein interfaceSink- Overrides:
tablein classSinkAdapter
-
table_
- Specified by:
table_in interfaceSink- Overrides:
table_in classSinkAdapter
-
tableRows
- Specified by:
tableRowsin interfaceSink- Overrides:
tableRowsin classSinkAdapter
-
tableRows_
- Specified by:
tableRows_in interfaceSink- Overrides:
tableRows_in classSinkAdapter
-
tableRow
- Specified by:
tableRowin interfaceSink- Overrides:
tableRowin classSinkAdapter
-
tableRow_
- Specified by:
tableRow_in interfaceSink- Overrides:
tableRow_in classSinkAdapter
-
tableCell
- Specified by:
tableCellin interfaceSink- Overrides:
tableCellin classSinkAdapter
-
tableHeaderCell
- Specified by:
tableHeaderCellin interfaceSink- Overrides:
tableHeaderCellin classSinkAdapter
-
tableCell
Starts a table cell.- Parameters:
headerRow- If this cell is part of a header row.
-
tableCell_
- Specified by:
tableCell_in interfaceSink- Overrides:
tableCell_in classSinkAdapter
-
tableHeaderCell_
- Specified by:
tableHeaderCell_in interfaceSink- Overrides:
tableHeaderCell_in classSinkAdapter
-
tableCaption
- Specified by:
tableCaptionin interfaceSink- Overrides:
tableCaptionin classSinkAdapter
-
tableCaption_
- Specified by:
tableCaption_in interfaceSink- Overrides:
tableCaption_in classSinkAdapter
-
figureCaption_
- Specified by:
figureCaption_in interfaceSink- Overrides:
figureCaption_in classSinkAdapter
-
figureGraphics
- Specified by:
figureGraphicsin interfaceSink- Overrides:
figureGraphicsin classSinkAdapter
-
anchor
- Specified by:
anchorin interfaceSink- Overrides:
anchorin classSinkAdapter
-
anchor_
- Specified by:
anchor_in interfaceSink- Overrides:
anchor_in classSinkAdapter
-
link
- Specified by:
linkin interfaceSink- Overrides:
linkin classSinkAdapter
-
link_
- Specified by:
link_in interfaceSink- Overrides:
link_in classSinkAdapter
-
link
A link with a target.- Parameters:
name- The name of the link.target- The link target.
-
inline
- Specified by:
inlinein interfaceSink- Overrides:
inlinein classSinkAdapter
-
inline_
- Specified by:
inline_in interfaceSink- Overrides:
inline_in classSinkAdapter
-
italic
- Specified by:
italicin interfaceSink- Overrides:
italicin classSinkAdapter
-
italic_
- Specified by:
italic_in interfaceSink- Overrides:
italic_in classSinkAdapter
-
bold
- Specified by:
boldin interfaceSink- Overrides:
boldin classSinkAdapter
-
bold_
- Specified by:
bold_in interfaceSink- Overrides:
bold_in classSinkAdapter
-
monospaced
- Specified by:
monospacedin interfaceSink- Overrides:
monospacedin classSinkAdapter
-
monospaced_
- Specified by:
monospaced_in interfaceSink- Overrides:
monospaced_in classSinkAdapter
-
lineBreak
- Specified by:
lineBreakin interfaceSink- Overrides:
lineBreakin classSinkAdapter
-
nonBreakingSpace
- Specified by:
nonBreakingSpacein interfaceSink- Overrides:
nonBreakingSpacein classSinkAdapter
-
text
- Specified by:
textin interfaceSink- Overrides:
textin classSinkAdapter
-
rawText
- Specified by:
rawTextin interfaceSink- Overrides:
rawTextin classSinkAdapter
-
comment
- Specified by:
commentin interfaceSink- Overrides:
commentin classSinkAdapter
-
unknown
Unkown events just log a warning message but are ignored otherwise.- Specified by:
unknownin interfaceSink- Overrides:
unknownin classSinkAdapter- See Also:
-
write
Write text to output.- Parameters:
text- The text to write.
-
content
Write Apt escaped text to output.- Parameters:
text- The text to write.
-
verbatimContent
Write Apt escaped text to output.- Parameters:
text- The text to write.
-
flush
- Specified by:
flushin interfaceSink- Overrides:
flushin classSinkAdapter
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSink- Overrides:
closein classSinkAdapter
-