|
|||||||||||
| 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.xhtml.XhtmlSink
Xhtml sink implementation.
|
| Field Summary |
| Fields inherited from interface org.apache.maven.doxia.module.xhtml.XhtmlMarkup |
TBODY_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 | |
XhtmlSink(Writer writer)
|
|
XhtmlSink(Writer writer,
RenderingContext renderingContext)
|
|
XhtmlSink(Writer writer,
RenderingContext renderingContext,
Map directives)
|
|
| 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)
|
void |
date_()
|
void |
definedTerm_()
|
void |
definedTerm()
|
void |
definition_()
|
void |
definition()
|
void |
definitionList_()
|
void |
definitionList()
|
static String |
encodeFragment(String text)
|
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 name)
|
void |
flush()
|
protected StringBuffer |
getBuffer()
|
RenderingContext |
getRenderingContext()
|
void |
head_()
|
void |
head()
|
void |
horizontalRule()
|
void |
italic_()
|
void |
italic()
|
void |
lineBreak()
|
void |
link_()
|
void |
link(String name)
|
void |
link(String name,
String target)
The default style class for external link is externalLink. |
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 |
paragraph_()
|
void |
paragraph()
|
void |
rawText(String text)
|
protected void |
resetBuffer()
Reset the buffer. |
protected void |
resetState()
Reset all the Sink state. |
void |
section1_()
|
void |
section1()
The default class style is section.
|
void |
section2_()
|
void |
section2()
The default class style is section.
|
void |
section3_()
|
void |
section3()
The default class style is section.
|
void |
section4_()
|
void |
section4()
The default class style is section.
|
void |
section5_()
|
void |
section5()
The default class style is section.
|
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)
|
void |
table_()
|
void |
table()
The default class style is bodyTable.
|
void |
tableCaption_()
|
void |
tableCaption()
|
void |
tableCell_()
|
void |
tableCell_(boolean headerRow)
|
void |
tableCell()
|
void |
tableCell(boolean headerRow)
|
void |
tableCell(boolean headerRow,
String width)
|
void |
tableCell(String width)
|
void |
tableHeaderCell_()
|
void |
tableHeaderCell()
|
void |
tableHeaderCell(String width)
|
void |
tableRow_()
|
void |
tableRow()
The default class style is a or b depending the row id.
|
void |
tableRows_()
|
void |
tableRows(int[] justification,
boolean grid)
|
void |
text(String text)
|
void |
title_()
|
void |
title()
|
void |
verbatim_()
|
void |
verbatim(boolean boxed)
The default class style is source.
|
protected void |
verbatimContent(String text)
|
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, sectionTitle_, sectionTitle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XhtmlSink(Writer writer)
writer -
public XhtmlSink(Writer writer,
RenderingContext renderingContext)
writer - renderingContext -
public XhtmlSink(Writer writer,
RenderingContext renderingContext,
Map directives)
writer - renderingContext - directives - | Method Detail |
protected StringBuffer getBuffer()
protected void setHeadFlag(boolean headFlag)
headFlag - an header flagprotected void resetState()
protected void resetBuffer()
public void head()
head in interface Sinkpublic void head_()
head_ in interface Sinkpublic void title()
title in interface SinkHTML.Tag.TITLEpublic void title_()
title_ in interface SinkHTML.Tag.TITLEpublic void author_()
author_ in interface SinkHTML.Tag.METApublic void date_()
date_ in interface SinkHTML.Tag.METApublic void body()
body in interface Sinkpublic void body_()
body_ in interface Sinkpublic void section1()
section.
section1 in interface SinkHTML.Tag.DIVpublic void section2()
section.
section2 in interface SinkHTML.Tag.DIVpublic void section3()
section.
section3 in interface SinkHTML.Tag.DIVpublic void section4()
section.
section4 in interface SinkHTML.Tag.DIVpublic void section5()
section.
section5 in interface SinkHTML.Tag.DIVpublic void section1_()
section1_ in interface SinkHTML.Tag.DIVpublic void section2_()
section2_ in interface SinkHTML.Tag.DIVpublic void section3_()
section3_ in interface SinkHTML.Tag.DIVpublic void section4_()
section4_ in interface SinkHTML.Tag.DIVpublic void section5_()
section5_ in interface SinkHTML.Tag.DIVpublic void sectionTitle1()
sectionTitle1 in interface SinkHTML.Tag.H2public void sectionTitle1_()
sectionTitle1_ in interface SinkHTML.Tag.H2public void sectionTitle2()
sectionTitle2 in interface SinkHTML.Tag.H3public void sectionTitle2_()
sectionTitle2_ in interface SinkHTML.Tag.H3public void sectionTitle3()
sectionTitle3 in interface SinkHTML.Tag.H4public void sectionTitle3_()
sectionTitle3_ in interface SinkHTML.Tag.H4public void sectionTitle4()
sectionTitle4 in interface SinkHTML.Tag.H5public void sectionTitle4_()
sectionTitle4_ in interface SinkHTML.Tag.H5public void sectionTitle5()
sectionTitle5 in interface SinkHTML.Tag.H6public void sectionTitle5_()
sectionTitle5_ in interface SinkHTML.Tag.H6public void list()
list in interface SinkHTML.Tag.ULpublic void list_()
list_ in interface SinkHTML.Tag.ULpublic void listItem()
listItem in interface SinkHTML.Tag.LIpublic void listItem_()
listItem_ in interface SinkHTML.Tag.LIpublic void numberedList(int numbering)
numberedList in interface SinkHTML.Tag.OLpublic void numberedList_()
numberedList_ in interface SinkHTML.Tag.OLpublic void numberedListItem()
numberedListItem in interface SinkHTML.Tag.LIpublic void numberedListItem_()
numberedListItem_ in interface SinkHTML.Tag.LIpublic void definitionList()
definitionList in interface SinkHTML.Tag.DLpublic void definitionList_()
definitionList_ in interface SinkHTML.Tag.DLpublic void definedTerm()
definedTerm in interface SinkHTML.Tag.DTpublic void definedTerm_()
definedTerm_ in interface SinkHTML.Tag.DTpublic void definition()
definition in interface SinkHTML.Tag.DDpublic void definition_()
definition_ in interface SinkHTML.Tag.DDpublic void paragraph()
paragraph in interface SinkHTML.Tag.Ppublic void paragraph_()
paragraph_ in interface SinkHTML.Tag.Ppublic void verbatim(boolean boxed)
source.
verbatim in interface SinkHTML.Tag.DIV,
HTML.Tag.PREpublic void verbatim_()
verbatim_ in interface SinkHTML.Tag.DIV,
HTML.Tag.PREpublic void horizontalRule()
horizontalRule in interface SinkHTML.Tag.HRpublic void table()
bodyTable.
table in interface SinkHTML.Tag.TABLEpublic void table_()
table_ in interface SinkHTML.Tag.TABLE
public void tableRows(int[] justification,
boolean grid)
tableRows in interface SinkXhtmlMarkup.TBODY_TAGpublic void tableRows_()
tableRows_ in interface SinkXhtmlMarkup.TBODY_TAGpublic void tableRow()
a or b depending the row id.
tableRow in interface SinkHTML.Tag.TRpublic void tableRow_()
tableRow_ in interface SinkHTML.Tag.TRpublic void tableCell()
tableCell in interface Sinkpublic void tableHeaderCell()
tableHeaderCell in interface Sinkpublic void tableCell(boolean headerRow)
headerRow - true if it is an header rowHTML.Tag.TH,
HTML.Tag.TDpublic void tableCell(String width)
tableCell in interface Sinkpublic void tableHeaderCell(String width)
tableHeaderCell in interface Sink
public void tableCell(boolean headerRow,
String width)
headerRow - true if it is an header rowwidth - the cell sizeHTML.Tag.TH,
HTML.Tag.TDpublic void tableCell_()
tableCell_ in interface Sinkpublic void tableHeaderCell_()
tableHeaderCell_ in interface Sinkpublic void tableCell_(boolean headerRow)
headerRow - true if it is an header rowHTML.Tag.TH,
HTML.Tag.TDpublic void tableCaption()
tableCaption in interface SinkHTML.Tag.CAPTIONpublic void tableCaption_()
tableCaption_ in interface SinkHTML.Tag.CAPTIONpublic void figure()
figure in interface SinkHTML.Tag.IMGpublic void figure_()
figure_ in interface Sinkpublic void figureCaption()
figureCaption in interface Sinkpublic void figureCaption_()
figureCaption_ in interface Sinkpublic void figureGraphics(String name)
figureGraphics in interface Sinkpublic void anchor(String name)
anchor in interface SinkHTML.Tag.Apublic void anchor_()
anchor_ in interface SinkHTML.Tag.Apublic void link(String name)
link in interface Sink
public void link(String name,
String target)
externalLink.
name - target - HTML.Tag.Apublic void link_()
link_ in interface SinkHTML.Tag.Apublic void italic()
italic in interface SinkHTML.Tag.Ipublic void italic_()
italic_ in interface SinkHTML.Tag.Ipublic void bold()
bold in interface SinkHTML.Tag.Bpublic void bold_()
bold_ in interface SinkHTML.Tag.Bpublic void monospaced()
monospaced in interface SinkHTML.Tag.TTpublic void monospaced_()
monospaced_ in interface SinkHTML.Tag.TTpublic void lineBreak()
lineBreak in interface SinkHTML.Tag.BRpublic void nonBreakingSpace()
nonBreakingSpace in interface Sinkpublic void text(String text)
text in interface Sinkpublic void rawText(String text)
rawText in interface Sinkpublic void flush()
flush in interface Sinkpublic void close()
close in interface Sinkprotected void write(String text)
protected void content(String text)
protected void verbatimContent(String text)
public static String escapeHTML(String text)
text - the String to escape, may be null
HtmlTools.escapeHTML(String)public static String encodeFragment(String text)
text -
encodeURL(String)public static String encodeURL(String text)
text - the String to encode, may be null.
HtmlTools.encodeURL(String)public RenderingContext getRenderingContext()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||