public void set ( Object ... nameValues ) { if ( nameValues . length % 2 != 0 ) { throw new IllegalArgumentException ( "Names and values must be in pairs" ) ; } for ( int i = 0 ; i < nameValues . length ; i += 2 ) { set ( ( String ) nameValues [ i ] , nameValues [ i + 1 ] ) ; } }
Set a multitude of attribute names and values .