public class JRXmlLoader extends Object
JasperDesign object.
This can be done using one of the load(...) or loadXml
methods published by this class. Applications might need to do this in cases where report
templates kept in their source form (JRXML) must be modified at runtime based on
some user input and then compiled on the fly for filling with data.
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY_SUBDATASET_NOT_FOUND |
static String |
EXCEPTION_MESSAGE_KEY_UNKNOWN_SUBDATASET |
| Constructor and Description |
|---|
JRXmlLoader(org.apache.commons.digester.Digester digester)
Deprecated.
Replaced by
JRXmlLoader(JasperReportsContext, Digester). |
JRXmlLoader(JasperReportsContext jasperReportsContext,
org.apache.commons.digester.Digester digester) |
public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_SUBDATASET
public static final String EXCEPTION_MESSAGE_KEY_SUBDATASET_NOT_FOUND
public JRXmlLoader(org.apache.commons.digester.Digester digester)
JRXmlLoader(JasperReportsContext, Digester).public JRXmlLoader(JasperReportsContext jasperReportsContext, org.apache.commons.digester.Digester digester)
public JasperReportsContext getJasperReportsContext()
public void setJasperDesign(JasperDesign jasperDesign)
public void addGroupReference(XmlGroupReference reference)
public void addGroupReprintedElement(JRDesignElement element)
public void addGroupEvaluatedImage(JRDesignImage image)
public void addGroupEvaluatedTextField(JRDesignTextField textField)
public void addGroupEvaluatedChart(JRDesignChart chart)
public Set<JRElementDataset> getGroupBoundDatasets()
public static JasperDesign load(String sourceFileName) throws JRException
JRExceptionload(JasperReportsContext, String)public static JasperDesign load(JasperReportsContext jasperReportsContext, String sourceFileName) throws JRException
JRExceptionpublic static JasperDesign load(File file) throws JRException
JRExceptionload(JasperReportsContext, File)public static JasperDesign load(JasperReportsContext jasperReportsContext, File file) throws JRException
JRExceptionpublic static JasperDesign load(InputStream is) throws JRException
JRExceptionload(JasperReportsContext, InputStream)public static JasperDesign load(JasperReportsContext jasperReportsContext, InputStream is) throws JRException
JRExceptionpublic JasperDesign loadXML(InputStream is) throws JRException
JRExceptionpublic JasperDesign loadXML(InputSource is) throws JRException
JRExceptionprotected JRGroup resolveGroup(String groupName, XmlLoaderReportContext context)
public void addError(Exception e)
public boolean isIgnoreConsistencyProblems()
public void setIgnoreConsistencyProblems(boolean ignoreConsistencyProblems)
ignoreConsistencyProblems - The ignoreConsistencyProblems value to set.public void pushReportContext(XmlLoaderReportContext context)
public XmlLoaderReportContext popReportContext()
public XmlLoaderReportContext getReportContext()
Copyright © 2017. All rights reserved.