Interface ComponentXmlWriter
-
- All Known Implementing Classes:
AbstractComponentXmlWriter,ComponentsXmlWriter,IconLabelComponentXmlWriter,SortComponentXmlWriter,SpiderChartXmlWriter
public interface ComponentXmlWriterA 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(JRComponentElement componentElement, JRXmlWriter reportWriter)Specifies whether this component should be written out.voidwriteToXml(JRComponentElement componentElement, JRXmlWriter reportWriter)Outputs the XML representation of a component.
-
-
-
Method Detail
-
isToWrite
boolean isToWrite(JRComponentElement componentElement, JRXmlWriter reportWriter)
Specifies whether this component should be written out. This is useful for versioning.
-
writeToXml
void writeToXml(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
Outputs the XML representation of a component.- Parameters:
componentElement- the component elementreportWriter- 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()
-
-