|
||||||||||
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(Writer writer)
|
|
XhtmlSink(Writer writer,
RenderingContext renderingContext)
|
|
XhtmlSink(Writer writer,
RenderingContext renderingContext,
Map directives)
|
Method Summary | |
---|---|
void |
anchor_()
Ending an anchor element. |
void |
anchor(String name)
Starting an element which defines an anchor. |
void |
author_()
Ending the author element. |
void |
body_()
Ending the body element. |
void |
body()
Starting the body of a document which contains the document's content. |
void |
bold_()
Ending a bold element. |
void |
bold()
Starting a bold element. |
void |
close()
Close the writer or the stream, if needed. |
protected void |
content(String text)
|
void |
date_()
Ending the date element. |
void |
definedTerm_()
Starting a definition term element within a definition list. |
void |
definedTerm()
Starting a definition term element within a definition list. |
void |
definition_()
Ending a definition element within a definition list. |
void |
definition()
Starting a definition element within a definition list. |
void |
definitionList_()
Ending a definition list element. |
void |
definitionList()
Starting a definition list element. |
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_()
Ending a basic image embedding element. |
void |
figure()
Starting a basic image embedding element. |
void |
figureCaption_()
Ending a caption of an image. |
void |
figureCaption()
Starting a caption of an image element. |
void |
figureGraphics(String name)
Adding a source of a graphic. |
void |
flush()
Flush the writer or the stream, if needed. |
protected StringBuffer |
getBuffer()
|
RenderingContext |
getRenderingContext()
|
void |
head_()
Ending the head element. |
void |
head()
Starting the head element which contains information about the current document, such as its title, that is not considered document content. |
void |
horizontalRule()
Adding a separator of sections from a text to each other. |
void |
italic_()
Ending an italic element. |
void |
italic()
Starting an italic element. |
void |
lineBreak()
Adding a line breaks. |
void |
link_()
Ending a link element. |
void |
link(String name)
Starting an element which defines a link. |
void |
link(String name,
String target)
The default style class for external link is externalLink . |
void |
list_()
Ending an unordered list element. |
void |
list()
Starting an unordered list element. |
void |
listItem_()
Ending a list item element within an unordered list. |
void |
listItem()
Starting a list item element within an unordered list. |
void |
monospaced_()
Ending a monospaced element. |
void |
monospaced()
Starting a monospaced element. |
void |
nonBreakingSpace()
Adding a non breaking space, ie a space without any special formatting operations. |
void |
numberedList_()
Ending an ordered list element. |
void |
numberedList(int numbering)
Starting an ordered list element. |
void |
numberedListItem_()
Ending a list item element within an ordered list. |
void |
numberedListItem()
Starting a list item element within an ordered list. |
void |
paragraph_()
Ending a paragraph element. |
void |
paragraph()
Starting an element which represents a paragraph. |
void |
rawText(String text)
Adding a raw text, ie a text without any special formatting operations. |
protected void |
resetBuffer()
Reset the buffer. |
protected void |
resetState()
Reset all the Sink state. |
void |
section1_()
Ending a first heading element. |
void |
section1()
The default class style is section . |
void |
section2_()
Ending a second heading element. |
void |
section2()
The default class style is section . |
void |
section3_()
Ending a third heading element. |
void |
section3()
The default class style is section . |
void |
section4_()
Ending a 4th heading element. |
void |
section4()
The default class style is section . |
void |
section5_()
Ending a 5th heading element. |
void |
section5()
The default class style is section . |
void |
sectionTitle1_()
Ending a first title heading element. |
void |
sectionTitle1()
Starting a first title heading element. |
void |
sectionTitle2_()
Ending a second title heading element. |
void |
sectionTitle2()
Starting a second title heading element. |
void |
sectionTitle3_()
Ending a third title heading element. |
void |
sectionTitle3()
Starting a third title heading element. |
void |
sectionTitle4_()
Ending a 4th title heading element. |
void |
sectionTitle4()
Starting a 4th title heading element. |
void |
sectionTitle5_()
Ending a 5th title heading element. |
void |
sectionTitle5()
Starting a 5th title heading element. |
protected void |
setHeadFlag(boolean headFlag)
|
void |
table_()
Ending a table element. |
void |
table()
The default class style is bodyTable . |
void |
tableCaption_()
Ending a caption element of a table. |
void |
tableCaption()
Starting a caption element of a table. |
void |
tableCell_()
Ending a cell element. |
void |
tableCell_(boolean headerRow)
|
void |
tableCell()
Starting a cell element which defines a cell that contains data. |
void |
tableCell(boolean headerRow)
|
void |
tableCell(boolean headerRow,
String width)
|
void |
tableCell(String width)
Starting a cell element which defines a cell that contains data. |
void |
tableHeaderCell_()
Ending a cell header element. |
void |
tableHeaderCell()
Starting a cell element which defines a cell that contains header information. |
void |
tableHeaderCell(String width)
Starting a cell element which defines a cell that contains header information. |
void |
tableRow_()
Ending a row element. |
void |
tableRow()
The default class style is a or b depending the row id. |
void |
tableRows_()
Ending an element contains rows of table data. |
void |
tableRows(int[] justification,
boolean grid)
Starting an element contains rows of table data. |
void |
text(String text)
Adding a text. |
void |
title_()
Ending the title element. |
void |
title()
Starting the title element which is used to identify the document. |
void |
verbatim_()
Ending a verbatim element. |
void |
verbatim(boolean boxed)
The default class style is source . |
protected void |
verbatimContent(String text)
|
protected void |
write(String text)
TODO DOXIA-59 Need to uniform writing |
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 Sink
head
in class SinkAdapter
public void head_()
head_
in interface Sink
head_
in class SinkAdapter
public void title()
title
in interface Sink
title
in class SinkAdapter
HTML.Tag.TITLE
public void title_()
title_
in interface Sink
title_
in class SinkAdapter
HTML.Tag.TITLE
public void author_()
author_
in interface Sink
author_
in class SinkAdapter
HTML.Tag.META
public void date_()
date_
in interface Sink
date_
in class SinkAdapter
HTML.Tag.META
public void body()
body
in interface Sink
body
in class SinkAdapter
public void body_()
body_
in interface Sink
body_
in class SinkAdapter
public void section1()
section
.
Starting a first heading element which contains the topic of the section.
section1
in interface Sink
section1
in class SinkAdapter
HTML.Tag.DIV
public void section2()
section
.
Starting a second heading element which contains the topic of the section.
section2
in interface Sink
section2
in class SinkAdapter
HTML.Tag.DIV
public void section3()
section
.
Starting a third heading element which contains the topic of the section.
section3
in interface Sink
section3
in class SinkAdapter
HTML.Tag.DIV
public void section4()
section
.
Starting a 4th heading element which contains the topic of the section.
section4
in interface Sink
section4
in class SinkAdapter
HTML.Tag.DIV
public void section5()
section
.
Starting a 5th heading element which contains the topic of the section.
section5
in interface Sink
section5
in class SinkAdapter
HTML.Tag.DIV
public void section1_()
section1_
in interface Sink
section1_
in class SinkAdapter
HTML.Tag.DIV
public void section2_()
section2_
in interface Sink
section2_
in class SinkAdapter
HTML.Tag.DIV
public void section3_()
section3_
in interface Sink
section3_
in class SinkAdapter
HTML.Tag.DIV
public void section4_()
section4_
in interface Sink
section4_
in class SinkAdapter
HTML.Tag.DIV
public void section5_()
section5_
in interface Sink
section5_
in class SinkAdapter
HTML.Tag.DIV
public void sectionTitle1()
sectionTitle1
in interface Sink
sectionTitle1
in class SinkAdapter
HTML.Tag.H2
public void sectionTitle1_()
sectionTitle1_
in interface Sink
sectionTitle1_
in class SinkAdapter
HTML.Tag.H2
public void sectionTitle2()
sectionTitle2
in interface Sink
sectionTitle2
in class SinkAdapter
HTML.Tag.H3
public void sectionTitle2_()
sectionTitle2_
in interface Sink
sectionTitle2_
in class SinkAdapter
HTML.Tag.H3
public void sectionTitle3()
sectionTitle3
in interface Sink
sectionTitle3
in class SinkAdapter
HTML.Tag.H4
public void sectionTitle3_()
sectionTitle3_
in interface Sink
sectionTitle3_
in class SinkAdapter
HTML.Tag.H4
public void sectionTitle4()
sectionTitle4
in interface Sink
sectionTitle4
in class SinkAdapter
HTML.Tag.H5
public void sectionTitle4_()
sectionTitle4_
in interface Sink
sectionTitle4_
in class SinkAdapter
HTML.Tag.H5
public void sectionTitle5()
sectionTitle5
in interface Sink
sectionTitle5
in class SinkAdapter
HTML.Tag.H6
public void sectionTitle5_()
sectionTitle5_
in interface Sink
sectionTitle5_
in class SinkAdapter
HTML.Tag.H6
public void list()
list
in interface Sink
list
in class SinkAdapter
HTML.Tag.UL
public void list_()
list_
in interface Sink
list_
in class SinkAdapter
HTML.Tag.UL
public void listItem()
listItem
in interface Sink
listItem
in class SinkAdapter
HTML.Tag.LI
public void listItem_()
listItem_
in interface Sink
listItem_
in class SinkAdapter
HTML.Tag.LI
public void numberedList(int numbering)
numberedList
in interface Sink
numberedList
in class SinkAdapter
numbering
- the numbering wantedHTML.Tag.OL
public void numberedList_()
numberedList_
in interface Sink
numberedList_
in class SinkAdapter
HTML.Tag.OL
public void numberedListItem()
numberedListItem
in interface Sink
numberedListItem
in class SinkAdapter
HTML.Tag.LI
public void numberedListItem_()
numberedListItem_
in interface Sink
numberedListItem_
in class SinkAdapter
HTML.Tag.LI
public void definitionList()
definitionList
in interface Sink
definitionList
in class SinkAdapter
HTML.Tag.DL
public void definitionList_()
definitionList_
in interface Sink
definitionList_
in class SinkAdapter
HTML.Tag.DL
public void definedTerm()
definedTerm
in interface Sink
definedTerm
in class SinkAdapter
HTML.Tag.DT
public void definedTerm_()
definedTerm_
in interface Sink
definedTerm_
in class SinkAdapter
HTML.Tag.DT
public void definition()
definition
in interface Sink
definition
in class SinkAdapter
HTML.Tag.DD
public void definition_()
definition_
in interface Sink
definition_
in class SinkAdapter
HTML.Tag.DD
public void paragraph()
paragraph
in interface Sink
paragraph
in class SinkAdapter
HTML.Tag.P
public void paragraph_()
paragraph_
in interface Sink
paragraph_
in class SinkAdapter
HTML.Tag.P
public void verbatim(boolean boxed)
source
.
Starting an element which indicates that whitespace in the enclosed text has semantic relevance.
verbatim
in interface Sink
verbatim
in class SinkAdapter
boxed
- true to add a box, false otherwiseHTML.Tag.DIV
,
HTML.Tag.PRE
public void verbatim_()
verbatim_
in interface Sink
verbatim_
in class SinkAdapter
HTML.Tag.DIV
,
HTML.Tag.PRE
public void horizontalRule()
horizontalRule
in interface Sink
horizontalRule
in class SinkAdapter
HTML.Tag.HR
public void table()
bodyTable
.
Starting a table element for marking up tabular information in a document.
table
in interface Sink
table
in class SinkAdapter
HTML.Tag.TABLE
public void table_()
table_
in interface Sink
table_
in class SinkAdapter
HTML.Tag.TABLE
public void tableRows(int[] justification, boolean grid)
tableRows
in interface Sink
tableRows
in class SinkAdapter
justification
- the justification wantedgrid
- true to provide a grid, false otherwiseXhtmlMarkup.TBODY_TAG
public void tableRows_()
tableRows_
in interface Sink
tableRows_
in class SinkAdapter
XhtmlMarkup.TBODY_TAG
public void tableRow()
a
or b
depending the row id.
Starting a row element which acts as a container for a row of table cells.
tableRow
in interface Sink
tableRow
in class SinkAdapter
HTML.Tag.TR
public void tableRow_()
tableRow_
in interface Sink
tableRow_
in class SinkAdapter
HTML.Tag.TR
public void tableCell()
tableCell
in interface Sink
tableCell
in class SinkAdapter
public void tableHeaderCell()
tableHeaderCell
in interface Sink
tableHeaderCell
in class SinkAdapter
public void tableCell(boolean headerRow)
headerRow
- true if it is an header rowHTML.Tag.TH
,
HTML.Tag.TD
public void tableCell(String width)
tableCell
in interface Sink
tableCell
in class SinkAdapter
width
- the size of the cellpublic void tableHeaderCell(String width)
tableHeaderCell
in interface Sink
tableHeaderCell
in class SinkAdapter
width
- the size of the header cellpublic void tableCell(boolean headerRow, String width)
headerRow
- true if it is an header rowwidth
- the cell sizeHTML.Tag.TH
,
HTML.Tag.TD
public void tableCell_()
tableCell_
in interface Sink
tableCell_
in class SinkAdapter
public void tableHeaderCell_()
tableHeaderCell_
in interface Sink
tableHeaderCell_
in class 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 Sink
tableCaption
in class SinkAdapter
HTML.Tag.CAPTION
public void tableCaption_()
tableCaption_
in interface Sink
tableCaption_
in class SinkAdapter
HTML.Tag.CAPTION
public void figure()
figure
in interface Sink
figure
in class SinkAdapter
HTML.Tag.IMG
public void figure_()
figure_
in interface Sink
figure_
in class SinkAdapter
public void figureCaption()
figureCaption
in interface Sink
figureCaption
in class SinkAdapter
public void figureCaption_()
figureCaption_
in interface Sink
figureCaption_
in class SinkAdapter
public void figureGraphics(String name)
figureGraphics
in interface Sink
figureGraphics
in class SinkAdapter
name
- the sourcepublic void anchor(String name)
anchor
in interface Sink
anchor
in class SinkAdapter
name
- the name of the anchorHTML.Tag.A
public void anchor_()
anchor_
in interface Sink
anchor_
in class SinkAdapter
HTML.Tag.A
public void link(String name)
link
in interface Sink
link
in class SinkAdapter
name
- the name of the linkpublic void link(String name, String target)
externalLink
.
name
- target
- HTML.Tag.A
public void link_()
link_
in interface Sink
link_
in class SinkAdapter
HTML.Tag.A
public void italic()
italic
in interface Sink
italic
in class SinkAdapter
HTML.Tag.I
public void italic_()
italic_
in interface Sink
italic_
in class SinkAdapter
HTML.Tag.I
public void bold()
bold
in interface Sink
bold
in class SinkAdapter
HTML.Tag.B
public void bold_()
bold_
in interface Sink
bold_
in class SinkAdapter
HTML.Tag.B
public void monospaced()
monospaced
in interface Sink
monospaced
in class SinkAdapter
HTML.Tag.TT
public void monospaced_()
monospaced_
in interface Sink
monospaced_
in class SinkAdapter
HTML.Tag.TT
public void lineBreak()
lineBreak
in interface Sink
lineBreak
in class SinkAdapter
HTML.Tag.BR
public void nonBreakingSpace()
nonBreakingSpace
in interface Sink
nonBreakingSpace
in class SinkAdapter
public void text(String text)
text
in interface Sink
text
in class SinkAdapter
text
- The text to write.public void rawText(String text)
rawText
in interface Sink
rawText
in class SinkAdapter
text
- The text to write.public void flush()
flush
in interface Sink
flush
in class SinkAdapter
public void close()
close
in interface Sink
close
in class SinkAdapter
protected void write(String text)
write
in class AbstractXmlSink
text
- the given text to writeprotected 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 |