Class StringTable

java.lang.Object
org.dwcj.environment.StringTable

public final class StringTable extends Object
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 Details

    • getString

      public static String getString(String key)
      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

      public static String setString(String key, String value)
      Parameters:
      key - the key of the variable to access
      value - the contents to set in the field
      Returns:
      the value just set
    • clearString

      public static void clearString(String key)
      Clear an entry from the string table
      Parameters:
      key - the key of the variable to remove