Package net.sf.jasperreports.parts
Class PartComponentsXmlWriter
- java.lang.Object
-
- net.sf.jasperreports.parts.AbstractPartComponentXmlWriter
-
- net.sf.jasperreports.parts.PartComponentsXmlWriter
-
- All Implemented Interfaces:
PartComponentXmlWriter
public class PartComponentsXmlWriter extends AbstractPartComponentXmlWriter
XML writer for built-in part component implementations.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
ComponentsExtensionsRegistryFactory
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.parts.AbstractPartComponentXmlWriter
jasperReportsContext, PROPERTY_PART_COMPONENTS_PREFIX, versionComparator
-
-
Constructor Summary
Constructors Constructor Description PartComponentsXmlWriter(JasperReportsContext jasperReportsContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisToWrite(JRPart part, JRXmlWriter reportWriter)Specifies whether this component should be written out.protected voidwriteSubreport(JRPart part, JRXmlWriter reportWriter)voidwriteToXml(JRPart part, JRXmlWriter reportWriter)Outputs the XML representation of a component.-
Methods inherited from class net.sf.jasperreports.parts.AbstractPartComponentXmlWriter
getVersion, isNewerVersionOrEqual, isOlderVersionThan
-
-
-
-
Constructor Detail
-
PartComponentsXmlWriter
public PartComponentsXmlWriter(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
writeToXml
public void writeToXml(JRPart part, JRXmlWriter reportWriter) throws IOException
Description copied from interface:PartComponentXmlWriterOutputs the XML representation of a component.- Parameters:
part- the partreportWriter- the report writer to which output is to be written- Throws:
IOException- exceptions produced while writing to the output stream- See Also:
ComponentKey.getNamespacePrefix(),JRXmlWriter.getXmlWriteHelper()
-
writeSubreport
protected void writeSubreport(JRPart part, JRXmlWriter reportWriter) throws IOException
- Throws:
IOException
-
isToWrite
public boolean isToWrite(JRPart part, JRXmlWriter reportWriter)
Description copied from interface:PartComponentXmlWriterSpecifies whether this component should be written out. This is useful for versioning.
-
-