|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrefinery.report.io.ext.writer.AbstractXMLDefinitionWriter
com.jrefinery.report.io.ext.writer.ObjectWriter
A writer.
| Field Summary |
| Fields inherited from class com.jrefinery.report.io.ext.writer.AbstractXMLDefinitionWriter |
CLOSE, CLOSE_TAG_DECREASE, INDENT_ONLY, OPEN, OPEN_TAG_INCREASE |
| Constructor Summary | |
ObjectWriter(ReportWriter reportWriter,
java.lang.Object baseObject,
org.jfree.xml.factory.objects.ObjectDescription objectDescription,
int indentLevel)
Creates a new writer. |
|
| Method Summary | |
java.lang.Object |
getBaseObject()
Returns the base object. |
org.jfree.xml.factory.objects.ClassFactoryCollector |
getClassFactoryCollector()
Returns the object factory. |
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 com.jrefinery.report.io.ext.writer.AbstractXMLDefinitionWriter |
decreaseIndent, getIndentLevel, getLineSeparator, getReport, getReportWriter, getSafeTags, increaseIndent, indent, normalize, writeCloseTag, 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)
reportWriter - the report writer.baseObject - the base object (null not permitted).objectDescription - the object description (null not permitted).indentLevel - the current indention level.| Method Detail |
public org.jfree.xml.factory.objects.ObjectDescription getObjectDescription()
public java.lang.Object getBaseObject()
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||