Package org.dwcj.environment
Class StringTable
java.lang.Object
org.dwcj.environment.StringTable
Access the STBL String Table,
which is persistent, and global scope in this thread
Values can be changed programmatically or set in the config file, e.g.:
SET COMPANY=Acme
Then you can access the value with
String val = org.dwcj.environment.StringTable.getString("COMPANY")
-
Method Summary
-
Method Details
-
getString
Access a value in the String Table (STBL).- Parameters:
key- the key of the variable to access- Returns:
- the contents of the field
- Throws:
NoSuchElementException- in case the string table entry does not exist
-
setString
- Parameters:
key- the key of the variable to accessvalue- the contents to set in the field- Returns:
- the value just set
-
clearString
Clear an entry from the string table- Parameters:
key- the key of the variable to remove
-