|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.tools.workbench.tbg.Generator
This class implements the TBG API.
Field Summary | |
protected static java.lang.String |
READER_NAME
The descriptor READER.NAME. |
protected static java.lang.String |
WRITER_FOLDER
The descriptor WRITER.FOLDER. |
protected static java.lang.String |
WRITER_NAME
The descriptor WRITER.NAME. |
Constructor Summary | |
Generator()
This constructor creates a com.ibm.dse.tools.workbench.tbg.Generator object. |
Method Summary | |
java.lang.String[] |
close()
Closes the actual execution. |
static java.util.Hashtable |
getDuplicatedReferences()
Return the duplicatedReferences hashtable. |
java.lang.String |
getLogName()
Returns the log file name. |
void |
open()
Opens an exectution. |
void |
setDataReaderName(java.lang.String name)
Sets the value of the readerName property. |
void |
setDataWriterFolder(java.lang.String folder)
Sets the value of the writerFolder property. |
void |
setDataWriterName(java.lang.String name)
Sets the value of the writerName property. |
void |
setLogName(java.lang.String name)
Sets the name of the log file. |
void |
setTbgTags(TbgTags tags)
Sets the value of the context variable TbgTags. |
void |
start(java.io.Reader sIn,
java.io.Writer sOut,
TableRow tr)
Starts the execution. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final java.lang.String WRITER_NAME
protected static final java.lang.String READER_NAME
protected static final java.lang.String WRITER_FOLDER
Constructor Detail |
public Generator()
Creates new instance of TbgContext to store the execution variables.
Method Detail |
public java.lang.String[] close() throws WBInputOutputException
Closes the tbg log. If errors or warnings have ocurred during the execution returns an array of messages.
public static java.util.Hashtable getDuplicatedReferences()
public java.lang.String getLogName()
public void open() throws WorkbenchException
Opens the log file and initializes the required variables.
public void setDataReaderName(java.lang.String name)
name
- java.lang.String The new value of the readerName.public void setDataWriterFolder(java.lang.String folder)
name
- java.lang.String The new value of the folderName.public void setDataWriterName(java.lang.String name)
name
- java.lang.String The new value of the writerName.public void setLogName(java.lang.String name)
name
- java.lang.String The new name of the log file.public void setTbgTags(TbgTags tags)
TbgTags contains the tags to parse and the classes that implement theirs functionality.
tags
- com.ibm.dse.tools.workbench.tbg.TbgTags The new value of the TbgTags.public void start(java.io.Reader sIn, java.io.Writer sOut, TableRow tr) throws WorkbenchException
Creates a TbgParser object, sets the context, and calls its generate() method.
sIn
- java.io.Reader The input source.sOut
- java.io.Writer The output writer, where the result is written.tr
- com.ibm.dse.tools.workbench.base.TableRow Table row from where all the required elements of the template begin from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |