(String attribute)
| 280 | |
| 281 | |
| 282 | static public boolean getBoolean(String attribute) { |
| 283 | String value = get(attribute); //, null); |
| 284 | return Boolean.parseBoolean(value); |
| 285 | |
| 286 | /* |
| 287 | supposedly not needed, because anything besides 'true' |
| 288 | (ignoring case) will just be false.. so if malformed -> false |
| 289 | if (value == null) return defaultValue; |
| 290 | |
| 291 | try { |
| 292 | return (new Boolean(value)).booleanValue(); |
| 293 | } catch (NumberFormatException e) { |
| 294 | System.err.println("expecting an integer: " + attribute + " = " + value); |
| 295 | } |
| 296 | return defaultValue; |
| 297 | */ |
| 298 | } |
| 299 | |
| 300 | |
| 301 | static public void setBoolean(String attribute, boolean value) { |
no test coverage detected