|
||||||||||
| 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.module.xdoc.XmlWriterXdocSink
public class XmlWriterXdocSink
A doxia Sink which produces an xdoc document.
| Field Summary |
|---|
| 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 | |
|---|---|
XmlWriterXdocSink(org.codehaus.plexus.util.xml.XMLWriter out)
Constructor, initialize the XMLWriter. |
|
| Method Summary | |
|---|---|
void |
anchor_()
Ending an anchor element. |
void |
anchor(java.lang.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(java.lang.String text)
Write HTML escaped text to output. |
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 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 |
flush()
Flush the writer or the stream, if needed. |
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(java.lang.String name)
Starting an element which defines a link. |
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. |
protected void |
resetState()
Reset all variables. |
void |
section1_()
Ending a first heading element. |
void |
section1()
Starting a first heading element which contains the topic of the section. |
void |
section2_()
Ending a second heading element. |
void |
section2()
Starting a second heading element which contains the topic of the section. |
void |
section3_()
Ending a third heading element. |
void |
section3()
Starting a third heading element which contains the topic of the section. |
void |
section4_()
Ending a 4th heading element. |
void |
section4()
Starting a 4th heading element which contains the topic of the section. |
void |
section5_()
Ending a 5th heading element. |
void |
section5()
Starting a 5th heading element which contains the topic of the section. |
void |
sectionTitle_()
Ending a title heading element. |
void |
sectionTitle()
Starting a title heading element. |
void |
table_()
Ending a table element. |
void |
table()
Starting a table element for marking up tabular information in a document. |
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)
Ends a table cell. |
void |
tableCell()
Starting a cell element which defines a cell that contains data. |
void |
tableCell(boolean headerRow)
Starts a table cell. |
void |
tableHeaderCell_()
Ending a cell header element. |
void |
tableHeaderCell()
Starting a cell element which defines a cell that contains header information. |
void |
tableRow_()
Ending a row element. |
void |
tableRow()
Starting a row element which acts as a container for a row of table cells. |
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(java.lang.String text)
Adding a text. |
void |
title_()
Ending the title element. |
void |
verbatim_()
Ending a verbatim element. |
void |
verbatim(boolean boxed)
Starting an element which indicates that whitespace in the enclosed text has semantic relevance. |
protected void |
verbatimContent(java.lang.String text)
Write text to output, preserving white space. |
| Methods inherited from class org.apache.maven.doxia.sink.SinkAdapter |
|---|
author, date, definitionListItem_, definitionListItem, figure_, figure, figureCaption_, figureCaption, figureGraphics, pageBreak, rawText, sectionTitle1_, sectionTitle1, sectionTitle2_, sectionTitle2, sectionTitle3_, sectionTitle3, sectionTitle4_, sectionTitle4, sectionTitle5_, sectionTitle5, tableCell, tableHeaderCell, title |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlWriterXdocSink(org.codehaus.plexus.util.xml.XMLWriter out)
out - The XMLWriter to write the result.| Method Detail |
|---|
protected void resetState()
public void head()
head in interface Sinkhead in class SinkAdapterpublic void head_()
head_ in interface Sinkhead_ in class SinkAdapterpublic void title_()
title_ in interface Sinktitle_ in class SinkAdapterpublic void author_()
author_ in interface Sinkauthor_ in class SinkAdapterpublic void date_()
date_ in interface Sinkdate_ in class SinkAdapterpublic void body()
body in interface Sinkbody in class SinkAdapterpublic void body_()
body_ in interface Sinkbody_ in class SinkAdapterpublic void section1()
section1 in interface Sinksection1 in class SinkAdapterpublic void section2()
section2 in interface Sinksection2 in class SinkAdapterpublic void section3()
section3 in interface Sinksection3 in class SinkAdapterpublic void section4()
section4 in interface Sinksection4 in class SinkAdapterpublic void section5()
section5 in interface Sinksection5 in class SinkAdapterpublic void sectionTitle()
sectionTitle in interface SinksectionTitle in class SinkAdapterpublic void sectionTitle_()
sectionTitle_ in interface SinksectionTitle_ in class SinkAdapterpublic void section1_()
section1_ in interface Sinksection1_ in class SinkAdapterpublic void section2_()
section2_ in interface Sinksection2_ in class SinkAdapterpublic void section3_()
section3_ in interface Sinksection3_ in class SinkAdapterpublic void section4_()
section4_ in interface Sinksection4_ in class SinkAdapterpublic void section5_()
section5_ in interface Sinksection5_ in class SinkAdapterpublic void list()
list in interface Sinklist in class SinkAdapterpublic void list_()
list_ in interface Sinklist_ in class SinkAdapterpublic void listItem()
listItem in interface SinklistItem in class SinkAdapterpublic void listItem_()
listItem_ in interface SinklistItem_ in class SinkAdapterpublic void numberedList(int numbering)
numberedList in interface SinknumberedList in class SinkAdapternumbering - the numbering wantedSink.NUMBERING_DECIMAL,
Sink.NUMBERING_LOWER_ALPHA,
Sink.NUMBERING_LOWER_ROMAN,
Sink.NUMBERING_UPPER_ALPHA,
Sink.NUMBERING_UPPER_ROMANpublic void numberedList_()
numberedList_ in interface SinknumberedList_ in class SinkAdapterpublic void numberedListItem()
numberedListItem in interface SinknumberedListItem in class SinkAdapterpublic void numberedListItem_()
numberedListItem_ in interface SinknumberedListItem_ in class SinkAdapterpublic void definitionList()
definitionList in interface SinkdefinitionList in class SinkAdapterpublic void definitionList_()
definitionList_ in interface SinkdefinitionList_ in class SinkAdapterpublic void definedTerm()
definedTerm in interface SinkdefinedTerm in class SinkAdapterpublic void definedTerm_()
definedTerm_ in interface SinkdefinedTerm_ in class SinkAdapterpublic void definition()
definition in interface Sinkdefinition in class SinkAdapterpublic void definition_()
definition_ in interface Sinkdefinition_ in class SinkAdapterpublic void paragraph()
paragraph in interface Sinkparagraph in class SinkAdapterpublic void paragraph_()
paragraph_ in interface Sinkparagraph_ in class SinkAdapterpublic void verbatim(boolean boxed)
verbatim in interface Sinkverbatim in class SinkAdapterboxed - true to add a box, false otherwisepublic void verbatim_()
verbatim_ in interface Sinkverbatim_ in class SinkAdapterpublic void horizontalRule()
horizontalRule in interface SinkhorizontalRule in class SinkAdapterpublic void table()
table in interface Sinktable in class SinkAdapterpublic void table_()
table_ in interface Sinktable_ in class SinkAdapter
public void tableRows(int[] justification,
boolean grid)
tableRows in interface SinktableRows in class SinkAdapterjustification - the justification wantedgrid - true to provide a grid, false otherwisepublic void tableRows_()
tableRows_ in interface SinktableRows_ in class SinkAdapterpublic void tableRow()
tableRow in interface SinktableRow in class SinkAdapterpublic void tableRow_()
tableRow_ in interface SinktableRow_ in class SinkAdapterpublic void tableCell()
tableCell in interface SinktableCell in class SinkAdapterpublic void tableHeaderCell()
tableHeaderCell in interface SinktableHeaderCell in class SinkAdapterpublic void tableCell(boolean headerRow)
headerRow - If this cell is part of a header row.public void tableCell_()
tableCell_ in interface SinktableCell_ in class SinkAdapterpublic void tableHeaderCell_()
tableHeaderCell_ in interface SinktableHeaderCell_ in class SinkAdapterpublic void tableCell_(boolean headerRow)
headerRow - If this cell is part of a header row.public void tableCaption()
tableCaption in interface SinktableCaption in class SinkAdapterpublic void tableCaption_()
tableCaption_ in interface SinktableCaption_ in class SinkAdapterpublic void anchor(java.lang.String name)
anchor in interface Sinkanchor in class SinkAdaptername - the name of the anchorpublic void anchor_()
anchor_ in interface Sinkanchor_ in class SinkAdapterpublic void link(java.lang.String name)
link in interface Sinklink in class SinkAdaptername - the name of the linkpublic void link_()
link_ in interface Sinklink_ in class SinkAdapterpublic void italic()
italic in interface Sinkitalic in class SinkAdapterpublic void italic_()
italic_ in interface Sinkitalic_ in class SinkAdapterpublic void bold()
bold in interface Sinkbold in class SinkAdapterpublic void bold_()
bold_ in interface Sinkbold_ in class SinkAdapterpublic void monospaced()
monospaced in interface Sinkmonospaced in class SinkAdapterpublic void monospaced_()
monospaced_ in interface Sinkmonospaced_ in class SinkAdapterpublic void lineBreak()
lineBreak in interface SinklineBreak in class SinkAdapterpublic void nonBreakingSpace()
nonBreakingSpace in interface SinknonBreakingSpace in class SinkAdapterpublic void text(java.lang.String text)
text in interface Sinktext in class SinkAdaptertext - The text to write.protected void content(java.lang.String text)
text - The text to write.protected void verbatimContent(java.lang.String text)
text - The text to write.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 encodeURL(java.lang.String text)
text - the String to encode, may be null.
HtmlTools.encodeURL(String).public void flush()
flush in interface Sinkflush in class SinkAdapterpublic void close()
close in interface Sinkclose in class SinkAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||