private void addSettingsNodelets ( ) { parser . setXpath ( "/aspectran/settings" ) ; parser . addNodeEndlet ( text -> { assistant . applySettings ( ) ; } ) ; parser . setXpath ( "/aspectran/settings/setting" ) ; parser . addNodelet ( attrs -> { String name = attrs . get ( "name" ) ; String value = attrs . get ( "value" ) ; assistant . putSetting ( name , value ) ; parser . pushObject ( name ) ; } ) ; parser . addNodeEndlet ( text -> { String name = parser . popObject ( ) ; if ( text != null ) { assistant . putSetting ( name , text ) ; } } ) ; }
Adds the settings nodelets .