public JsonNode wbSetLabel ( String id , String site , String title , String newEntity , String language , String value , boolean bot , long baserevid , String summary ) throws IOException , MediaWikiApiErrorException { Validate . notNull ( language , "Language parameter cannot be null when setting a label" ) ; Map < String , String > parameters = new HashMap < String , String > ( ) ; parameters . put ( "language" , language ) ; if ( value != null ) { parameters . put ( "value" , value ) ; } JsonNode response = performAPIAction ( "wbsetlabel" , id , site , title , newEntity , parameters , summary , baserevid , bot ) ; return response ; }
Executes the API action wbsetlabel for the given parameters .