public SimpleHTMLTag setProperties ( Map < String , String > properties ) { if ( properties == null || properties . isEmpty ( ) ) { this . properties = null ; } else { this . properties = new HashMap <> ( ) ; for ( Entry < String , String > entry : properties . entrySet ( ) ) { String key = entry . getKey ( ) ; key = UniformUtils . checkPropertyNameAndLowerCase ( key ) ; this . properties . put ( key , entry . getValue ( ) ) ; } } return this ; }
Replaces all properties of the tag with a map of properties indexed by key .