org.apache.maven.doxia.module.docbook
public class DocBookSink extends AbstractXmlSink implements DocbookMarkup
Docbook
model.
Since: 1.0
Version: $Id: DocBookSink.java 568690 2007-08-22 16:30:06Z jdcasey $
Field Summary | |
---|---|
static String | DEFAULT_SGML_PUBLIC_ID DocBook V4.1 SGML public id: "-//OASIS//DTD DocBook V4.1//EN" |
static String | DEFAULT_XML_PUBLIC_ID DocBook XML V4.1.2 XML public id: "-//OASIS//DTD DocBook XML V4.1.2//EN" |
static String | DEFAULT_XML_SYSTEM_ID DocBook XML V4.0 XML system id: "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd" |
Constructor Summary | |
---|---|
DocBookSink(Writer out, boolean isBook) | |
DocBookSink(Writer writer) |
Method Summary | |
---|---|
void | anchor(String name) |
void | anchor_() |
void | author() |
void | author_() |
void | body_() |
void | bold() |
void | bold_() |
void | book() |
void | book_() |
void | close() |
protected void | content(String text)
Write SGML escaped text to output, not preserving white space.
|
void | date() |
void | date_() |
void | definedTerm() |
void | definedTerm_() |
void | definition() |
void | definitionList() |
void | definitionListItem() |
void | definitionListItem_() |
void | definitionList_() |
void | definition_() |
static String | escapeSGML(String text, boolean xmlMode) |
void | figureCaption() |
void | figureCaption_() |
void | figureGraphics(String name) |
void | figure_() |
void | flush() |
String | getBoldElement()
Returns the current boldBeginTag.
|
String | getEncoding()
Returns the current encoding.
|
String | getHorizontalRuleElement()
Returns the current horizontalRuleElement.
|
String | getItalicElement()
Returns the current italicBeginTag.
|
String | getLanguage()
Returns the current language.
|
String | getLineBreakElement()
Returns the current lineBreakElement.
|
String | getMonospacedElement()
Returns the current monospacedBeginTag.
|
String | getPageBreakElement()
Returns the current pageBreakElement.
|
String | getPublicId()
Returns the current publicId.
|
String | getStyleSheet()
Returns the current styleSheet.
|
String | getSystemId()
Returns the current systemId.
|
protected void | graphicElement() |
void | head() |
void | head_() |
void | horizontalRule() |
boolean | isXMLMode()
Returns the current xmlMode.
|
void | italic() |
void | italic_() |
void | lineBreak() |
void | link(String name) |
void | link_() |
void | list() |
void | listItem() |
void | listItem_() |
void | list_() |
protected void | markup(String text)
Write text to output, preserving white space.
|
void | monospaced() |
void | monospaced_() |
void | nonBreakingSpace() |
void | numberedList(int numbering) |
void | numberedListItem() |
void | numberedListItem_() |
void | numberedList_() |
void | pageBreak() |
void | paragraph() |
void | paragraph_() |
void | section1() |
void | section1_() |
void | section2() |
void | section2_() |
void | section3() |
void | section3_() |
void | section4() |
void | section4_() |
void | section5() |
void | section5_() |
void | sectionTitle() |
void | sectionTitle_() |
void | setBoldElement(String tag)
Sets the current boldBeginTag and constructs the corresponding end tag from it.
|
void | setEncoding(String enc)
Sets the encoding.
|
void | setHorizontalRuleElement(String element)
Sets the current horizontalRuleElement.
|
void | setItalicElement(String tag)
Sets the current italicBeginTag and constructs the corresponding end tag from it.
|
void | setLanguage(String language)
Sets the language.
|
void | setLineBreakElement(String element)
Sets the current lineBreakElement.
|
void | setMonospacedElement(String tag)
Sets the current monospacedBeginTag and constructs the corresponding end tag from it.
|
void | setPageBreakElement(String element)
Sets the current pageBreakElement.
|
void | setPublicId(String id)
Sets the publicId.
|
void | setStyleSheet(String sheet)
Sets the styleSheet.
|
void | setSystemId(String id)
Sets the systemId.
|
void | setXMLMode(boolean mode)
Sets the xml mode.
|
void | table() |
void | tableCaption() |
void | tableCaption_() |
void | tableCell() |
void | tableCell_() |
void | tableRow() |
void | tableRows(int[] justification, boolean grid) |
void | tableRows_() |
void | tableRow_() |
void | table_() |
void | text(String text) |
void | title() |
void | title_() |
void | verbatim(boolean boxed) |
protected void | verbatimContent(String text)
Write SGML escaped text to output, preserving white space.
|
void | verbatim_() |
protected void | write(String text) |
Parameters: writer the default writer.
See Also: ANCHOR_TAG
See Also: ANCHOR_TAG
See Also: CORPAUTHOR_TAG
See Also: CORPAUTHOR_TAG
See Also: ARTICLE_TAG
See Also: BOOK_TAG
See Also: BOOK_TAG
Parameters: text The text to write.
See Also: DATE_TAG
See Also: DATE_TAG
See Also: TERM_TAG
See Also: TERM_TAG
See Also: LISTITEM_TAG
See Also: VARIABLELIST_TAG
See Also: VARLISTENTRY_TAG
See Also: VARLISTENTRY_TAG
See Also: VARIABLELIST_TAG
See Also: LISTITEM_TAG
Parameters: text The text to escape. xmlMode xmlMode.
Returns: The escaped text.
See Also: FIGURE_TAG javax.swing.text.html.HTML.Tag#TITLE
See Also: FIGURE_TAG javax.swing.text.html.HTML.Tag#TITLE
Returns: the current boldBeginTag. Defaults to "
Returns: the current encoding.
Returns: the current horizontalRuleElement. Defaults to "".
Returns: the current italicBeginTag. Defaults to "
Returns: the current language.
Returns: the current lineBreakElement. Defaults to "".
Returns: the current monospacedBeginTag. Defaults to "
Returns: the current pageBreakElement. Defaults to "".
Returns: the current publicId.
Returns: the current styleSheet.
Returns: the current systemId.
See Also: DEFAULT_XML_PUBLIC_ID DEFAULT_SGML_PUBLIC_ID DEFAULT_XML_SYSTEM_ID ARTICLE_TAG
See Also: ARTICLEINFO_TAG
Returns: the current xmlMode.
See Also: ULINK_TAG URL_ATTRIBUTE LINK_TAG LINKEND_ATTRIBUTE
See Also: ITEMIZEDLIST_TAG
See Also: LISTITEM_TAG
See Also: LISTITEM_TAG
See Also: ITEMIZEDLIST_TAG
Parameters: text The text to write.
See Also: ORDEREDLIST_TAG NUMERATION_ATTRIBUTE
See Also: LISTITEM_TAG
See Also: LISTITEM_TAG
See Also: ORDEREDLIST_TAG
See Also: PARA_TAG
See Also: PARA_TAG
See Also: SECTION_TAG
See Also: SECTION_TAG
See Also: SECTION_TAG
See Also: SECTION_TAG
See Also: SECTION_TAG
See Also: SECTION_TAG
See Also: SECTION_TAG
See Also: SECTION_TAG
See Also: SECTION_TAG
See Also: SECTION_TAG
See Also: javax.swing.text.html.HTML.Tag#TITLE
See Also: javax.swing.text.html.HTML.Tag#TITLE
Parameters: tag the tag to set. If tag is null, the empty string is used.
Parameters: enc the encoding to set.
Parameters: element the element to set.
Parameters: tag the tag to set. If tag is null, the empty string is used.
Parameters: language the language to set.
Parameters: element the element to set.
Parameters: tag the tag to set. If tag is null, the empty string is used.
Parameters: element the element to set.
Parameters: id the publicId to set.
Parameters: sheet the styleSheet to set.
Parameters: id the systemId to set.
Parameters: mode the mode to set.
See Also: javax.swing.text.html.HTML.Tag#TABLE FRAME_ATTRIBUTE ROWSEP_ATTRIBUTE COLSEP_ATTRIBUTE javax.swing.text.html.HTML.Tag#TITLE
See Also: javax.swing.text.html.HTML.Tag#TITLE
See Also: ROW_TAG
See Also: TGROUP_TAG COLS_ATTRIBUTE COLSPEC_TAG
See Also: TGROUP_TAG TBODY_TAG
See Also: ROW_TAG
See Also: INFORMALTABLE_TAG FRAME_ATTRIBUTE ROWSEP_ATTRIBUTE COLSEP_ATTRIBUTE javax.swing.text.html.HTML.Tag#TABLE
See Also: ARTICLEINFO_TAG javax.swing.text.html.HTML.Tag#TITLE
See Also: javax.swing.text.html.HTML.Tag#TITLE
See Also: PROGRAMLISTING_TAG
Parameters: text The text to write.
See Also: PROGRAMLISTING_TAG