public void putSetting ( String name , String value ) throws IllegalRuleException { if ( StringUtils . isEmpty ( name ) ) { throw new IllegalRuleException ( "Default setting name can not be null" ) ; } DefaultSettingType settingType = DefaultSettingType . resolve ( name ) ; if ( settingType == null ) { throw new IllegalRuleException ( "No such default setting name as '" + name + "'" ) ; } settings . put ( settingType , value ) ; }
Puts the setting value .