|
Drools :: Templates 6.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.template.DataProviderCompiler
public class DataProviderCompiler
An object of this class acts as a template compiler, inserting spreadsheet data into templates. Template data may come from a resource or an InputStream, or you may provide a TemplateDataListener.
| Constructor Summary | |
|---|---|
DataProviderCompiler()
|
|
| Method Summary | |
|---|---|
protected void |
closeStream(InputStream stream)
|
String |
compile(DataProvider dataProvider,
InputStream templateStream)
Generates DRL from a data provider for the spreadsheet data and templates. |
String |
compile(DataProvider dataProvider,
InputStream templateStream,
boolean replaceOptionals)
Generates DRL from a data provider for the spreadsheet data and templates. |
String |
compile(DataProvider dataProvider,
String template)
Generates DRL from a data provider for the spreadsheet data and templates. |
String |
compile(DataProvider dataProvider,
String template,
boolean replaceOptionals)
Generates DRL from a data provider for the spreadsheet data and templates. |
String |
compile(DataProvider dataProvider,
TemplateDataListener listener)
Generates DRL from a data provider for the spreadsheet data and templates. |
String |
compile(DataProvider dataProvider,
TemplateDataListener listener,
boolean replaceOptionals)
Generates DRL from a data provider for the spreadsheet data and templates. |
void |
newCell(List<DataListener> listeners,
int row,
int column,
String value,
int mergedColStart)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataProviderCompiler()
| Method Detail |
|---|
public String compile(DataProvider dataProvider,
String template)
dataProvider - the data provider for the spreadsheet datatemplate - the string containing the template resource name
public String compile(DataProvider dataProvider,
InputStream templateStream)
dataProvider - the data provider for the spreadsheet datatemplateStream - the InputStream for reading the templates
public String compile(DataProvider dataProvider,
TemplateDataListener listener)
dataProvider - the data provider for the spreadsheet datalistener - a template data listener
public String compile(DataProvider dataProvider,
String template,
boolean replaceOptionals)
dataProvider - the data provider for the spreadsheet datatemplate - the string containing the template resource name
public String compile(DataProvider dataProvider,
InputStream templateStream,
boolean replaceOptionals)
dataProvider - the data provider for the spreadsheet datatemplateStream - the InputStream for reading the templates
public String compile(DataProvider dataProvider,
TemplateDataListener listener,
boolean replaceOptionals)
dataProvider - the data provider for the spreadsheet datalistener - a template data listener
public void newCell(List<DataListener> listeners,
int row,
int column,
String value,
int mergedColStart)
protected void closeStream(InputStream stream)
|
Drools :: Templates 6.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||