Package net.sf.jasperreports.engine.part
Interface PartComponentXmlWriter
-
- All Known Implementing Classes:
AbstractPartComponentXmlWriter,PartComponentsXmlWriter
public interface PartComponentXmlWriterA component writer is responsible for producing a XML representation of component instances.Its function is inverse to the one of
XmlDigesterConfigurer, which transforms XML fragments into object instances.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisToWrite(JRPart part, JRXmlWriter reportWriter)Specifies whether this component should be written out.voidwriteToXml(JRPart part, JRXmlWriter reportWriter)Outputs the XML representation of a component.
-
-
-
Method Detail
-
isToWrite
boolean isToWrite(JRPart part, JRXmlWriter reportWriter)
Specifies whether this component should be written out. This is useful for versioning.
-
writeToXml
void writeToXml(JRPart part, JRXmlWriter reportWriter) throws java.io.IOException
Outputs the XML representation of a component.- Parameters:
part- the partreportWriter- the report writer to which output is to be written- Throws:
java.io.IOException- exceptions produced while writing to the output stream- See Also:
ComponentKey.getNamespacePrefix(),JRXmlWriter.getXmlWriteHelper()
-
-