@return value for given option key. @throws ConfigException if this AnalysisOptions do not contain the key.
(String key)
| 95 | * @throws ConfigException if this AnalysisOptions do not contain the key. |
| 96 | */ |
| 97 | public Object get(String key) { |
| 98 | if (!has(key)) { |
| 99 | throw new ConfigException("Cannot find option '" + key + "'," + |
| 100 | " please check your configuration and option key"); |
| 101 | } |
| 102 | return options.get(key); |
| 103 | } |
| 104 | |
| 105 | public String getString(String key) { |
| 106 | return (String) get(key); |