|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.doxia.sink.SinkAdapter
org.apache.maven.doxia.sink.AbstractTextSink
org.apache.maven.doxia.module.apt.AptSink
APT Sink implementation.
| Field Summary |
| Fields inherited from interface org.apache.maven.doxia.markup.TextMarkup |
PIPE |
| Fields inherited from interface org.apache.maven.doxia.markup.Markup |
EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SLASH, SPACE, STAR |
| Fields inherited from interface org.apache.maven.doxia.sink.Sink |
NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN, ROLE, SECTION_LEVEL_1, SECTION_LEVEL_2, SECTION_LEVEL_3, SECTION_LEVEL_4, SECTION_LEVEL_5 |
| Constructor Summary | |
AptSink(Writer writer)
Constructor, initialize the variables. |
|
| Method Summary | |
void |
anchor_()
|
void |
anchor(String name)
|
void |
author_()
|
void |
bold_()
|
void |
bold()
|
void |
close()
|
protected void |
content(String text)
Write Apt escaped text to output. |
void |
date_()
|
void |
definedTerm_()
|
void |
definedTerm()
|
void |
definition_()
|
void |
definition()
|
void |
definitionList_()
|
void |
definitionList()
|
static String |
encodeFragment(String text)
Forward to HtmlTools.encodeFragment( text ). |
static String |
encodeURL(String text)
Forward to HtmlTools.encodeURL( text ). |
void |
figureCaption_()
|
void |
figureGraphics(String name)
|
void |
flush()
|
protected StringBuffer |
getBuffer()
Returns the buffer that holds the current text. |
void |
head_()
|
void |
head()
|
void |
horizontalRule()
|
void |
italic_()
|
void |
italic()
|
void |
lineBreak()
|
void |
link_()
|
void |
link(String name)
|
void |
link(String name,
String target)
A link with a target. |
void |
list_()
|
void |
list()
|
void |
listItem_()
|
void |
listItem()
|
void |
monospaced_()
|
void |
monospaced()
|
void |
nonBreakingSpace()
|
void |
numberedList_()
|
void |
numberedList(int numbering)
|
void |
numberedListItem_()
|
void |
numberedListItem()
|
void |
pageBreak()
|
void |
paragraph_()
|
void |
paragraph()
|
void |
rawText(String text)
|
protected void |
resetBuffer()
Reset the StringBuffer. |
protected void |
resetState()
Reset all variables. |
protected void |
resetTableCaptionBuffer()
Reset the TableCaptionBuffer. |
void |
section1_()
|
void |
section2_()
|
void |
section3_()
|
void |
section4_()
|
void |
section5_()
|
void |
sectionTitle1_()
|
void |
sectionTitle1()
|
void |
sectionTitle2_()
|
void |
sectionTitle2()
|
void |
sectionTitle3_()
|
void |
sectionTitle3()
|
void |
sectionTitle4_()
|
void |
sectionTitle4()
|
void |
sectionTitle5_()
|
void |
sectionTitle5()
|
protected void |
setHeadFlag(boolean headFlag)
Used to determine whether we are in head mode. |
void |
table_()
|
void |
table()
|
void |
tableCaption_()
|
void |
tableCaption()
|
void |
tableCell_()
|
void |
tableCell()
|
void |
tableCell(boolean headerRow)
Starts a table cell. |
void |
tableHeaderCell_()
|
void |
tableHeaderCell()
|
void |
tableRow_()
|
void |
tableRow()
|
void |
tableRows_()
|
void |
tableRows(int[] justification,
boolean grid)
|
void |
text(String text)
|
void |
title_()
|
void |
verbatim_()
|
void |
verbatim(boolean boxed)
|
protected void |
verbatimContent(String text)
Write Apt escaped text to output. |
protected void |
write(String text)
Write text to output. |
| Methods inherited from class org.apache.maven.doxia.sink.SinkAdapter |
author, body_, body, date, definitionListItem_, definitionListItem, figure_, figure, figureCaption, section1, section2, section3, section4, section5, sectionTitle_, sectionTitle, tableCell, tableHeaderCell, title |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AptSink(Writer writer)
writer - The writer to write the result.| Method Detail |
protected StringBuffer getBuffer()
protected void setHeadFlag(boolean headFlag)
headFlag - True for head mode.protected void resetState()
protected void resetBuffer()
protected void resetTableCaptionBuffer()
public void head()
head in interface org.apache.maven.doxia.sink.Sinkpublic void head_()
head_ in interface org.apache.maven.doxia.sink.Sinkpublic void title_()
title_ in interface org.apache.maven.doxia.sink.Sinkpublic void author_()
author_ in interface org.apache.maven.doxia.sink.Sinkpublic void date_()
date_ in interface org.apache.maven.doxia.sink.Sinkpublic void section1_()
section1_ in interface org.apache.maven.doxia.sink.Sinkpublic void section2_()
section2_ in interface org.apache.maven.doxia.sink.Sinkpublic void section3_()
section3_ in interface org.apache.maven.doxia.sink.Sinkpublic void section4_()
section4_ in interface org.apache.maven.doxia.sink.Sinkpublic void section5_()
section5_ in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle1()
sectionTitle1 in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle1_()
sectionTitle1_ in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle2()
sectionTitle2 in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle2_()
sectionTitle2_ in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle3()
sectionTitle3 in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle3_()
sectionTitle3_ in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle4()
sectionTitle4 in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle4_()
sectionTitle4_ in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle5()
sectionTitle5 in interface org.apache.maven.doxia.sink.Sinkpublic void sectionTitle5_()
sectionTitle5_ in interface org.apache.maven.doxia.sink.Sinkpublic void list()
list in interface org.apache.maven.doxia.sink.Sinkpublic void list_()
list_ in interface org.apache.maven.doxia.sink.Sinkpublic void listItem()
listItem in interface org.apache.maven.doxia.sink.Sinkpublic void listItem_()
listItem_ in interface org.apache.maven.doxia.sink.Sinkpublic void numberedList(int numbering)
numberedList in interface org.apache.maven.doxia.sink.Sinkpublic void numberedList_()
numberedList_ in interface org.apache.maven.doxia.sink.Sinkpublic void numberedListItem()
numberedListItem in interface org.apache.maven.doxia.sink.Sinkpublic void numberedListItem_()
numberedListItem_ in interface org.apache.maven.doxia.sink.Sinkpublic void definitionList()
definitionList in interface org.apache.maven.doxia.sink.Sinkpublic void definitionList_()
definitionList_ in interface org.apache.maven.doxia.sink.Sinkpublic void definedTerm()
definedTerm in interface org.apache.maven.doxia.sink.Sinkpublic void definedTerm_()
definedTerm_ in interface org.apache.maven.doxia.sink.Sinkpublic void definition()
definition in interface org.apache.maven.doxia.sink.Sinkpublic void definition_()
definition_ in interface org.apache.maven.doxia.sink.Sinkpublic void pageBreak()
pageBreak in interface org.apache.maven.doxia.sink.Sinkpublic void paragraph()
paragraph in interface org.apache.maven.doxia.sink.Sinkpublic void paragraph_()
paragraph_ in interface org.apache.maven.doxia.sink.Sinkpublic void verbatim(boolean boxed)
verbatim in interface org.apache.maven.doxia.sink.Sinkpublic void verbatim_()
verbatim_ in interface org.apache.maven.doxia.sink.Sinkpublic void horizontalRule()
horizontalRule in interface org.apache.maven.doxia.sink.Sinkpublic void table()
table in interface org.apache.maven.doxia.sink.Sinkpublic void table_()
table_ in interface org.apache.maven.doxia.sink.Sink
public void tableRows(int[] justification,
boolean grid)
tableRows in interface org.apache.maven.doxia.sink.Sinkpublic void tableRows_()
tableRows_ in interface org.apache.maven.doxia.sink.Sinkpublic void tableRow()
tableRow in interface org.apache.maven.doxia.sink.Sinkpublic void tableRow_()
tableRow_ in interface org.apache.maven.doxia.sink.Sinkpublic void tableCell()
tableCell in interface org.apache.maven.doxia.sink.Sinkpublic void tableHeaderCell()
tableHeaderCell in interface org.apache.maven.doxia.sink.Sinkpublic void tableCell(boolean headerRow)
headerRow - If this cell is part of a header row.public void tableCell_()
tableCell_ in interface org.apache.maven.doxia.sink.Sinkpublic void tableHeaderCell_()
tableHeaderCell_ in interface org.apache.maven.doxia.sink.Sinkpublic void tableCaption()
tableCaption in interface org.apache.maven.doxia.sink.Sinkpublic void tableCaption_()
tableCaption_ in interface org.apache.maven.doxia.sink.Sinkpublic void figureCaption_()
figureCaption_ in interface org.apache.maven.doxia.sink.Sinkpublic void figureGraphics(String name)
figureGraphics in interface org.apache.maven.doxia.sink.Sinkpublic void anchor(String name)
anchor in interface org.apache.maven.doxia.sink.Sinkpublic void anchor_()
anchor_ in interface org.apache.maven.doxia.sink.Sinkpublic void link(String name)
link in interface org.apache.maven.doxia.sink.Sinkpublic void link_()
link_ in interface org.apache.maven.doxia.sink.Sink
public void link(String name,
String target)
name - The name of the link.target - The link target.public void italic()
italic in interface org.apache.maven.doxia.sink.Sinkpublic void italic_()
italic_ in interface org.apache.maven.doxia.sink.Sinkpublic void bold()
bold in interface org.apache.maven.doxia.sink.Sinkpublic void bold_()
bold_ in interface org.apache.maven.doxia.sink.Sinkpublic void monospaced()
monospaced in interface org.apache.maven.doxia.sink.Sinkpublic void monospaced_()
monospaced_ in interface org.apache.maven.doxia.sink.Sinkpublic void lineBreak()
lineBreak in interface org.apache.maven.doxia.sink.Sinkpublic void nonBreakingSpace()
nonBreakingSpace in interface org.apache.maven.doxia.sink.Sinkpublic void text(String text)
text in interface org.apache.maven.doxia.sink.Sinkpublic void rawText(String text)
rawText in interface org.apache.maven.doxia.sink.Sinkprotected void write(String text)
text - The text to write.protected void content(String text)
text - The text to write.protected void verbatimContent(String text)
text - The text to write.public static String encodeFragment(String text)
text - the String to fragment, may be null.
HtmlTools.encodeURL(String).public static String encodeURL(String text)
text - the String to encode, may be null.
HtmlTools.encodeURL(String).public void flush()
flush in interface org.apache.maven.doxia.sink.Sinkpublic void close()
close in interface org.apache.maven.doxia.sink.Sink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||