Package net.sf.jasperreports.json.export
Class AbstractMetadataExporter
java.lang.Object
net.sf.jasperreports.engine.JRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
net.sf.jasperreports.json.export.AbstractMetadataExporter
- All Implemented Interfaces:
Exporter<ExporterInput,JsonMetadataReportConfiguration, JsonExporterConfiguration, WriterExporterOutput>
- Direct Known Subclasses:
JsonMetadataExporter,XmlMetadataExporter
public abstract class AbstractMetadataExporter
extends JRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
- Author:
- Narcis Marcu (narcism@users.sourceforge.net)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.sf.jasperreports.engine.JRAbstractExporter
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DateFormatstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Stringstatic final Stringstatic final Stringstatic final Stringprotected intprotected intprotected WriterFields inherited from class net.sf.jasperreports.engine.JRAbstractExporter
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_OUTPUT_WRITER_ERROR, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, fontUtil, hyperlinkProducerFactory, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MetadataProcessorcreateMetadataProcessor(Writer writer) protected voidexportElement(JRPrintElement element) protected voidexportElements(Collection<JRPrintElement> elements) protected voidexportPage(JRPrintPage page) voidPerforms the export.protected voidprotected Class<JsonExporterConfiguration> Returns the properties prefix for the current exporter.protected Class<JsonMetadataReportConfiguration> protected JRStyledTextgetStyledText(JRPrintText textElement) protected voidprotected voidprotected abstract voidpassConfigToProcessor(MetadataProcessor processor, JsonMetadataReportConfiguration configuration) Methods inherited from class net.sf.jasperreports.engine.JRAbstractExporter
cancelExport, checkInterrupted, createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, ensureOutput, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getCurrentPageFormat, getDateCellValue, getDateFormat, getExporterConfiguration, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getPropertiesUtil, getRendererUtil, getReportContext, getReportExportConfiguration, getRepository, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, isExportCancelled, reset, resetExportContext, restoreElementOffsets, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperReportsContext, setOffset, setOffset, setReportContext
-
Field Details
-
JSON_EXPORTER_KEY
- See Also:
-
JSON_EXPORTER_PROPERTIES_PREFIX
- See Also:
-
JSON_EXPORTER_PATH_PROPERTY
- See Also:
-
JSON_EXPORTER_REPEAT_VALUE_PROPERTY
- See Also:
-
JSON_EXPORTER_DATA_PROPERTY
- See Also:
-
JSON_EXPORTER_REPEAT_PROPERTIES_PREFIX
- See Also:
-
JSON_EXPORTER_NUMBER_PROPERTIES_PREFIX
- See Also:
-
JSON_EXPORTER_DATE_PROPERTIES_PREFIX
- See Also:
-
JSON_EXPORTER_BOOLEAN_PROPERTIES_PREFIX
- See Also:
-
JSON_EXPORTER_STRING_PROPERTIES_PREFIX
- See Also:
-
isoDateFormat
-
writer
-
reportIndex
protected int reportIndex -
pageIndex
protected int pageIndex
-
-
Constructor Details
-
AbstractMetadataExporter
public AbstractMetadataExporter() -
AbstractMetadataExporter
-
-
Method Details
-
getConfigurationInterface
-
getItemConfigurationInterface
-
getExporterKey
-
getExporterPropertiesPrefix
Description copied from class:JRAbstractExporterReturns the properties prefix for the current exporter.- Specified by:
getExporterPropertiesPrefixin classJRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration, WriterExporterOutput, JsonExporterContext> - Returns:
- the properties prefix for the current exporter
-
exportReport
Description copied from interface:ExporterPerforms the export.- Specified by:
exportReportin interfaceExporter<ExporterInput,JsonMetadataReportConfiguration, JsonExporterConfiguration, WriterExporterOutput> - Specified by:
exportReportin classJRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration, WriterExporterOutput, JsonExporterContext> - Throws:
JRException
-
createMetadataProcessor
-
passConfigToProcessor
protected abstract void passConfigToProcessor(MetadataProcessor processor, JsonMetadataReportConfiguration configuration) -
initExport
protected void initExport() -
initReport
protected void initReport() -
exportReportToWriter
- Throws:
JRExceptionIOException
-
exportPage
-
exportElements
protected void exportElements(Collection<JRPrintElement> elements) throws IOException, ExportInterruptedException -
exportElement
- Throws:
IOException
-
getStyledText
-