|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator
public class ReportGenerator
The reportgenerator initializes the parser and provides an interface the the default parser.
To create a report from an URL, use ReportGenerator.getInstance().parseReport (URL myURl, URL contentBase);
| Field Summary | |
|---|---|
static boolean |
PARSER_VALIDATE_DEFAULT
Deprecated. disable DTD validation by default. |
static String |
PARSER_VALIDATE_KEY
Deprecated. Enable DTD validation of the parsed XML. |
| Method Summary | |
|---|---|
static ReportGenerator |
createInstance()
Deprecated. Returns a private (non-shared) instance of the ReportGenerator. |
static ReportGenerator |
getInstance()
Deprecated. Returns a single shared instance of the ReportGenerator. |
Object |
getObject(String key)
Deprecated. Returns the parse context object for the given key. |
boolean |
isValidateDTD()
Deprecated. returns true, if the parser should validate the xml files against the DTD supplied with JFreeReport. |
MasterReport |
parseReport(File file)
Deprecated. Parses an XML file which is loaded using the given file. |
MasterReport |
parseReport(InputSource input,
URL contentBase)
Deprecated. Parses the report from a given SAX-InputSource. |
MasterReport |
parseReport(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey input,
org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey)
Deprecated. Parses the report using the provided resource manager. |
MasterReport |
parseReport(String file)
Deprecated. Parses a report using the given parameter as filename and the directory containing the file as content base. |
MasterReport |
parseReport(URL file)
Deprecated. Parses an XML file which is loaded using the given URL. |
MasterReport |
parseReport(URL file,
URL contentBase)
Deprecated. Parses an XML file which is loaded using the given URL. |
void |
setObject(String key,
Object value)
Deprecated. Assigns a parse-context object. |
void |
setValidateDTD(boolean validate)
Deprecated. Set to false, to globaly disable the xml-validation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARSER_VALIDATE_KEY
public static final boolean PARSER_VALIDATE_DEFAULT
| Method Detail |
|---|
public void setValidateDTD(boolean validate)
validate - true, if the parser should validate the xml files.public boolean isValidateDTD()
public MasterReport parseReport(String file)
throws IOException,
org.pentaho.reporting.libraries.resourceloader.ResourceException
file - the file name.
IOException - if an I/O error occurs.
org.pentaho.reporting.libraries.resourceloader.ResourceException
public MasterReport parseReport(URL file)
throws IOException,
org.pentaho.reporting.libraries.resourceloader.ResourceException
file as base.
file - the URL for the report template file.
IOException - if an I/O error occurs.
org.pentaho.reporting.libraries.resourceloader.ResourceException
public MasterReport parseReport(URL file,
URL contentBase)
throws org.pentaho.reporting.libraries.resourceloader.ResourceException
contentBase as base.
After the report is generated, the ReportDefinition-source and the contentbase are stored as string in the
reportproperties.
file - the URL for the report template file.contentBase - the URL for the report template content base.
org.pentaho.reporting.libraries.resourceloader.ResourceException
public MasterReport parseReport(File file)
throws IOException,
org.pentaho.reporting.libraries.resourceloader.ResourceException
file as base.
file - the report template file.
IOException - if an I/O error occurs.
org.pentaho.reporting.libraries.resourceloader.ResourceException
public MasterReport parseReport(InputSource input,
URL contentBase)
throws IOException,
org.pentaho.reporting.libraries.resourceloader.ResourceException
input - the report definition location.contentBase - the report's context (used to load content that has been referenced with relative URLs).
org.pentaho.reporting.libraries.resourceloader.ResourceException - if parsing or loading failed for some reason.
IOException - if an IO-related error occurs.
public MasterReport parseReport(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey input,
org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey)
throws org.pentaho.reporting.libraries.resourceloader.ResourceException
manager - the resource manager (can be null).input - the resource key pointing to the report definition.contextKey - the report's context (used to load content that has been referenced with relative URLs).
org.pentaho.reporting.libraries.resourceloader.ResourceException - if parsing or loading failed for some reason.public static ReportGenerator getInstance()
ReportGenerator. This instance cannot add helper objects to
configure the report parser.
public static ReportGenerator createInstance()
ReportGenerator. Use this instance when defining helper
objects.
public void setObject(String key,
Object value)
key - the parse-context key used to lookup the object later.value - the value.public Object getObject(String key)
key - the key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||