public void addParameter ( final String tag , final Object value ) { if ( Util . empty ( tag ) ) { throw new IllegalArgumentException ( "A tag must be provided" ) ; } TemplateModel model = getOrCreateComponentModel ( ) ; if ( model . parameters == null ) { model . parameters = new HashMap <> ( ) ; } model . parameters . put ( tag , value ) ; }
Add a template parameter .