|
||||||||||
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
public class 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(java.io.Writer writer)
|
|
XhtmlSink(java.io.Writer writer,
RenderingContext renderingContext)
|
|
XhtmlSink(java.io.Writer writer,
RenderingContext renderingContext,
java.util.Map directives)
|
Method Summary | |
---|---|
void |
anchor_()
|
void |
anchor(java.lang.String name)
|
void |
author_()
|
void |
body_()
|
void |
body()
|
void |
bold_()
|
void |
bold()
|
void |
close()
|
protected void |
content(java.lang.String text)
|
void |
date_()
|
void |
definedTerm_()
|
void |
definedTerm()
|
void |
definition_()
|
void |
definition()
|
void |
definitionList_()
|
void |
definitionList()
|
static java.lang.String |
encodeFragment(java.lang.String text)
|
static java.lang.String |
encodeURL(java.lang.String text)
Forward to HtmlTools.encodeURL( text ). |
static java.lang.String |
escapeHTML(java.lang.String text)
Forward to HtmlTools.escapeHTML( text ). |
void |
figure_()
|
void |
figure()
|
void |
figureCaption_()
|
void |
figureCaption()
|
void |
figureGraphics(java.lang.String name)
|
void |
flush()
|
protected java.lang.StringBuffer |
getBuffer()
|
RenderingContext |
getRenderingContext()
|
void |
head_()
|
void |
head()
|
void |
horizontalRule()
|
void |
italic_()
|
void |
italic()
|
void |
lineBreak()
|
void |
link_()
|
void |
link(java.lang.String name)
|
void |
link(java.lang.String name,
java.lang.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(java.lang.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,
java.lang.String width)
|
void |
tableCell(java.lang.String width)
|
void |
tableHeaderCell_()
|
void |
tableHeaderCell()
|
void |
tableHeaderCell(java.lang.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(java.lang.String text)
|
void |
title_()
|
void |
title()
|
void |
verbatim_()
|
void |
verbatim(boolean boxed)
The default class style is source . |
protected void |
verbatimContent(java.lang.String text)
|
protected void |
write(java.lang.String text)
|
Methods inherited from class org.apache.maven.doxia.sink.AbstractXmlSink |
---|
writeEndTag, 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(java.io.Writer writer)
writer
- public XhtmlSink(java.io.Writer writer, RenderingContext renderingContext)
writer
- renderingContext
- public XhtmlSink(java.io.Writer writer, RenderingContext renderingContext, java.util.Map directives)
writer
- renderingContext
- directives
- Method Detail |
---|
protected java.lang.StringBuffer getBuffer()
protected void setHeadFlag(boolean headFlag)
headFlag
- an header flagprotected void resetState()
protected void resetBuffer()
public void head()
head
in interface org.apache.maven.doxia.sink.Sink
head
in class org.apache.maven.doxia.sink.SinkAdapter
public void head_()
head_
in interface org.apache.maven.doxia.sink.Sink
head_
in class org.apache.maven.doxia.sink.SinkAdapter
public void title()
title
in interface org.apache.maven.doxia.sink.Sink
title
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.TITLE
public void title_()
title_
in interface org.apache.maven.doxia.sink.Sink
title_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.TITLE
public void author_()
author_
in interface org.apache.maven.doxia.sink.Sink
author_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.META
public void date_()
date_
in interface org.apache.maven.doxia.sink.Sink
date_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.META
public void body()
body
in interface org.apache.maven.doxia.sink.Sink
body
in class org.apache.maven.doxia.sink.SinkAdapter
public void body_()
body_
in interface org.apache.maven.doxia.sink.Sink
body_
in class org.apache.maven.doxia.sink.SinkAdapter
public void section1()
section
.
section1
in interface org.apache.maven.doxia.sink.Sink
section1
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void section2()
section
.
section2
in interface org.apache.maven.doxia.sink.Sink
section2
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void section3()
section
.
section3
in interface org.apache.maven.doxia.sink.Sink
section3
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void section4()
section
.
section4
in interface org.apache.maven.doxia.sink.Sink
section4
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void section5()
section
.
section5
in interface org.apache.maven.doxia.sink.Sink
section5
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void section1_()
section1_
in interface org.apache.maven.doxia.sink.Sink
section1_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void section2_()
section2_
in interface org.apache.maven.doxia.sink.Sink
section2_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void section3_()
section3_
in interface org.apache.maven.doxia.sink.Sink
section3_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void section4_()
section4_
in interface org.apache.maven.doxia.sink.Sink
section4_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void section5_()
section5_
in interface org.apache.maven.doxia.sink.Sink
section5_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
public void sectionTitle1()
sectionTitle1
in interface org.apache.maven.doxia.sink.Sink
sectionTitle1
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H2
public void sectionTitle1_()
sectionTitle1_
in interface org.apache.maven.doxia.sink.Sink
sectionTitle1_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H2
public void sectionTitle2()
sectionTitle2
in interface org.apache.maven.doxia.sink.Sink
sectionTitle2
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H3
public void sectionTitle2_()
sectionTitle2_
in interface org.apache.maven.doxia.sink.Sink
sectionTitle2_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H3
public void sectionTitle3()
sectionTitle3
in interface org.apache.maven.doxia.sink.Sink
sectionTitle3
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H4
public void sectionTitle3_()
sectionTitle3_
in interface org.apache.maven.doxia.sink.Sink
sectionTitle3_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H4
public void sectionTitle4()
sectionTitle4
in interface org.apache.maven.doxia.sink.Sink
sectionTitle4
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H5
public void sectionTitle4_()
sectionTitle4_
in interface org.apache.maven.doxia.sink.Sink
sectionTitle4_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H5
public void sectionTitle5()
sectionTitle5
in interface org.apache.maven.doxia.sink.Sink
sectionTitle5
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H6
public void sectionTitle5_()
sectionTitle5_
in interface org.apache.maven.doxia.sink.Sink
sectionTitle5_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.H6
public void list()
list
in interface org.apache.maven.doxia.sink.Sink
list
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.UL
public void list_()
list_
in interface org.apache.maven.doxia.sink.Sink
list_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.UL
public void listItem()
listItem
in interface org.apache.maven.doxia.sink.Sink
listItem
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.LI
public void listItem_()
listItem_
in interface org.apache.maven.doxia.sink.Sink
listItem_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.LI
public void numberedList(int numbering)
numberedList
in interface org.apache.maven.doxia.sink.Sink
numberedList
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.OL
public void numberedList_()
numberedList_
in interface org.apache.maven.doxia.sink.Sink
numberedList_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.OL
public void numberedListItem()
numberedListItem
in interface org.apache.maven.doxia.sink.Sink
numberedListItem
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.LI
public void numberedListItem_()
numberedListItem_
in interface org.apache.maven.doxia.sink.Sink
numberedListItem_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.LI
public void definitionList()
definitionList
in interface org.apache.maven.doxia.sink.Sink
definitionList
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DL
public void definitionList_()
definitionList_
in interface org.apache.maven.doxia.sink.Sink
definitionList_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DL
public void definedTerm()
definedTerm
in interface org.apache.maven.doxia.sink.Sink
definedTerm
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DT
public void definedTerm_()
definedTerm_
in interface org.apache.maven.doxia.sink.Sink
definedTerm_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DT
public void definition()
definition
in interface org.apache.maven.doxia.sink.Sink
definition
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DD
public void definition_()
definition_
in interface org.apache.maven.doxia.sink.Sink
definition_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DD
public void paragraph()
paragraph
in interface org.apache.maven.doxia.sink.Sink
paragraph
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.P
public void paragraph_()
paragraph_
in interface org.apache.maven.doxia.sink.Sink
paragraph_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.P
public void verbatim(boolean boxed)
source
.
verbatim
in interface org.apache.maven.doxia.sink.Sink
verbatim
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
,
HTML.Tag.PRE
public void verbatim_()
verbatim_
in interface org.apache.maven.doxia.sink.Sink
verbatim_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.DIV
,
HTML.Tag.PRE
public void horizontalRule()
horizontalRule
in interface org.apache.maven.doxia.sink.Sink
horizontalRule
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.HR
public void table()
bodyTable
.
table
in interface org.apache.maven.doxia.sink.Sink
table
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.TABLE
public void table_()
table_
in interface org.apache.maven.doxia.sink.Sink
table_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.TABLE
public void tableRows(int[] justification, boolean grid)
tableRows
in interface org.apache.maven.doxia.sink.Sink
tableRows
in class org.apache.maven.doxia.sink.SinkAdapter
XhtmlMarkup.TBODY_TAG
public void tableRows_()
tableRows_
in interface org.apache.maven.doxia.sink.Sink
tableRows_
in class org.apache.maven.doxia.sink.SinkAdapter
XhtmlMarkup.TBODY_TAG
public void tableRow()
a
or b
depending the row id.
tableRow
in interface org.apache.maven.doxia.sink.Sink
tableRow
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.TR
public void tableRow_()
tableRow_
in interface org.apache.maven.doxia.sink.Sink
tableRow_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.TR
public void tableCell()
tableCell
in interface org.apache.maven.doxia.sink.Sink
tableCell
in class org.apache.maven.doxia.sink.SinkAdapter
public void tableHeaderCell()
tableHeaderCell
in interface org.apache.maven.doxia.sink.Sink
tableHeaderCell
in class org.apache.maven.doxia.sink.SinkAdapter
public void tableCell(boolean headerRow)
headerRow
- true if it is an header rowHTML.Tag.TH
,
HTML.Tag.TD
public void tableCell(java.lang.String width)
tableCell
in interface org.apache.maven.doxia.sink.Sink
tableCell
in class org.apache.maven.doxia.sink.SinkAdapter
public void tableHeaderCell(java.lang.String width)
tableHeaderCell
in interface org.apache.maven.doxia.sink.Sink
tableHeaderCell
in class org.apache.maven.doxia.sink.SinkAdapter
public void tableCell(boolean headerRow, java.lang.String width)
headerRow
- true if it is an header rowwidth
- the cell sizeHTML.Tag.TH
,
HTML.Tag.TD
public void tableCell_()
tableCell_
in interface org.apache.maven.doxia.sink.Sink
tableCell_
in class org.apache.maven.doxia.sink.SinkAdapter
public void tableHeaderCell_()
tableHeaderCell_
in interface org.apache.maven.doxia.sink.Sink
tableHeaderCell_
in class org.apache.maven.doxia.sink.SinkAdapter
public void tableCell_(boolean headerRow)
headerRow
- true if it is an header rowHTML.Tag.TH
,
HTML.Tag.TD
public void tableCaption()
tableCaption
in interface org.apache.maven.doxia.sink.Sink
tableCaption
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.CAPTION
public void tableCaption_()
tableCaption_
in interface org.apache.maven.doxia.sink.Sink
tableCaption_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.CAPTION
public void figure()
figure
in interface org.apache.maven.doxia.sink.Sink
figure
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.IMG
public void figure_()
figure_
in interface org.apache.maven.doxia.sink.Sink
figure_
in class org.apache.maven.doxia.sink.SinkAdapter
public void figureCaption()
figureCaption
in interface org.apache.maven.doxia.sink.Sink
figureCaption
in class org.apache.maven.doxia.sink.SinkAdapter
public void figureCaption_()
figureCaption_
in interface org.apache.maven.doxia.sink.Sink
figureCaption_
in class org.apache.maven.doxia.sink.SinkAdapter
public void figureGraphics(java.lang.String name)
figureGraphics
in interface org.apache.maven.doxia.sink.Sink
figureGraphics
in class org.apache.maven.doxia.sink.SinkAdapter
public void anchor(java.lang.String name)
anchor
in interface org.apache.maven.doxia.sink.Sink
anchor
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.A
public void anchor_()
anchor_
in interface org.apache.maven.doxia.sink.Sink
anchor_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.A
public void link(java.lang.String name)
link
in interface org.apache.maven.doxia.sink.Sink
link
in class org.apache.maven.doxia.sink.SinkAdapter
public void link(java.lang.String name, java.lang.String target)
externalLink
.
name
- target
- HTML.Tag.A
public void link_()
link_
in interface org.apache.maven.doxia.sink.Sink
link_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.A
public void italic()
italic
in interface org.apache.maven.doxia.sink.Sink
italic
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.I
public void italic_()
italic_
in interface org.apache.maven.doxia.sink.Sink
italic_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.I
public void bold()
bold
in interface org.apache.maven.doxia.sink.Sink
bold
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.B
public void bold_()
bold_
in interface org.apache.maven.doxia.sink.Sink
bold_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.B
public void monospaced()
monospaced
in interface org.apache.maven.doxia.sink.Sink
monospaced
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.TT
public void monospaced_()
monospaced_
in interface org.apache.maven.doxia.sink.Sink
monospaced_
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.TT
public void lineBreak()
lineBreak
in interface org.apache.maven.doxia.sink.Sink
lineBreak
in class org.apache.maven.doxia.sink.SinkAdapter
HTML.Tag.BR
public void nonBreakingSpace()
nonBreakingSpace
in interface org.apache.maven.doxia.sink.Sink
nonBreakingSpace
in class org.apache.maven.doxia.sink.SinkAdapter
public void text(java.lang.String text)
text
in interface org.apache.maven.doxia.sink.Sink
text
in class org.apache.maven.doxia.sink.SinkAdapter
public void rawText(java.lang.String text)
rawText
in interface org.apache.maven.doxia.sink.Sink
rawText
in class org.apache.maven.doxia.sink.SinkAdapter
public void flush()
flush
in interface org.apache.maven.doxia.sink.Sink
flush
in class org.apache.maven.doxia.sink.SinkAdapter
public void close()
close
in interface org.apache.maven.doxia.sink.Sink
close
in class org.apache.maven.doxia.sink.SinkAdapter
protected void write(java.lang.String text)
write
in class org.apache.maven.doxia.sink.AbstractXmlSink
protected void content(java.lang.String text)
protected void verbatimContent(java.lang.String text)
public static java.lang.String escapeHTML(java.lang.String text)
text
- the String to escape, may be null
HtmlTools.escapeHTML(String)
public static java.lang.String encodeFragment(java.lang.String text)
text
-
encodeURL(String)
public static java.lang.String encodeURL(java.lang.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 |