| |
|
| java.lang.Object com.jcorporate.expresso.ext.report.XMLPrinter com.jcorporate.expresso.ext.report.DocBookPrinter
DocBookPrinter | public class DocBookPrinter extends XMLPrinter (Code) | | A (DOM) parser that understands the docbook schema and prints it nicely.
author: David Lloyd |
Field Summary | |
protected Set | _inlineTagSet Set of inline tags. | protected int | _maxFormatLen The maximum character count (including indentions) allowed for single line text. |
_inlineTagSet | protected Set _inlineTagSet(Code) | | Set of inline tags.
|
_maxFormatLen | protected int _maxFormatLen(Code) | | The maximum character count (including indentions) allowed for single line text.
|
DocBookPrinter | public DocBookPrinter()(Code) | | |
formatParaText | protected String formatParaText(String text)(Code) | | Print the text formatted for a tag that does not place significance on
multiple whitespace. This will layout the text into a block good for viewing.
An example is docbook's <para>.
Parameters: text - The text to print. |
getIndentLength | protected int getIndentLength(int col)(Code) | | The virtual area occupied by a indentation level. |
getInlineTags | protected String[] getInlineTags()(Code) | | The list of inline tags. |
isInlineTag | protected boolean isInlineTag(Node node)(Code) | | True if the node is a docbook inline tag. |
isInlineTag | protected boolean isInlineTag(String tagName)(Code) | | True if the tag name is a docbook inline tag. |
isParaTag | protected boolean isParaTag(String tagName)(Code) | | True if the tag name is a docbook paragraph tag. |
isParaTag | protected boolean isParaTag(Node node)(Code) | | True if the node is a docbook paragraph tag. |
isPreTag | protected boolean isPreTag(String tagName)(Code) | | True if the tag name is a docbook pre-formatted tag. |
isPreTag | protected boolean isPreTag(Node node)(Code) | | True if the node is a docbook pre-formatted tag. |
nodeToString | public static String nodeToString(Node node)(Code) | | Return the given node as a string. If any error occurs
in processing (likely an io exception from outputDocument()),
null will be returned.
|
printFormatted | protected boolean printFormatted(String value) throws IOException(Code) | | Print the text formatted for a tag that does not place significance on
multiple whitespace. This will layout the text nicely for viewing, short
text is placed inline while long text is formatted into a block. The
threshhold is defined by _maxFormatLen.
An example is docbook's <para>.
Parameters: value - The text to print. |
printTree | protected void printTree(Node node) throws IOException(Code) | | Override to provide tag relative intelligence.
|
warning | public void warning(SAXParseException ex)(Code) | | Issue a warning on parsing errors
Parameters: ex - A Sax Parse Exception event |
|
|
|