|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.xml.writer.XMLWriterSupport
org.jfree.report.modules.parser.extwriter.AbstractXMLDefinitionWriter
org.jfree.report.modules.parser.extwriter.ObjectWriter
A writer.
| Field Summary |
| Fields inherited from class org.jfree.xml.writer.XMLWriterSupport |
CLOSE, CLOSE_TAG_DECREASE, INDENT_ONLY, OPEN, OPEN_TAG_INCREASE |
| Constructor Summary | |
ObjectWriter(ReportWriter reportWriter,
org.jfree.xml.factory.objects.ObjectDescription objectDescription,
int indentLevel,
CommentHintPath commentHintPath)
Creates a new object writer for the given object description. |
|
ObjectWriter(ReportWriter reportWriter,
java.lang.Object baseObject,
org.jfree.xml.factory.objects.ObjectDescription objectDescription,
int indentLevel,
CommentHintPath commentHintPath)
Creates a new writer. |
|
| Method Summary | |
org.jfree.xml.factory.objects.ClassFactoryCollector |
getClassFactoryCollector()
Returns the object factory. |
CommentHintPath |
getCommentHintPath()
Returns the comment hint path object for this writer. |
org.jfree.xml.factory.objects.ObjectDescription |
getObjectDescription()
Returns the object description. |
protected org.jfree.xml.factory.objects.ObjectDescription |
getParameterDescription(java.lang.String name)
Returns a description of a parameter. |
protected static java.util.ArrayList |
getParameterNames(org.jfree.xml.factory.objects.ObjectDescription d)
Returns a list of parameter names. |
protected static boolean |
isBasicObject(java.util.List parameters,
org.jfree.xml.factory.objects.ObjectDescription od)
Returns true if this is a basic object, and false otherwise. |
void |
write(java.io.Writer writer)
Writes the description. |
protected void |
writeParameter(java.io.Writer writer,
java.lang.String parameterName)
Writes a parameter to XML. |
| 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 |
public ObjectWriter(ReportWriter reportWriter,
java.lang.Object baseObject,
org.jfree.xml.factory.objects.ObjectDescription objectDescription,
int indentLevel,
CommentHintPath commentHintPath)
throws ReportWriterException
reportWriter - the report writer.baseObject - the base object (null not permitted).objectDescription - the object description (null not permitted)
for the to be written object. The base object will be used to fill the object
description parameters.indentLevel - the current indention level.commentHintPath - the comment hint path used to store additional comments.
ReportWriterException - if no writer could be found for the given
baseObject.
public ObjectWriter(ReportWriter reportWriter,
org.jfree.xml.factory.objects.ObjectDescription objectDescription,
int indentLevel,
CommentHintPath commentHintPath)
reportWriter - the report writer used to write the generated description.objectDescription - the object description that should be written. It is
assumed, that the object description is completly initialized for writing.indentLevel - the current code indention levelcommentHintPath - the comment hint path used to write the comments from
the ext-parser.| Method Detail |
public org.jfree.xml.factory.objects.ObjectDescription getObjectDescription()
public org.jfree.xml.factory.objects.ClassFactoryCollector getClassFactoryCollector()
public void write(java.io.Writer writer)
throws java.io.IOException,
ReportWriterException
write in class AbstractXMLDefinitionWriterwriter - the writer.
java.io.IOException - if there is an I/O problem.
ReportWriterException - if the object could not be written.protected org.jfree.xml.factory.objects.ObjectDescription getParameterDescription(java.lang.String name)
name - the parameter name.
protected void writeParameter(java.io.Writer writer,
java.lang.String parameterName)
throws java.io.IOException,
ReportWriterException
writer - the writer.parameterName - the parameter name.
java.io.IOException - if there is an I/O problem.
ReportWriterException - if transforming the report into a stream failed.
protected static boolean isBasicObject(java.util.List parameters,
org.jfree.xml.factory.objects.ObjectDescription od)
true if this is a basic object, and false otherwise.
parameters - the parameter.od - the descriptions.
protected static java.util.ArrayList getParameterNames(org.jfree.xml.factory.objects.ObjectDescription d)
d - the description.
public CommentHintPath getCommentHintPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||