public static boolean readPropertiesBoolean ( Properties _props , String _property ) { if ( _props . containsKey ( _property ) ) { if ( _props . getProperty ( _property ) . matches ( "(?i)(1|yes|true|enabled|on|y)" ) ) { return true ; } } return false ; }
Reads a property as boolean from an properties object . Returns true if read property matches 1 yes true enabled on y