|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenXLS.binder.ExtenXLSReportFactory
public class ExtenXLSReportFactory
This class is responsible for managing ExtenXLS Reporting
sessions for a single ExtenXLS Report.
Provides:
- shared XLS template instance
- manages CellBinders
LogOutputter,
ExtenDataObject,
CellHandle,
XLSRecord,
ExtenDataObject| Constructor Summary | |
|---|---|
ExtenXLSReportFactory(com.extentech.toolkit.LogOutputter logr)
Constructor which takes a logger |
|
ExtenXLSReportFactory(com.extentech.toolkit.LogOutputter logr,
String wd)
Constructor for the Factory which takes a logger and a full path to the working directory. |
|
| Method Summary | |
|---|---|
DataObject |
createNamedRangeDataObjectX(NameHandle n)
Create a namedRangeDataObject off of a NameHandle. |
byte[] |
generateReport(Map vars)
this method returns a byte array containing an XLS report populated with values from the CellBinder. |
int |
generateReport(String RDFFile,
String OutputRDFile,
String outputFile,
HashMap values)
Generates a report from an Input Rdf, and optional Output Rdf and an output filename. |
WorkBook |
generateWorkBookHandle(Map vars)
this method returns a WorkBookHandle populated with values from the CellBinder. |
WorkBook |
generateWorkBookHandle(Map vars,
boolean resettrackers)
this method returns a WorkBookHandle populated with values from the CellBinder. |
List |
getDataObjects()
|
Vector |
getDBConnectionCellBinders()
|
DataObject |
getParentDataObject()
|
List |
getRESTEmit()
|
WorkBook |
getWorkBook()
|
String |
getWorkingdir()
|
void |
init(Object rdf)
Initialize with the path to the RDF (Report Definition File) |
void |
init(Object rdf,
DocumentHandle bk)
Initialize with the path to the RDF (Report Definition File) |
void |
setDebugLevel(int i)
|
void |
setValues(HashMap values)
inputs BeanBinder data objects and their bean names into values HashMap |
void |
setWorkBook(WorkBook book)
|
void |
setWorkingdir(String workingdir)
|
void |
write(OutputStream out,
Map vars)
this method returns a byte array containing an XLS report populated with values from the CellBinder. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtenXLSReportFactory(com.extentech.toolkit.LogOutputter logr,
String wd)
logr - workingdir - public ExtenXLSReportFactory(com.extentech.toolkit.LogOutputter logr)
logr - | Method Detail |
|---|
public void setDebugLevel(int i)
public void init(Object rdf,
DocumentHandle bk)
throws Exception
rdf - - can be a URL, InputStream, or File path String
Exception
public void init(Object rdf)
throws Exception
rdf - - can be a URL, InputStream, or File path String
Exceptionpublic void setValues(HashMap values)
public int generateReport(String RDFFile,
String OutputRDFile,
String outputFile,
HashMap values)
RDFFile= - input RDF that produces an XLS template (either the output XLS file or intermediary XLS before XML Conversion)OutputRDFFile= - output RDF that determines mappings for output XML file (only used at this point for XML output)outputFile= - String representing the filename that is to be written
.XLS extension results in Excel output; .XML extension results in XML outputvalues - HashMap of values, if any (old method?)
public void write(OutputStream out,
Map vars)
throws Exception
Exception
public byte[] generateReport(Map vars)
throws Exception
Exception
public WorkBook generateWorkBookHandle(Map vars,
boolean resettrackers)
throws Exception
Exception
public WorkBook generateWorkBookHandle(Map vars)
throws Exception
Exceptionpublic String getWorkingdir()
public void setWorkingdir(String workingdir)
public List getDataObjects()
public DataObject getParentDataObject()
public DataObject createNamedRangeDataObjectX(NameHandle n)
n -
public Vector getDBConnectionCellBinders()
public WorkBook getWorkBook()
public void setWorkBook(WorkBook book)
book - The book to set.public List getRESTEmit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||