protected boolean addAllToAttributeValueMap ( final Map < String , String > map ) { if ( map != null && map . size ( ) > 0 ) { final Collection < AbstractHtml5SharedObject > sharedObjects = getSharedObjects ( ) ; boolean listenerInvoked = false ; final Collection < WriteLock > writeLocks = lockAndGetWriteLocks ( ) ; try { getAttributeValueMap ( ) . putAll ( map ) ; setModified ( true ) ; invokeValueChangeListeners ( sharedObjects ) ; listenerInvoked = true ; } finally { for ( final Lock lock : writeLocks ) { lock . unlock ( ) ; } } pushQueues ( sharedObjects , listenerInvoked ) ; return listenerInvoked ; } return false ; }
adds all to the attribute value map .