/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* JasperReports is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* JasperReports is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with JasperReports. If not, see
java.io.InputStream
to be used for obtaining the JSON data.
*/
public static final String JSON_INPUT_STREAM = "JSON_INPUT_STREAM";
public static final String REST_URL = "REST_URL";
public static final String SOURCE_FILE = "SOURCE_FILE";
/**
* Built-in parameter holding the value of the source for the JSON file.
*
* It can be:
* java.lang.String
code of the locale to be used when parsing the JSON data.
*
* The allowed format is: language[_country[_variant]]
*/
public static final String JSON_LOCALE_CODE = JRPropertiesUtil.PROPERTY_PREFIX + "json.locale.code";
/**
* Parameter holding the value of the datasource Timezone
*/
public final static String JSON_TIME_ZONE = "JSON_TIME_ZONE";
/**
* Built-in parameter/property holding the java.lang.String
value of the time zone id to be used when parsing the JSON data.
*/
public static final String JSON_TIMEZONE_ID = JRPropertiesUtil.PROPERTY_PREFIX + "json.timezone.id";
private final static Object[] JSON_BUILTIN_PARAMETERS = {
JSON_INPUT_STREAM, "java.io.InputStream",
JSON_SOURCE, "java.lang.String",
JSON_DATE_PATTERN, "java.lang.String",
JSON_NUMBER_PATTERN, "java.lang.String",
JSON_LOCALE, "java.util.Locale",
JSON_LOCALE_CODE, "java.lang.String",
JSON_TIME_ZONE, "java.util.TimeZone",
JSON_TIMEZONE_ID, "java.lang.String"
};
public Object[] getBuiltinParameters()
{
return JSON_BUILTIN_PARAMETERS;
}
public JRQueryExecuter createQueryExecuter(
JasperReportsContext jasperReportsContext,
JRDataset dataset,
Map