|
||||||||||
| 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.AbstractXmlSink
org.apache.maven.doxia.module.xdoc.XdocSink
A doxia Sink which produces an xdoc model.
| Field Summary | |
protected StringBuffer |
buffer
Used to collect text events. |
protected boolean |
headFlag
An indication on if we're inside a head. |
protected org.apache.maven.doxia.util.LineBreaker |
out
The LineBreaker to write the result. |
protected boolean |
titleFlag
An indication on if we're inside a title. |
| Fields inherited from interface org.apache.maven.doxia.module.xdoc.XdocMarkup |
AUTHOR_TAG, DATE_TAG, DOCUMENT_TAG, MACRO_TAG, PROPERTIES_TAG, SECTION_TAG, SOURCE_TAG, SUBSECTION_TAG |
| Fields inherited from interface org.apache.maven.doxia.markup.XmlMarkup |
BANG, CDATA |
| 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 | |
XdocSink(Writer writer)
Constructor, initialize the LineBreaker. |
|
| Method Summary | |
void |
anchor_()
|
void |
anchor(String name)
|
void |
author_()
|
void |
body_()
|
void |
body()
|
void |
bold_()
|
void |
bold()
|
void |
close()
|
protected void |
content(String text)
Write HTML escaped text to output, not preserving white space. |
void |
date_()
|
void |
definedTerm_()
|
void |
definedTerm()
|
void |
definition_()
|
void |
definition()
|
void |
definitionList_()
|
void |
definitionList()
|
static String |
encodeURL(String text)
Forward to HtmlTools.encodeURL( text ). |
static String |
escapeHTML(String text)
Forward to HtmlTools.escapeHTML( text ). |
void |
figure_()
|
void |
figure()
|
void |
figureCaption_()
|
void |
figureCaption()
|
void |
figureGraphics(String s)
|
void |
flush()
|
void |
head_()
|
void |
head()
|
void |
horizontalRule()
|
void |
italic_()
|
void |
italic()
|
void |
lineBreak()
|
void |
link_()
|
void |
link(String name)
|
void |
list_()
|
void |
list()
|
void |
listItem_()
|
void |
listItem()
|
protected void |
markup(String text)
Write text to output, preserving white space. |
void |
monospaced_()
|
void |
monospaced()
|
void |
nonBreakingSpace()
|
void |
numberedList_()
|
void |
numberedList(int numbering)
The default list style depends on the numbering. |
void |
numberedListItem_()
|
void |
numberedListItem()
|
void |
paragraph_()
|
void |
paragraph()
|
protected void |
resetState()
Reset all variables. |
void |
section1_()
|
void |
section1()
|
void |
section2_()
|
void |
section2()
|
void |
section3_()
|
void |
section3()
|
void |
section4_()
|
void |
section4()
|
void |
section5_()
|
void |
section5()
|
void |
sectionTitle1_()
|
void |
sectionTitle1()
|
void |
sectionTitle2_()
|
void |
sectionTitle2()
|
void |
sectionTitle3_()
|
void |
sectionTitle3()
|
void |
sectionTitle4_()
|
void |
sectionTitle4()
|
void |
sectionTitle5_()
|
void |
sectionTitle5()
|
void |
table_()
|
void |
table()
The default align is center.
|
void |
tableCaption_()
|
void |
tableCaption()
|
void |
tableCell_()
|
void |
tableCell_(boolean headerRow)
Ends a table cell. |
void |
tableCell()
|
void |
tableCell(boolean headerRow)
Starts a table cell. |
void |
tableHeaderCell_()
|
void |
tableHeaderCell()
|
void |
tableRow_()
|
void |
tableRow()
The default valign is top.
|
void |
tableRows_()
|
void |
tableRows(int[] justification,
boolean grid)
The default align is center.
|
void |
text(String text)
|
void |
title_()
|
void |
verbatim_()
|
void |
verbatim(boolean boxed)
|
protected void |
verbatimContent(String text)
Write HTML escaped text to output, preserving white space. |
protected void |
write(String text)
|
| Methods inherited from class org.apache.maven.doxia.sink.AbstractXmlSink |
writeEndTag, writeEndTagWithoutEOL, writeSimpleTag, writeSimpleTag, writeStartTag, writeStartTag, writeStartTag |
| Methods inherited from class org.apache.maven.doxia.sink.SinkAdapter |
author, date, definitionListItem_, definitionListItem, pageBreak, rawText, sectionTitle_, sectionTitle, tableCell, tableHeaderCell, title |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.maven.doxia.util.LineBreaker out
protected StringBuffer buffer
protected boolean headFlag
protected boolean titleFlag
| Constructor Detail |
public XdocSink(Writer writer)
writer - The writer to write the result.| Method Detail |
protected void resetState()
public void head()
head in interface org.apache.maven.doxia.sink.SinkXdocMarkup.DOCUMENT_TAG,
XdocMarkup.PROPERTIES_TAGpublic void head_()
head_ in interface org.apache.maven.doxia.sink.SinkXdocMarkup.DOCUMENT_TAG,
XdocMarkup.PROPERTIES_TAGpublic void title_()
title_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.TITLEpublic void author_()
author_ in interface org.apache.maven.doxia.sink.SinkXdocMarkup.AUTHOR_TAGpublic void date_()
date_ in interface org.apache.maven.doxia.sink.SinkXdocMarkup.DATE_TAGpublic void body()
body in interface org.apache.maven.doxia.sink.SinkHTML.Tag.BODYpublic void body_()
body_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.BODY,
XdocMarkup.DOCUMENT_TAGpublic void section1()
section1 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 section1_()
section1_ in interface org.apache.maven.doxia.sink.Sinkpublic void section2()
section2 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 section2_()
section2_ in interface org.apache.maven.doxia.sink.Sinkpublic void section3()
section3 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 section3_()
section3_ in interface org.apache.maven.doxia.sink.Sinkpublic void section4()
section4 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 section4_()
section4_ in interface org.apache.maven.doxia.sink.Sinkpublic void section5()
section5 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 section5_()
section5_ in interface org.apache.maven.doxia.sink.Sinkpublic void list()
list in interface org.apache.maven.doxia.sink.SinkHTML.Tag.ULpublic void list_()
list_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.ULpublic void listItem()
listItem in interface org.apache.maven.doxia.sink.SinkHTML.Tag.LIpublic void listItem_()
listItem_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.LIpublic void numberedList(int numbering)
numberedList in interface org.apache.maven.doxia.sink.SinkHTML.Tag.OLpublic void numberedList_()
numberedList_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.OLpublic void numberedListItem()
numberedListItem in interface org.apache.maven.doxia.sink.SinkHTML.Tag.LIpublic void numberedListItem_()
numberedListItem_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.LIpublic void definitionList()
definitionList in interface org.apache.maven.doxia.sink.SinkHTML.Tag.DLpublic void definitionList_()
definitionList_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.DLpublic void definedTerm()
definedTerm in interface org.apache.maven.doxia.sink.SinkHTML.Tag.DTpublic void definedTerm_()
definedTerm_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.DTpublic void definition()
definition in interface org.apache.maven.doxia.sink.SinkHTML.Tag.DDpublic void definition_()
definition_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.DDpublic void figure()
figure in interface org.apache.maven.doxia.sink.SinkHTML.Tag.IMGpublic void figure_()
figure_ in interface org.apache.maven.doxia.sink.Sinkpublic void figureGraphics(String s)
figureGraphics in interface org.apache.maven.doxia.sink.Sinkpublic void figureCaption()
figureCaption in interface org.apache.maven.doxia.sink.Sinkpublic void figureCaption_()
figureCaption_ in interface org.apache.maven.doxia.sink.Sinkpublic void paragraph()
paragraph in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Ppublic void paragraph_()
paragraph_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Ppublic void verbatim(boolean boxed)
verbatim in interface org.apache.maven.doxia.sink.SinkXdocMarkup.SOURCE_TAG,
HTML.Tag.PREpublic void verbatim_()
verbatim_ in interface org.apache.maven.doxia.sink.SinkXdocMarkup.SOURCE_TAG,
HTML.Tag.PREpublic void horizontalRule()
horizontalRule in interface org.apache.maven.doxia.sink.SinkHTML.Tag.HRpublic void table()
center.
table in interface org.apache.maven.doxia.sink.SinkHTML.Tag.TABLEpublic void table_()
table_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.TABLE
public void tableRows(int[] justification,
boolean grid)
center.
tableRows in interface org.apache.maven.doxia.sink.SinkHTML.Tag.TABLEpublic void tableRows_()
tableRows_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.TABLEpublic void tableRow()
top.
tableRow in interface org.apache.maven.doxia.sink.SinkHTML.Tag.TRpublic void tableRow_()
tableRow_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.TRpublic 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 - true if it is an header rowHTML.Tag.TH,
HTML.Tag.TDpublic 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 - true if it is an header rowHTML.Tag.TH,
HTML.Tag.TDpublic void tableCaption()
tableCaption in interface org.apache.maven.doxia.sink.SinkHTML.Tag.P,
HTML.Tag.Ipublic void tableCaption_()
tableCaption_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.P,
HTML.Tag.Ipublic void anchor(String name)
anchor in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Apublic void anchor_()
anchor_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Apublic void link(String name)
link in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Apublic void link_()
link_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Apublic void italic()
italic in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Ipublic void italic_()
italic_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Ipublic void bold()
bold in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Bpublic void bold_()
bold_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.Bpublic void monospaced()
monospaced in interface org.apache.maven.doxia.sink.SinkHTML.Tag.TTpublic void monospaced_()
monospaced_ in interface org.apache.maven.doxia.sink.SinkHTML.Tag.TTpublic void lineBreak()
lineBreak in interface org.apache.maven.doxia.sink.SinkHTML.Tag.BRpublic void nonBreakingSpace()
nonBreakingSpace in interface org.apache.maven.doxia.sink.Sinkpublic void text(String text)
text in interface org.apache.maven.doxia.sink.Sinkprotected void markup(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 escapeHTML(String text)
text - the String to escape, may be null
HtmlTools.escapeHTML(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.Sinkprotected void write(String text)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||