public final void setAttributes ( final Map < String , Attribute > attributes ) { for ( Map . Entry < String , Attribute > entry : attributes . entrySet ( ) ) { Object attribute = entry . getValue ( ) ; if ( ! ( attribute instanceof Attribute ) ) { final String msg = "Attribute: '" + entry . getKey ( ) + "' is not an attribute. It is a: " + attribute ; LOGGER . error ( "Error setting the Attributes: {}" , msg ) ; throw new IllegalArgumentException ( msg ) ; } else { ( ( Attribute ) attribute ) . setConfigName ( entry . getKey ( ) ) ; } } this . attributes = attributes ; }
Set the attributes for this template .