Package net.sf.jasperreports.engine.fill
Class JRFillReportTemplate
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillReportTemplate
-
- All Implemented Interfaces:
JRReportTemplate
public class JRFillReportTemplate extends Object implements JRReportTemplate
Fill-timeJRReportTemplateimplementation. Used to evaluate template source expressions.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_MESSAGE_KEY_UNKNOWN_TEMPLATE_SOURCE
-
Constructor Summary
Constructors Constructor Description JRFillReportTemplate(JRReportTemplate template, JRBaseFiller filler, JRFillObjectFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportTemplateSourceevaluate()JRExpressiongetSourceExpression()Returns the template source expression.protected static ReportTemplateSourceloadTemplate(Object source, JRBaseFiller filler, RepositoryContext repositoryContext)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_UNKNOWN_TEMPLATE_SOURCE
public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_TEMPLATE_SOURCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRFillReportTemplate
public JRFillReportTemplate(JRReportTemplate template, JRBaseFiller filler, JRFillObjectFactory factory)
-
-
Method Detail
-
getSourceExpression
public JRExpression getSourceExpression()
Description copied from interface:JRReportTemplateReturns the template source expression. The expression type should be (compatible with) one ofjava.lang.String,java.io.File,java.net.URL,java.io.InputStream(in which cases the template is loaded viaJRXmlTemplateLoader) orJRTemplate.- Specified by:
getSourceExpressionin interfaceJRReportTemplate- Returns:
- the template source expression
-
evaluate
public ReportTemplateSource evaluate() throws JRException
- Throws:
JRException
-
loadTemplate
protected static ReportTemplateSource loadTemplate(Object source, JRBaseFiller filler, RepositoryContext repositoryContext) throws JRException
- Throws:
JRException
-
-