Package net.sf.jasperreports.json.export
Class JsonMetadataExporter
java.lang.Object
net.sf.jasperreports.engine.JRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
net.sf.jasperreports.json.export.JsonMetadataExporter
- All Implemented Interfaces:
Exporter<ExporterInput,JsonMetadataReportConfiguration, JsonExporterConfiguration, WriterExporterOutput>
public class JsonMetadataExporter
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 static final Stringprotected static final Stringprotected static final Stringprotected 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_EMPTY_INPUT_SOURCE_IN_BATCH_MODE, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_NO_INPUT_SOURCE, EXCEPTION_MESSAGE_KEY_NO_OUTPUT_SPECIFIED, EXCEPTION_MESSAGE_KEY_OUTPUT_WRITER_ERROR, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, 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 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 voidvoidvalidateSchema(String jsonSchema) Methods inherited from class net.sf.jasperreports.engine.JRAbstractExporter
checkInterrupted, createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, ensureOutput, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, 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, 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:
-
EXCEPTION_MESSAGE_KEY_INVALID_JSON_OBJECT
- See Also:
-
EXCEPTION_MESSAGE_KEY_INVALID_JSON_OBJECT_SEMANTIC
- See Also:
-
EXCEPTION_MESSAGE_KEY_INVALID_JSON_OBJECT_ARRAY_FOUND
- 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
-
JsonMetadataExporter
public JsonMetadataExporter() -
JsonMetadataExporter
-
-
Method Details
-
validateSchema
- Throws:
JRException
-
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
-
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
-