|
|||||||||
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.TbgContext
This class stores the context of the utility.
The variables that are needed to execute the TBG are storedin this class.
Field Summary | |
java.lang.String |
actTab
The actual tag tabulation. |
TbgData |
dataManager
The data manager. |
java.util.Vector |
errorMessages
The vector that contains the TBG messages. |
boolean |
errors
Set to true if errors have ocurred during the parsing. |
java.lang.String |
expression
The actual TBG expression to manage. |
protected java.util.Hashtable |
externalVariables
The external variables. |
java.io.BufferedReader |
in
Input Reader. |
int |
lineNumber
The actual line number being treated. |
TbgWriter |
log
Log file. |
java.lang.String |
logFile
Log file name. |
TbgWriter |
out
Output writer. |
TbgTags |
tagNames
The TbgTags reconized by the TBG. |
java.lang.String |
thisTab
The template tabulation. |
TbgVariables |
variables
Template variables. |
boolean |
warnings
Set to true if warnings have ocurred during the parsing. |
Constructor Summary | |
TbgContext()
This constructor creates a TbgContext object. |
|
TbgContext(TbgContext aContext)
This constructor creates a TbgContext object. |
Method Summary | |
java.lang.String |
getExternalVar(java.lang.String var)
Returns the value of the specified external variable. |
java.util.Hashtable |
getExtVars()
Returns the External Variables HashTable. |
void |
initialize()
Initializes the required properties. |
void |
setError(java.lang.String error)
Sets an error. |
void |
setExternalVar(java.lang.String var,
java.lang.String value)
Sets the relation between an external variable and its value. |
void |
setReader(java.io.Reader reader)
Sets the reader class to the context. |
void |
setWarning(java.lang.String warning)
Sets a warning. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String expression
public TbgTags tagNames
public TbgData dataManager
public TbgVariables variables
protected java.util.Hashtable externalVariables
public TbgWriter log
public java.lang.String logFile
public java.io.BufferedReader in
public TbgWriter out
public java.lang.String thisTab
public java.lang.String actTab
public boolean errors
public boolean warnings
public java.util.Vector errorMessages
public int lineNumber
Constructor Detail |
public TbgContext()
The properties of TbgContext have no values .
public TbgContext(TbgContext aContext)
Copies the attributes of the specified context to this new instance of TbgContext.
aContext
- TbgContextMethod Detail |
public java.lang.String getExternalVar(java.lang.String var)
var
- java.lang.String The variable to retrieve.public java.util.Hashtable getExtVars()
public void initialize()
public void setError(java.lang.String error) throws WBInputOutputException
error
- java.lang.String The error to display.public void setExternalVar(java.lang.String var, java.lang.String value)
var
- java.lang.String The variable name.value
- java.lang.String The variable value.public void setReader(java.io.Reader reader)
writer
- java.io.Reader The reader to set.public void setWarning(java.lang.String warning) throws WBInputOutputException
warning
- java.lang.String The warning to display.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |