|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.query.template.ReportTemplateHelper
public class ReportTemplateHelper
This is a helper class which contains the implementation for processing
XML Source which defines a report.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
static void |
bindParameters(XMLSource a_qmlSource,
StatementSpec a_statementSpec,
Hashtable a_parameterMap)
This method is used to bind parameters from a name and value Hashtable to a StatementSpec instance. |
static Hashtable |
buildParameterMap(ParameterTemplate[] a_parameterTemplates,
Hashtable a_inputs,
boolean use_defaults)
This method is used to build a Hashtable of actual values from ParameterTemplate objects and an input Hashtable. |
static ParameterTemplate[] |
buildParameterTemplates(XMLSource a_qmlSource)
This method is used to build a Vector of ParameterTemplate objects from the specified XMLSource. |
static StatementSpec |
buildStatement(XMLSource a_qmlSource,
Locale a_locale,
Hashtable a_parameterMap)
This method is used to build the Statement given the QML XMLSource, locale and parameters. |
static String |
concatMediaTypeAndEncoding(String mediaType,
String encoding)
Concatenate a MIME type string (without encoding information) and encoding information. |
static XMLSource |
generateReport(ReportTemplate a_reportTemplate,
Hashtable params,
Locale locale)
This method generates a standard report in XML format. |
static XMLSource |
generateReport(ReportTemplate a_reportTemplate,
Hashtable params,
Locale locale,
XMLSource resultSource)
This method generates a standard report in XML format. |
static QueryResult |
generateResults(ReportTemplate a_reportTemplate,
Hashtable a_inputs,
Locale a_locale)
This method is used to generate a QueryResult from the Report Template and locale. |
static QueryResult |
generateResults(String a_qmlSource,
Hashtable a_inputs,
Locale a_locale,
WTContainerRef a_containerRef)
This method is used to generate a QueryResult from the QML specification and locale. |
static QueryResult |
generateResults(XMLSource a_qmlSource,
Hashtable a_inputs,
Locale a_locale,
WTContainerRef a_containerRef)
This method is used to generate a QueryResult from the QML specification and locale. |
static TableModel |
generateTableModel(ReportTemplate a_ReportTemplate,
Hashtable a_inputs)
Deprecated. as of R7.0, use generateTableModel(ReportTemplate, Hashtable, Locale) |
static TableModel |
generateTableModel(ReportTemplate a_ReportTemplate,
Hashtable a_inputs,
Locale a_locale)
This method is used to generate a TableModel from a Report Template and parameter input values. |
static TableModel |
generateTableModel(String a_qmlSource,
Hashtable a_inputs,
Locale a_locale,
WTContainerRef a_containerRef)
This method is used to generate a TableModel from QML source and parameter input values. |
static TableModel |
generateTableModel(XMLSource a_qmlSource,
Hashtable a_inputs,
Locale a_locale,
WTContainerRef a_containerRef)
This method is used to generate a TableModel from QML source and parameter input values. |
static XMLSource |
generateXML(ReportTemplate a_reportTemplate,
Hashtable a_inputs,
Locale a_locale)
This method takes a Report Template as input and is used to execute the report query and return the results as an XMLSource. |
static XMLSource |
generateXML(XMLSource a_qmlSource,
Hashtable a_inputs,
Locale a_locale)
This method takes a Report Template and paramters as input and is used to execute the report query and return the results as an XMLSource. |
static Enumeration |
getAvailableMacros()
Return an enumeration of available macros that can be used in ParameterTemplate processing. |
static List |
getAvailableXSLFormats(Locale a_locale)
Return an List of available XSL formats that can be used in report processing. |
static URL |
getExecuteReportURL(Properties a_properties,
ReportTemplate a_reportTemplate)
This method is used to construct the URL to execute the report. |
static String |
getFileTypeExtension(String a_outputMimeType)
This method will set the file extension type for the MIME type. |
static URL |
getGenerateFormURL(Properties a_properties,
ReportTemplate a_reportTemplate)
This method is used to construct the URL for the report generation form. |
static ReportPostProcessor |
getPostProcessor(String originalMimeType)
Get an instance of a post-processor for a given MIME type if one has been registered, else returns null. |
static Enumeration |
getQueryClassNames()
Return an enumeration of query class names that should be included in the list of available query classes. |
static XSLTransform |
getTransform(wt.query.template.XSLSpec xslSpec,
XMLSource reportSource,
Properties xslProperties,
Locale locale)
This method derives an XSLTransform object from the specified parameters. |
static wt.query.template.XSLSpec |
getXSLSpec(ReportMetadata a_report,
Hashtable params)
This method derives an XSLSpec object from the specified ReportTemplate and parameters. |
static wt.query.template.XSLSpec |
getXSLSpec(ReportTemplate a_reportTemplate,
Hashtable params)
This method derives an XSLSpec object from the specified ReportTemplate and parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ParameterTemplate[] buildParameterTemplates(XMLSource a_qmlSource)
throws WTException
a_qmlSource - Input QML representation of a query
WTException
public static Hashtable buildParameterMap(ParameterTemplate[] a_parameterTemplates,
Hashtable a_inputs,
boolean use_defaults)
throws WTException
a_parameterTemplates - Array of ParameterTemplate instances for a reporta_inputs - Parameter input name and value pairsuse_defaults -
WTException
public static void bindParameters(XMLSource a_qmlSource,
StatementSpec a_statementSpec,
Hashtable a_parameterMap)
throws WTException
a_qmlSource - Input QML representation of a querya_statementSpec - Bind parameter values will be bound to this instance.a_parameterMap - Parameter input name and value pairs
WTExceptionpublic static Enumeration getAvailableMacros()
public static URL getGenerateFormURL(Properties a_properties,
ReportTemplate a_reportTemplate)
throws WTException
a_properties - Additional properties to include in the URL. If null, then no additional properties are added.a_reportTemplate - Context object for the URL. If null, then the context object is not added.
WTException
public static URL getExecuteReportURL(Properties a_properties,
ReportTemplate a_reportTemplate)
throws WTException
a_properties - Additional properties to include in the URL. If null, then no additional properties are added.a_reportTemplate - Context object for the URL. If null, then the context object is not added.
WTException
public static TableModel generateTableModel(ReportTemplate a_ReportTemplate,
Hashtable a_inputs,
Locale a_locale)
throws WTException
a_ReportTemplate - a_inputs - a_locale -
WTException
public static XMLSource generateReport(ReportTemplate a_reportTemplate,
Hashtable params,
Locale locale)
throws WTException
a_reportTemplate - ReportTemplate instance to use as the report sourceparams - Parameter arguments to use as input for the report query.locale - Locale to use for localized text
WTException
public static wt.query.template.XSLSpec getXSLSpec(ReportTemplate a_reportTemplate,
Hashtable params)
throws WTException
a_reportTemplate - ReportTemplate object to derive the XSLSpec from.params - Parameters to use to derive XSLSpec.
WTException
public static wt.query.template.XSLSpec getXSLSpec(ReportMetadata a_report,
Hashtable params)
throws WTException
a_report - ReportMetadata object to derive the XSLSpec from.params - Parameters to use to derive XSLSpec.
WTException
public static XSLTransform getTransform(wt.query.template.XSLSpec xslSpec,
XMLSource reportSource,
Properties xslProperties,
Locale locale)
throws WTException
xslSpec - Specifies the XSL transforms that will be applied.reportSource - Report source that will be transformed.xslProperties - Properties passed to the factory creating the XSLTransform objects.locale - Specifies the Locale that will be applied.
WTException
public static XMLSource generateReport(ReportTemplate a_reportTemplate,
Hashtable params,
Locale locale,
XMLSource resultSource)
throws WTException
a_reportTemplate - ReportTemplate instance to use as the report sourceparams - Parameter arguments to use as input for the report query.locale - Locale to use for localized textresultSource - Result XML source to use in the report
WTException
public static XMLSource generateXML(ReportTemplate a_reportTemplate,
Hashtable a_inputs,
Locale a_locale)
throws WTException
a_reportTemplate - a_inputs - a_locale -
WTException
public static TableModel generateTableModel(ReportTemplate a_ReportTemplate,
Hashtable a_inputs)
throws WTException
a_ReportTemplate - a_inputs -
WTException
public static TableModel generateTableModel(XMLSource a_qmlSource,
Hashtable a_inputs,
Locale a_locale,
WTContainerRef a_containerRef)
throws WTException
a_qmlSource - a_inputs - a_locale - a_containerRef - The container context to execute this query in.
WTException
public static XMLSource generateXML(XMLSource a_qmlSource,
Hashtable a_inputs,
Locale a_locale)
throws WTException
a_qmlSource - a_inputs - a_locale -
WTException
public static TableModel generateTableModel(String a_qmlSource,
Hashtable a_inputs,
Locale a_locale,
WTContainerRef a_containerRef)
throws WTException
a_qmlSource - a_inputs - a_locale - a_containerRef - The container context to execute this query in.
WTException
public static QueryResult generateResults(String a_qmlSource,
Hashtable a_inputs,
Locale a_locale,
WTContainerRef a_containerRef)
throws WTException
a_qmlSource - a_inputs - a_locale - a_containerRef - The container context to execute this query in.
WTException
public static QueryResult generateResults(ReportTemplate a_reportTemplate,
Hashtable a_inputs,
Locale a_locale)
throws WTException
a_reportTemplate - a_inputs - a_locale -
WTException
public static QueryResult generateResults(XMLSource a_qmlSource,
Hashtable a_inputs,
Locale a_locale,
WTContainerRef a_containerRef)
throws WTException
a_qmlSource - a_inputs - a_locale - a_containerRef - The container context to execute this query in.
WTException
public static StatementSpec buildStatement(XMLSource a_qmlSource,
Locale a_locale,
Hashtable a_parameterMap)
throws WTException
a_qmlSource - a_locale - a_parameterMap -
WTExceptionpublic static Enumeration getQueryClassNames()
public static String getFileTypeExtension(String a_outputMimeType)
throws WTException
a_outputMimeType -
WTExceptionpublic static List getAvailableXSLFormats(Locale a_locale)
a_locale - Locale to use to look up XSL formats
public static ReportPostProcessor getPostProcessor(String originalMimeType)
originalMimeType - original MIME type of report result
public static String concatMediaTypeAndEncoding(String mediaType,
String encoding)
mediaType - MIME type string without encoding informationencoding - character encoding name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||