static public boolean isSet ( String flagName ) { if ( store == null ) return false ; NamePart np = partit ( flagName ) ; if ( debug ) { try { if ( ( np . storeName . length ( ) > 0 ) && ! store . nodeExists ( np . storeName ) ) System . out . println ( "Debug.isSet create node = " + flagName + " " + np ) ; else if ( null == store . node ( np . storeName ) . get ( np . keyName , null ) ) System . out . println ( "Debug.isSet create flag = " + flagName + " " + np ) ; } catch ( BackingStoreException e ) { } } // add it if it doesnt already exist boolean value = store . node ( np . storeName ) . getBoolean ( np . keyName , false ) ; store . node ( np . storeName ) . putBoolean ( np . keyName , value ) ; return value ; }
Return the value of the named flag . If it doesnt exist it will be added to the store and the menu with a value of false .