public class DocBookSink extends AbstractXmlSink implements DocbookMarkup, SimplifiedDocbookMarkup
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SGML_PUBLIC_ID
Deprecated.
since 1.1, use
DocbookMarkup.DEFAULT_SGML_PUBLIC_ID instead of. |
static String |
DEFAULT_SGML_SYSTEM_ID
Deprecated.
since 1.1, use
DocbookMarkup.DEFAULT_SGML_SYSTEM_ID instead of. |
static String |
DEFAULT_XML_PUBLIC_ID
Deprecated.
since 1.1, use
DocbookMarkup.DEFAULT_XML_PUBLIC_ID instead of. |
static String |
DEFAULT_XML_SYSTEM_ID
Deprecated.
since 1.1, use
DocbookMarkup.DEFAULT_XML_SYSTEM_ID instead of. |
protected Stack<List<String>> |
inlineStack
Keep track of the closing tags for inline events.
|
ANCHOR_TAG, ARABIC_STYLE, ARTICLE_TAG, ARTICLEINFO_TAG, BOOK_TAG, BOOKINFO_TAG, CHAPTER_TAG, COLS_ATTRIBUTE, COLSEP_ATTRIBUTE, COLSPEC_TAG, CORPAUTHOR_TAG, DATE_TAG, EMAIL_TAG, ENTRY_TAG, FIGURE_TAG, FILEREF_ATTRIBUTE, FORMALPARA_TAG, FORMAT_ATTRIBUTE, FRAME_ATTRIBUTE, IMAGEDATA_TAG, IMAGEOBJECT_TAG, INFO_TAG, INFORMALFIGURE_TAG, INFORMALTABLE_TAG, ITEMIZEDLIST_TAG, LINK_TAG, LINKEND_ATTRIBUTE, LISTITEM_TAG, LOWERALPHA_STYLE, LOWERROMAN_STYLE, MEDIAOBJECT_TAG, NUMERATION_ATTRIBUTE, ORDEREDLIST_TAG, PARA_TAG, PROGRAMLISTING_TAG, ROW_TAG, ROWSEP_ATTRIBUTE, SECTION_TAG, SIMPARA_TAG, TBODY_TAG, TERM_TAG, TGROUP_TAG, THEAD_TAG, ULINK_TAG, UPPERALPHA_STYLE, UPPERROMAN_STYLE, URL_ATTRIBUTE, URL_TAG, VARIABLELIST_TAG, VARLISTENTRY_TAG, XREF_TAGABBREV_TAG, ABSTRACT_TAG, ACRONYM_TAG, AFFILIATION_TAG, ANCHOR_TAG, APPENDIX_TAG, ARABIC_STYLE, ARTICLE_TAG, ARTICLEINFO_TAG, ATTRIBUTION_TAG, AUDIODATA_TAG, AUDIOOBJECT_TAG, AUTHOR_TAG, AUTHORBLURB_TAG, AUTHORGROUP_TAG, AUTHORINITIALS_TAG, BIBLIODIV_TAG, BIBLIOGRAPHY_TAG, BIBLIOMISC_TAG, BIBLIOMIXED_TAG, BIBLIOMSET_TAG, BLOCKQUOTE_TAG, CAPTION_TAG, CITETITLE_TAG, COL_TAG, COLGROUP_TAG, COLS_ATTRIBUTE, COLSEP_ATTRIBUTE, COLSPEC_TAG, COMMAND_TAG, COMPUTEROUTPUT_TAG, COPYRIGHT_TAG, CORPAUTHOR_TAG, DATE_TAG, EDITION_TAG, EDITOR_TAG, EMAIL_TAG, EMPHASIS_TAG, ENTRY_TAG, ENTRYTBL_TAG, EPIGRAPH_TAG, EXAMPLE_TAG, FIGURE_TAG, FILENAME_TAG, FILEREF_ATTRIBUTE, FIRSTNAME_TAG, FOOTNOTE_TAG, FOOTNOTEREF_TAG, FORMAT_ATTRIBUTE, FRAME_ATTRIBUTE, HOLDER_TAG, HONORIFIC_TAG, ID_ATTRIBUTE, IMAGEDATA_TAG, IMAGEOBJECT_TAG, INFORMALTABLE_TAG, INLINEMEDIAOBJECT_TAG, ISSUENUM_TAG, ITEMIZEDLIST_TAG, JOBTITLE_TAG, KEYWORD_TAG, KEYWORDSET_TAG, LANG_ATTRIBUTE, LEGALNOTICE_TAG, LINEAGE_TAG, LINEANNOTATION_TAG, LINK_TAG, LINKEND_ATTRIBUTE, LISTITEM_TAG, LITERAL_TAG, LITERALLAYOUT_TAG, LOWERALPHA_STYLE, LOWERROMAN_STYLE, MEDIAOBJECT_TAG, NOTE_TAG, NUMERATION_ATTRIBUTE, OBJECTINFO_TAG, OPTION_TAG, ORDEREDLIST_TAG, ORGNAME_TAG, OTHERCREDIT_TAG, OTHERNAME_TAG, PARA_TAG, PHRASE_TAG, PROGRAMLISTING_TAG, PUBDATE_TAG, PUBLISHERNAME_TAG, QUOTE_TAG, RELEASEINFO_TAG, REMAP_ATTRIBUTE, REPLACEABLE_TAG, REVDESCRIPTION_TAG, REVHISTORY_TAG, REVISION_TAG, REVISIONFLAG_ATTRIBUTE, REVNUMBER_TAG, REVREMARK_TAG, ROW_TAG, ROWSEP_ATTRIBUTE, SECTION_TAG, SECTIONINFO_TAG, SIDEBAR_TAG, SPANSPEC_TAG, SUBJECT_TAG, SUBJECTSET_TAG, SUBJECTTERM_TAG, SUBSCRIPT_TAG, SUBTITLE_TAG, SUPERSCRIPT_TAG, SURNAME_TAG, SYSTEMITEM_TAG, TABLE_TAG, TBODY_TAG, TD_TAG, TERM_TAG, TEXTDATA_TAG, TEXTOBJECT_TAG, TFOOT_TAG, TGROUP_TAG, TH_TAG, THEAD_TAG, TITLE_TAG, TITLEABBREV_TAG, TR_TAG, TRADEMARK_TAG, ULINK_TAG, UPPERALPHA_STYLE, UPPERROMAN_STYLE, URL_ATTRIBUTE, USERINPUT_TAG, VARIABLELIST_TAG, VARLISTENTRY_TAG, VIDEODATA_TAG, VIDEOOBJECT_TAG, VOLUMENUM_TAG, XREF_TAG, YEAR_TAGBANG, CDATA, DOCTYPE_START, ENTITY_START, XML_NAMESPACECOLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STARJUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, 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, SECTION_LEVEL_6| Modifier | Constructor and Description |
|---|---|
protected |
DocBookSink(Writer writer)
Constructor, initialize the Writer.
|
protected |
DocBookSink(Writer writer,
String encoding)
Constructor, initialize the Writer and tells which encoding is used.
|
protected |
DocBookSink(Writer writer,
String encoding,
String languageId)
Constructor, initialize the Writer and tells which encoding and languageId are used.
|
| Modifier and Type | Method and Description |
|---|---|
void |
anchor_()
Ends an anchor element.
|
void |
anchor(String name)
Starts an element which defines an anchor.
|
void |
author_()
Ends an author element.
|
void |
author()
Starts an author element.
|
void |
body_()
Ends the body element.
|
void |
bold_()
Ends a bold element.
|
void |
bold()
Starts a bold element.
|
void |
close()
Close the writer or the stream, if needed.
|
void |
comment(String comment)
Add a comment.
|
protected void |
content(String text)
Write SGML escaped text to output, not preserving white space.
|
void |
date_()
Ends the date element.
|
void |
date()
Starts the date element.
|
void |
definedTerm_()
Ends a definition term element within a definition list.
|
void |
definedTerm()
Starts a definition term element within a definition list.
|
void |
definition_()
Ends a definition element within a definition list.
|
void |
definition()
Starts a definition element within a definition list.
|
void |
definitionList_()
Ends a definition list element.
|
void |
definitionList()
Starts a definition list element.
|
void |
definitionListItem_()
Ends a list item element within a definition list.
|
void |
definitionListItem()
Starts a list item element within a definition list.
|
static String |
escapeSGML(String text,
boolean xmlMode)
Deprecated.
Use HtmlTools#escapeHTML(String,boolean).
|
void |
figure_()
Ends a basic image embedding element.
|
void |
figure()
Starts a basic image embedding element.
|
void |
figureCaption_()
Ends a caption of an image.
|
void |
figureCaption()
Starts 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.
|
String |
getBoldElement()
Returns the current boldBeginTag.
|
String |
getEncoding()
Returns the 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()
Deprecated.
do not use!
|
void |
head_()
Ends the head element.
|
void |
head()
Starts the head element.
|
void |
header_()
Ends a header element.
|
void |
header()
Start a new header within the section or body.
|
void |
horizontalRule()
Adding a separator of sections from a text to each other.
|
protected void |
init()
This is called in
Sink.head() or in Sink.close(), and can be used
to set the sink into a clear state so it can be re-used. |
void |
inline_()
Ends an inline element.
|
void |
inline()
Starts an inline element.
|
void |
inline(SinkEventAttributes attributes)
Starts an inline element.
|
boolean |
isXMLMode()
Deprecated.
xml mode is not used.
|
void |
italic_()
Ends an italic element.
|
void |
italic()
Starts an italic element.
|
void |
lineBreak()
Adds a line break.
|
void |
link_()
Ends a link element.
|
void |
link(String name)
Starts an element which defines a link.
|
void |
list_()
Ends an unordered list element.
|
void |
list()
Starts an unordered list element.
|
void |
listItem_()
Ends a list item element within an unordered list.
|
void |
listItem()
Starts a list item element within an unordered list.
|
protected void |
markup(String text)
Write text to output, preserving white space.
|
void |
monospaced_()
Ends a monospaced element.
|
void |
monospaced()
Starts a monospaced element.
|
void |
nonBreakingSpace()
Adding a non breaking space, ie a space without any special formatting operations.
|
void |
numberedList_()
Ends an ordered list element.
|
void |
numberedList(int numbering)
Starts an ordered list element.
|
void |
numberedListItem_()
Ends a list item element within an ordered list.
|
void |
numberedListItem()
Starts a list item element within an ordered list.
|
void |
pageBreak()
Adding a new page separator.
|
void |
paragraph_()
Ends a paragraph element.
|
void |
paragraph()
Starts an element which represents a paragraph.
|
protected void |
resetState()
Deprecated.
since 1.1.2, use
init() instead of. |
void |
section1_()
Ends a first heading element.
|
void |
section1()
Starts a first heading element which contains the topic of the section.
|
void |
section2_()
Ends a second heading element.
|
void |
section2()
Starts a second heading element which contains the topic of the section.
|
void |
section3_()
Ends a third heading element.
|
void |
section3()
Starts a third heading element which contains the topic of the section.
|
void |
section4_()
Ends a 4th heading element.
|
void |
section4()
Starts a 4th heading element which contains the topic of the section.
|
void |
section5_()
Ends a 5th heading element.
|
void |
section5()
Starts a 5th heading element which contains the topic of the section.
|
void |
sectionTitle_()
Ends a title heading element.
|
void |
sectionTitle()
Starts a title heading element.
|
void |
sectionTitle1_()
Ends a first title heading element.
|
void |
sectionTitle1()
Starts a first title heading element.
|
void |
sectionTitle2_()
Ends a second title heading element.
|
void |
sectionTitle2()
Starts a second title heading element.
|
void |
sectionTitle3_()
Ends a third title heading element.
|
void |
sectionTitle3()
Starts a third title heading element.
|
void |
sectionTitle4_()
Ends a 4th title heading element.
|
void |
sectionTitle4()
Starts a 4th title heading element.
|
void |
sectionTitle5_()
Ends a 5th title heading element.
|
void |
sectionTitle5()
Starts a 5th title heading element.
|
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 |
setSkip(boolean skip)
Setter for the field
skip. |
void |
setStyleSheet(String sheet)
Sets the styleSheet.
|
void |
setSystemId(String id)
Sets the systemId.
|
void |
setXMLMode(boolean mode)
Deprecated.
xml mode is not used.
|
void |
sidebar_()
Ends the sidebar element.
|
void |
sidebar()
Starts a sidebar section within a document.
|
void |
table_()
Ends a table element.
|
void |
table()
Starts a table element for marking up tabular information in a document.
|
void |
tableCaption_()
Ends a caption element of a table.
|
void |
tableCaption()
Starts a caption element of a table.
|
void |
tableCell_()
Ends a cell element.
|
void |
tableCell()
Starts a cell element which defines a cell that contains data.
|
void |
tableHeaderCell_()
Ends a cell header element.
|
void |
tableHeaderCell()
Starts a cell element which defines a cell that contains header information.
|
void |
tableRow_()
Ends a row element.
|
void |
tableRow()
Starts a row element which acts as a container for a row of table cells.
|
void |
tableRows_()
Ends an element that contains rows of table data.
|
void |
tableRows(int[] justification,
boolean grid)
Starts an element that contains rows of table data.
|
void |
text(String text)
Adding a text.
|
void |
title_()
Ends the title element.
|
void |
title()
Starts the title element.
|
void |
unknown(String name,
Object[] requiredParams,
SinkEventAttributes attributes)
Add an unknown event.
|
void |
verbatim_()
Ends a verbatim element.
|
void |
verbatim(boolean boxed)
Starts an element which indicates that whitespace in the enclosed text has semantic relevance.
|
protected void |
verbatimContent(String text)
Write SGML escaped text to output, preserving white space.
|
protected void |
write(String text)
Write a text to the sink.
|
protected MutableAttributeSet |
writeXmlHeader(String root)
writeXmlHeader.
|
getNameSpace, setInsertNewline, setNameSpace, writeEndTag, writeEOL, writeSimpleTag, writeSimpleTag, writeStartTag, writeStartTag, writeStartTagaddress_, address, address, anchor, article_, article, article, author, blockquote_, blockquote, blockquote, body, body, content_, content, content, data_, data, data, date, definedTerm, definition, definitionList, definitionListItem, division_, division, division, figure, figureCaption, figureGraphics, footer_, footer, footer, head, header, horizontalRule, lineBreak, lineBreakOpportunity, lineBreakOpportunity, link, list, listItem, navigation_, navigation, navigation, numberedList, numberedListItem, paragraph, rawText, section_, section, section6_, section6, sectionTitle_, sectionTitle, sectionTitle6_, sectionTitle6, sidebar, table, tableCaption, tableCell, tableCell, tableHeaderCell, tableHeaderCell, tableRow, text, time_, time, time, title, verbatimenableLogging, getLog, unifyEOLspublic static final String DEFAULT_SGML_PUBLIC_ID
DocbookMarkup.DEFAULT_SGML_PUBLIC_ID instead of.public static final String DEFAULT_XML_PUBLIC_ID
DocbookMarkup.DEFAULT_XML_PUBLIC_ID instead of.public static final String DEFAULT_XML_SYSTEM_ID
DocbookMarkup.DEFAULT_XML_SYSTEM_ID instead of.public static final String DEFAULT_SGML_SYSTEM_ID
DocbookMarkup.DEFAULT_SGML_SYSTEM_ID instead of.protected Stack<List<String>> inlineStack
protected DocBookSink(Writer writer)
writer - not null writer to write the result. Should be an UTF-8 Writer.
You could use newXmlWriter methods from WriterFactory.protected DocBookSink(Writer writer, String encoding)
writer - not null writer to write the result.encoding - the encoding used, that should be written to the generated HTML content
if not null.protected DocBookSink(Writer writer, String encoding, String languageId)
writer - not null writer to write the result.encoding - the encoding used, that should be written to the generated HTML content
if not null.languageId - language identifier for the root element as defined by
IETF BCP 47, Tags for the Identification of Languages;
in addition, the empty string may be specified.public static String escapeSGML(String text, boolean xmlMode)
escapeSGML
text - The text to escape.xmlMode - xmlMode.public void setXMLMode(boolean mode)
mode - the mode to set.public boolean isXMLMode()
public void setEncoding(String enc)
enc - the encoding to set.public String getEncoding()
null).public void setStyleSheet(String sheet)
sheet - the styleSheet to set.public String getStyleSheet()
public void setPublicId(String id)
id - the publicId to set.public String getPublicId()
public void setSystemId(String id)
id - the systemId to set.public String getSystemId()
public void setLanguage(String language)
language - the language to set.public String getLanguage()
public void setItalicElement(String tag)
tag - the tag to set. If tag is null, the empty string is used.public String getItalicElement()
<emphasis>.public void setBoldElement(String tag)
tag - the tag to set. If tag is null, the empty string is used.public String getBoldElement()
<emphasis role=\"bold\">.public void setMonospacedElement(String tag)
tag - the tag to set. If tag is null, the empty string is used.public String getMonospacedElement()
<literal>.public void setHorizontalRuleElement(String element)
element - the element to set.public String getHorizontalRuleElement()
public void setPageBreakElement(String element)
element - the element to set.public String getPageBreakElement()
public void setLineBreakElement(String element)
element - the element to set.public String getLineBreakElement()
protected void resetState()
init() instead of.protected void init()
Sink.head() or in Sink.close(), and can be used
to set the sink into a clear state so it can be re-used.init in class AbstractSinkpublic void head()
head in interface Sinkhead in class SinkAdapterSimplifiedDocbookMarkup.DEFAULT_XML_PUBLIC_ID,
SimplifiedDocbookMarkup.DEFAULT_XML_SYSTEM_ID,
SimplifiedDocbookMarkup.ARTICLE_TAGprotected MutableAttributeSet writeXmlHeader(String root)
root - not null.SimplifiedDocbookMarkup.DEFAULT_XML_PUBLIC_ID,
SimplifiedDocbookMarkup.DEFAULT_XML_SYSTEM_ID,
SimplifiedDocbookMarkup.ARTICLE_TAGpublic void head_()
head_ in interface Sinkhead_ in class SinkAdapterSimplifiedDocbookMarkup.ARTICLEINFO_TAGpublic void title()
title in interface Sinktitle in class SinkAdapterSimplifiedDocbookMarkup.ARTICLEINFO_TAG,
SimplifiedDocbookMarkup.TITLE_TAGpublic void title_()
title_ in interface Sinktitle_ in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void author()
author in interface Sinkauthor in class SinkAdapterSimplifiedDocbookMarkup.CORPAUTHOR_TAGpublic void author_()
author_ in interface Sinkauthor_ in class SinkAdapterSimplifiedDocbookMarkup.CORPAUTHOR_TAGpublic void date()
date in interface Sinkdate in class SinkAdapterSimplifiedDocbookMarkup.DATE_TAGpublic void date_()
date_ in interface Sinkdate_ in class SinkAdapterSimplifiedDocbookMarkup.DATE_TAGpublic void body_()
body_ in interface Sinkbody_ in class SinkAdapterSimplifiedDocbookMarkup.ARTICLE_TAGpublic void sidebar()
sidebar in interface Sinksidebar in class SinkAdapterSimplifiedDocbookMarkup.SIDEBAR_TAGpublic void sidebar_()
sidebar_ in interface Sinksidebar_ in class SinkAdapterSimplifiedDocbookMarkup.SIDEBAR_TAGpublic void section1()
section1 in interface Sinksection1 in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void section1_()
section1_ in interface Sinksection1_ in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void section2()
Sink.section1() element.section2 in interface Sinksection2 in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void section2_()
section2_ in interface Sinksection2_ in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void section3()
Sink.section2() element.section3 in interface Sinksection3 in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void section3_()
section3_ in interface Sinksection3_ in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void section4()
Sink.section3() element.section4 in interface Sinksection4 in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void section4_()
section4_ in interface Sinksection4_ in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void section5()
Sink.section4() element.section5 in interface Sinksection5 in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void section5_()
section5_ in interface Sinksection5_ in class SinkAdapterSimplifiedDocbookMarkup.SECTION_TAGpublic void sectionTitle()
sectionTitle in interface SinksectionTitle in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle_()
sectionTitle_ in interface SinksectionTitle_ in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle1()
Sink.section1() element.sectionTitle1 in interface SinksectionTitle1 in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle1_()
sectionTitle1_ in interface SinksectionTitle1_ in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle2()
Sink.section2() element.sectionTitle2 in interface SinksectionTitle2 in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle2_()
sectionTitle2_ in interface SinksectionTitle2_ in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle3()
Sink.section3() element.sectionTitle3 in interface SinksectionTitle3 in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle3_()
sectionTitle3_ in interface SinksectionTitle3_ in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle4()
Sink.section4() element.sectionTitle4 in interface SinksectionTitle4 in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle4_()
sectionTitle4_ in interface SinksectionTitle4_ in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle5()
Sink.section5() element.sectionTitle5 in interface SinksectionTitle5 in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void sectionTitle5_()
sectionTitle5_ in interface SinksectionTitle5_ in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void header()
header in interface Sinkheader in class SinkAdapterSimplifiedDocbookMarkup.SECTIONINFO_TAGpublic void header_()
header_ in interface Sinkheader_ in class SinkAdapterSimplifiedDocbookMarkup.SECTIONINFO_TAGpublic void list()
list in interface Sinklist in class SinkAdapterSimplifiedDocbookMarkup.ITEMIZEDLIST_TAGpublic void list_()
list_ in interface Sinklist_ in class SinkAdapterSimplifiedDocbookMarkup.ITEMIZEDLIST_TAGpublic void listItem()
listItem in interface SinklistItem in class SinkAdapterSimplifiedDocbookMarkup.LISTITEM_TAGpublic void listItem_()
listItem_ in interface SinklistItem_ in class SinkAdapterSimplifiedDocbookMarkup.LISTITEM_TAGpublic void numberedList(int numbering)
numberedList in interface SinknumberedList in class SinkAdapternumbering - the numbering style.SimplifiedDocbookMarkup.ORDEREDLIST_TAG,
SimplifiedDocbookMarkup.NUMERATION_ATTRIBUTEpublic void numberedList_()
numberedList_ in interface SinknumberedList_ in class SinkAdapterSimplifiedDocbookMarkup.ORDEREDLIST_TAGpublic void numberedListItem()
numberedListItem in interface SinknumberedListItem in class SinkAdapterSimplifiedDocbookMarkup.LISTITEM_TAGpublic void numberedListItem_()
numberedListItem_ in interface SinknumberedListItem_ in class SinkAdapterSimplifiedDocbookMarkup.LISTITEM_TAGpublic void definitionList()
definitionList in interface SinkdefinitionList in class SinkAdapterSimplifiedDocbookMarkup.VARIABLELIST_TAGpublic void definitionList_()
definitionList_ in interface SinkdefinitionList_ in class SinkAdapterSimplifiedDocbookMarkup.VARIABLELIST_TAGpublic void definitionListItem()
definitionListItem in interface SinkdefinitionListItem in class SinkAdapterSimplifiedDocbookMarkup.VARLISTENTRY_TAGpublic void definitionListItem_()
definitionListItem_ in interface SinkdefinitionListItem_ in class SinkAdapterSimplifiedDocbookMarkup.VARLISTENTRY_TAGpublic void definedTerm()
definedTerm in interface SinkdefinedTerm in class SinkAdapterSimplifiedDocbookMarkup.TERM_TAGpublic void definedTerm_()
definedTerm_ in interface SinkdefinedTerm_ in class SinkAdapterSimplifiedDocbookMarkup.TERM_TAGpublic void definition()
definition in interface Sinkdefinition in class SinkAdapterSimplifiedDocbookMarkup.LISTITEM_TAGpublic void definition_()
definition_ in interface Sinkdefinition_ in class SinkAdapterSimplifiedDocbookMarkup.LISTITEM_TAGpublic void paragraph()
paragraph in interface Sinkparagraph in class SinkAdapterSimplifiedDocbookMarkup.PARA_TAGpublic void paragraph_()
paragraph_ in interface Sinkparagraph_ in class SinkAdapterSimplifiedDocbookMarkup.PARA_TAGpublic void verbatim(boolean boxed)
verbatim in interface Sinkverbatim in class SinkAdapterboxed - true to add a box, false otherwiseSimplifiedDocbookMarkup.PROGRAMLISTING_TAGpublic void verbatim_()
verbatim_ in interface Sinkverbatim_ in class SinkAdapterSimplifiedDocbookMarkup.PROGRAMLISTING_TAGpublic void horizontalRule()
horizontalRule in interface SinkhorizontalRule in class SinkAdapterSink.horizontalRule(SinkEventAttributes)public void pageBreak()
pageBreak in interface SinkpageBreak in class SinkAdapterpublic void figure()
figure in interface Sinkfigure in class SinkAdapterSink.figure(SinkEventAttributes)public void figure_()
figure_ in interface Sinkfigure_ in class SinkAdapterprotected void graphicElement()
graphicElement
public void figureGraphics(String name)
figureGraphics in interface SinkfigureGraphics in class SinkAdaptername - the sourcepublic void figureCaption()
figureCaption in interface SinkfigureCaption in class SinkAdapterSimplifiedDocbookMarkup.FIGURE_TAG,
SimplifiedDocbookMarkup.TITLE_TAGpublic void figureCaption_()
figureCaption_ in interface SinkfigureCaption_ in class SinkAdapterSimplifiedDocbookMarkup.FIGURE_TAG,
SimplifiedDocbookMarkup.TITLE_TAGpublic void table()
table in interface Sinktable in class SinkAdapterSink.table(SinkEventAttributes)public void table_()
table_ in interface Sinktable_ in class SinkAdapterSimplifiedDocbookMarkup.INFORMALTABLE_TAG,
SimplifiedDocbookMarkup.FRAME_ATTRIBUTE,
SimplifiedDocbookMarkup.ROWSEP_ATTRIBUTE,
SimplifiedDocbookMarkup.COLSEP_ATTRIBUTE,
SimplifiedDocbookMarkup.TABLE_TAGpublic void tableRows(int[] justification, boolean grid)
tableRows in interface SinktableRows in class SinkAdapterjustification - the default justification of columns.
This can be overridden by individual table rows or table cells.
If null a left alignment is assumed by default. If this array
has less elements than there are columns in the table then the value of
the last array element will be taken as default for the remaining table cells.grid - true to provide a grid, false otherwise.SimplifiedDocbookMarkup.TGROUP_TAG,
SimplifiedDocbookMarkup.COLS_ATTRIBUTE,
SimplifiedDocbookMarkup.COLSPEC_TAGpublic void tableRows_()
tableRows_ in interface SinktableRows_ in class SinkAdapterSimplifiedDocbookMarkup.TGROUP_TAG,
SimplifiedDocbookMarkup.TBODY_TAGpublic void tableRow()
tableRow in interface SinktableRow in class SinkAdapterSimplifiedDocbookMarkup.ROW_TAGpublic void tableRow_()
tableRow_ in interface SinktableRow_ in class SinkAdapterSimplifiedDocbookMarkup.ROW_TAGpublic void tableCell()
tableCell in interface SinktableCell in class SinkAdapterSimplifiedDocbookMarkup.ENTRY_TAGpublic void tableCell_()
tableCell_ in interface SinktableCell_ in class SinkAdapterSimplifiedDocbookMarkup.ENTRY_TAGpublic void tableHeaderCell()
tableHeaderCell in interface SinktableHeaderCell in class SinkAdapterSimplifiedDocbookMarkup.ENTRY_TAGpublic void tableHeaderCell_()
tableHeaderCell_ in interface SinktableHeaderCell_ in class SinkAdapterSimplifiedDocbookMarkup.ENTRY_TAGpublic void tableCaption()
tableCaption in interface SinktableCaption in class SinkAdapterSimplifiedDocbookMarkup.TABLE_TAG,
SimplifiedDocbookMarkup.FRAME_ATTRIBUTE,
SimplifiedDocbookMarkup.ROWSEP_ATTRIBUTE,
SimplifiedDocbookMarkup.COLSEP_ATTRIBUTE,
SimplifiedDocbookMarkup.TITLE_TAGpublic void tableCaption_()
tableCaption_ in interface SinktableCaption_ in class SinkAdapterSimplifiedDocbookMarkup.TITLE_TAGpublic void anchor(String name)
anchor in interface Sinkanchor in class SinkAdaptername - the name of the anchor.SimplifiedDocbookMarkup.ANCHOR_TAGpublic void anchor_()
anchor_ in interface Sinkanchor_ in class SinkAdapterSimplifiedDocbookMarkup.ANCHOR_TAGpublic void link(String name)
link in interface Sinklink in class SinkAdaptername - the name of the link.SimplifiedDocbookMarkup.ULINK_TAG,
SimplifiedDocbookMarkup.URL_ATTRIBUTE,
SimplifiedDocbookMarkup.LINK_TAG,
SimplifiedDocbookMarkup.LINKEND_ATTRIBUTEpublic void link_()
link_ in interface Sinklink_ in class SinkAdapterSimplifiedDocbookMarkup.ULINK_TAG,
SimplifiedDocbookMarkup.LINK_TAGpublic void inline()
inline in interface Sinkinline in class SinkAdapterSink.inline(SinkEventAttributes)public void inline(SinkEventAttributes attributes)
The inline method is similar to Sink.text(String,SinkEventAttributes), but
allows you to wrap arbitrary elements in addition to text.
Supported attributes are the base attributes plus
SEMANTICS (values "emphasis", "strong",
"small", "line-through", "citation", "quote", "definition", "abbreviation",
"italic", "bold", "monospaced", "variable", "sample", "keyboard", "superscript",
"subscript", "annotation", "highlight", "ruby", "rubyBase", "rubyText",
"rubyTextContainer", "rubyParentheses", "bidirectionalIsolation",
"bidirectionalOverride", "phrase", "insert", "delete").
inline in interface Sinkinline in class SinkAdapterattributes - A set of SinkEventAttributes, may be null.public void inline_()
inline_ in interface Sinkinline_ in class SinkAdapterpublic void italic()
Sink.text(String,SinkEventAttributes) with
STYLE instead.italic in interface Sinkitalic in class SinkAdapterpublic void italic_()
Sink.text(String,SinkEventAttributes) with
STYLE instead.italic_ in interface Sinkitalic_ in class SinkAdapterpublic void bold()
Sink.text(String,SinkEventAttributes) with
STYLE instead.bold in interface Sinkbold in class SinkAdapterpublic void bold_()
Sink.text(String,SinkEventAttributes) with
STYLE instead.bold_ in interface Sinkbold_ in class SinkAdapterpublic void monospaced()
Sink.text(String,SinkEventAttributes) with
STYLE instead.monospaced in interface Sinkmonospaced in class SinkAdapterpublic void monospaced_()
Sink.text(String,SinkEventAttributes) with
STYLE instead.monospaced_ in interface Sinkmonospaced_ in class SinkAdapterpublic void lineBreak()
lineBreak in interface SinklineBreak in class SinkAdapterSink.lineBreak(SinkEventAttributes)public void nonBreakingSpace()
nonBreakingSpace in interface SinknonBreakingSpace in class SinkAdapterpublic void text(String text)
text in interface Sinktext in class SinkAdaptertext - The text to write.Sink.text(String,SinkEventAttributes)public void comment(String comment)
comment in interface Sinkcomment in class SinkAdaptercomment - The comment to write.public void unknown(String name, Object[] requiredParams, SinkEventAttributes attributes)
unknown in interface Sinkunknown in class SinkAdaptername - The name of the event.requiredParams - An optional array of required parameters to the event.
May be null.attributes - A set of SinkEventAttributes, may be null.Sink.unknown(String,Object[],SinkEventAttributes)protected void markup(String text)
text - The text to write.protected void content(String text)
text - The text to write.protected void verbatimContent(String text)
text - The text to write.public void flush()
flush in interface Sinkflush in class SinkAdapterpublic void close()
close in interface Sinkclose in class SinkAdapterprotected void write(String text)
write in class AbstractXmlSinktext - the given text to writepublic void setSkip(boolean skip)
Setter for the field skip.
skip - the skip to set.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.