|
||||||||||
| 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 Sinkpublic void head_()
head_ in interface Sinkpublic void title_()
title_ in interface Sinkpublic void author_()
author_ in interface Sinkpublic void date_()
date_ in interface Sinkpublic void section1_()
section1_ in interface Sinkpublic void section2_()
section2_ in interface Sinkpublic void section3_()
section3_ in interface Sinkpublic void section4_()
section4_ in interface Sinkpublic void section5_()
section5_ in interface Sinkpublic void sectionTitle1()
sectionTitle1 in interface Sinkpublic void sectionTitle1_()
sectionTitle1_ in interface Sinkpublic void sectionTitle2()
sectionTitle2 in interface Sinkpublic void sectionTitle2_()
sectionTitle2_ in interface Sinkpublic void sectionTitle3()
sectionTitle3 in interface Sinkpublic void sectionTitle3_()
sectionTitle3_ in interface Sinkpublic void sectionTitle4()
sectionTitle4 in interface Sinkpublic void sectionTitle4_()
sectionTitle4_ in interface Sinkpublic void sectionTitle5()
sectionTitle5 in interface Sinkpublic void sectionTitle5_()
sectionTitle5_ in interface Sinkpublic void list()
list in interface Sinkpublic void list_()
list_ in interface Sinkpublic void listItem()
listItem in interface Sinkpublic void listItem_()
listItem_ in interface Sinkpublic void numberedList(int numbering)
numberedList in interface Sinkpublic void numberedList_()
numberedList_ in interface Sinkpublic void numberedListItem()
numberedListItem in interface Sinkpublic void numberedListItem_()
numberedListItem_ in interface Sinkpublic void definitionList()
definitionList in interface Sinkpublic void definitionList_()
definitionList_ in interface Sinkpublic void definedTerm()
definedTerm in interface Sinkpublic void definedTerm_()
definedTerm_ in interface Sinkpublic void definition()
definition in interface Sinkpublic void definition_()
definition_ in interface Sinkpublic void pageBreak()
pageBreak in interface Sinkpublic void paragraph()
paragraph in interface Sinkpublic void paragraph_()
paragraph_ in interface Sinkpublic void verbatim(boolean boxed)
verbatim in interface Sinkpublic void verbatim_()
verbatim_ in interface Sinkpublic void horizontalRule()
horizontalRule in interface Sinkpublic void table()
table in interface Sinkpublic void table_()
table_ in interface Sink
public void tableRows(int[] justification,
boolean grid)
tableRows in interface Sinkpublic void tableRows_()
tableRows_ in interface Sinkpublic void tableRow()
tableRow in interface Sinkpublic void tableRow_()
tableRow_ in interface Sinkpublic void tableCell()
tableCell in interface Sinkpublic void tableHeaderCell()
tableHeaderCell in interface Sinkpublic void tableCell(boolean headerRow)
headerRow - If this cell is part of a header row.public void tableCell_()
tableCell_ in interface Sinkpublic void tableHeaderCell_()
tableHeaderCell_ in interface Sinkpublic void tableCaption()
tableCaption in interface Sinkpublic void tableCaption_()
tableCaption_ in interface Sinkpublic void figureCaption_()
figureCaption_ in interface Sinkpublic void figureGraphics(String name)
figureGraphics in interface Sinkpublic void anchor(String name)
anchor in interface Sinkpublic void anchor_()
anchor_ in interface Sinkpublic void link(String name)
link in interface Sinkpublic void link_()
link_ in interface Sink
public void link(String name,
String target)
name - The name of the link.target - The link target.public void italic()
italic in interface Sinkpublic void italic_()
italic_ in interface Sinkpublic void bold()
bold in interface Sinkpublic void bold_()
bold_ in interface Sinkpublic void monospaced()
monospaced in interface Sinkpublic void monospaced_()
monospaced_ in interface Sinkpublic void lineBreak()
lineBreak in interface Sinkpublic void nonBreakingSpace()
nonBreakingSpace in interface Sinkpublic void text(String text)
text in interface Sinkpublic void rawText(String text)
rawText in interface 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 Sinkpublic void close()
close in interface Sink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||