(String attribute)
| 297 | |
| 298 | |
| 299 | static public boolean getBoolean(String attribute) { |
| 300 | String value = get(attribute); //, null); |
| 301 | return Boolean.parseBoolean(value); |
| 302 | |
| 303 | /* |
| 304 | supposedly not needed, because anything besides 'true' |
| 305 | (ignoring case) will just be false.. so if malformed -> false |
| 306 | if (value == null) return defaultValue; |
| 307 | |
| 308 | try { |
| 309 | return (new Boolean(value)).booleanValue(); |
| 310 | } catch (NumberFormatException e) { |
| 311 | System.err.println("expecting an integer: " + attribute + " = " + value); |
| 312 | } |
| 313 | return defaultValue; |
| 314 | */ |
| 315 | } |
| 316 | |
| 317 | |
| 318 | static public void setBoolean(String attribute, boolean value) { |
no test coverage detected