org.jfree.report.modules.parser.extwriter
Class TemplatesWriter

java.lang.Object
  extended byorg.jfree.xml.writer.XMLWriterSupport
      extended byorg.jfree.report.modules.parser.extwriter.AbstractXMLDefinitionWriter
          extended byorg.jfree.report.modules.parser.extwriter.TemplatesWriter

public class TemplatesWriter
extends AbstractXMLDefinitionWriter

The templates writer is responsible to write the templates section.

Author:
Thomas Morgner

Field Summary
 
Fields inherited from class org.jfree.xml.writer.XMLWriterSupport
CLOSE, CLOSE_TAG_DECREASE, INDENT_ONLY, OPEN, OPEN_TAG_INCREASE
 
Constructor Summary
TemplatesWriter(ReportWriter reportWriter, int indentLevel)
          Creates a new writer.
 
Method Summary
static TemplateDescription getTemplateDescription(ReportWriter writer, java.lang.String name)
          Searches the template description that has the given name using the factories defined in the report writer.
 void write(java.io.Writer writer)
          Writes the templates (not yet supported).
 
Methods inherited from class org.jfree.report.modules.parser.extwriter.AbstractXMLDefinitionWriter
getDefaultSafeTags, getReport, getReportWriter, normalize, writeComment, writeComment
 
Methods inherited from class org.jfree.xml.writer.XMLWriterSupport
allowLineBreak, decreaseIndent, endBlock, getIndentLevel, getLineSeparator, getSafeTags, increaseIndent, indent, startBlock, writeCloseTag, writeTag, writeTag, writeTag, writeTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplatesWriter

public TemplatesWriter(ReportWriter reportWriter,
                       int indentLevel)
Creates a new writer.

Parameters:
reportWriter - the report writer.
indentLevel - the current indention level.
Method Detail

write

public void write(java.io.Writer writer)
           throws java.io.IOException,
                  ReportWriterException
Writes the templates (not yet supported).

Specified by:
write in class AbstractXMLDefinitionWriter
Parameters:
writer - the character stream writer.
Throws:
java.io.IOException - if there is an I/O problem.
ReportWriterException - if there is a problem writing the report.

getTemplateDescription

public static TemplateDescription getTemplateDescription(ReportWriter writer,
                                                         java.lang.String name)
Searches the template description that has the given name using the factories defined in the report writer.

Parameters:
writer - the report writer
name - the template description name, never null
Returns:
the template description or null, if there is no such description.
Throws:
java.lang.NullPointerException - if the name is null.