public class JsonMetadataExporter extends JRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
Modifier and Type | Class and Description |
---|---|
protected class |
JsonMetadataExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange
Modifier and Type | Field and Description |
---|---|
protected static String |
EXCEPTION_MESSAGE_KEY_INVALID_JSON_OBJECT |
protected static String |
EXCEPTION_MESSAGE_KEY_INVALID_JSON_OBJECT_ARRAY_FOUND |
protected static String |
EXCEPTION_MESSAGE_KEY_INVALID_JSON_OBJECT_SEMANTIC |
protected DateFormat |
isoDateFormat |
static String |
JSON_EXPORTER_BOOLEAN_PROPERTIES_PREFIX |
static String |
JSON_EXPORTER_DATA_PROPERTY |
static String |
JSON_EXPORTER_DATE_PROPERTIES_PREFIX |
static String |
JSON_EXPORTER_KEY |
static String |
JSON_EXPORTER_NUMBER_PROPERTIES_PREFIX |
static String |
JSON_EXPORTER_PATH_PROPERTY |
protected static String |
JSON_EXPORTER_PROPERTIES_PREFIX |
static String |
JSON_EXPORTER_REPEAT_PROPERTIES_PREFIX |
static String |
JSON_EXPORTER_REPEAT_VALUE_PROPERTY |
static String |
JSON_EXPORTER_STRING_PROPERTIES_PREFIX |
protected int |
pageIndex |
protected int |
reportIndex |
protected Writer |
writer |
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_MIXED_CALLS_NOT_ALLOWED, 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, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses
Constructor and Description |
---|
JsonMetadataExporter() |
JsonMetadataExporter(JasperReportsContext jasperReportsContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureOutput() |
protected void |
exportElement(JRPrintElement element) |
protected void |
exportElements(Collection<JRPrintElement> elements) |
protected void |
exportPage(JRPrintPage page) |
void |
exportReport()
Performs the export.
|
protected void |
exportReportToWriter() |
protected Class<JsonExporterConfiguration> |
getConfigurationInterface() |
String |
getExporterKey() |
String |
getExporterPropertiesPrefix()
Returns the properties prefix for the current exporter.
|
protected Class<JsonMetadataReportConfiguration> |
getItemConfigurationInterface() |
protected JRStyledText |
getStyledText(JRPrintText textElement) |
protected void |
initExport() |
protected void |
initReport() |
void |
validateSchema(String jsonSchema) |
createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getCustomHandler, getDateCellValue, getDateFormat, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getParameter, getParameters, getPropertiesUtil, getRendererUtil, getReportContext, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContext
public static final String JSON_EXPORTER_KEY
protected static final String JSON_EXPORTER_PROPERTIES_PREFIX
protected static final String EXCEPTION_MESSAGE_KEY_INVALID_JSON_OBJECT
protected static final String EXCEPTION_MESSAGE_KEY_INVALID_JSON_OBJECT_SEMANTIC
protected static final String EXCEPTION_MESSAGE_KEY_INVALID_JSON_OBJECT_ARRAY_FOUND
public static final String JSON_EXPORTER_PATH_PROPERTY
public static final String JSON_EXPORTER_REPEAT_VALUE_PROPERTY
public static final String JSON_EXPORTER_DATA_PROPERTY
public static final String JSON_EXPORTER_REPEAT_PROPERTIES_PREFIX
public static final String JSON_EXPORTER_NUMBER_PROPERTIES_PREFIX
public static final String JSON_EXPORTER_DATE_PROPERTIES_PREFIX
public static final String JSON_EXPORTER_BOOLEAN_PROPERTIES_PREFIX
public static final String JSON_EXPORTER_STRING_PROPERTIES_PREFIX
protected final DateFormat isoDateFormat
protected Writer writer
protected int reportIndex
protected int pageIndex
public JsonMetadataExporter()
public JsonMetadataExporter(JasperReportsContext jasperReportsContext)
public void validateSchema(String jsonSchema) throws JRException
JRException
protected Class<JsonExporterConfiguration> getConfigurationInterface()
protected Class<JsonMetadataReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
public String getExporterKey()
public String getExporterPropertiesPrefix()
JRAbstractExporter
getExporterPropertiesPrefix
in class JRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
public void exportReport() throws JRException
Exporter
exportReport
in interface Exporter<ExporterInput,JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput>
exportReport
in class JRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
JRException
protected void initExport()
protected void initReport()
protected void exportReportToWriter() throws JRException, IOException
JRException
IOException
protected void exportPage(JRPrintPage page) throws IOException
IOException
protected void exportElements(Collection<JRPrintElement> elements) throws IOException
IOException
protected void exportElement(JRPrintElement element) throws IOException
IOException
protected JRStyledText getStyledText(JRPrintText textElement)
Copyright © 2017. All rights reserved.