public boolean getBooleanAttribute ( String name ) throws SlickXMLException { String value = getAttribute ( name ) ; if ( value . equalsIgnoreCase ( "true" ) ) { return true ; } if ( value . equalsIgnoreCase ( "false" ) ) { return false ; } throw new SlickXMLException ( "Value read: '" + getAttribute ( name ) + "' is not a boolean" ) ; }
Get the value specified for a given attribute on this element as a boolean .