Directly adds a new TemplateModel as part of the "Global" Models in OutputDB. @param name The name to be used when the TemplateModel is referred to in FreeMarker @param model The TemplateModel to be added to the global models
(String name, TemplateModel model)
| 317 | * The TemplateModel to be added to the global models |
| 318 | */ |
| 319 | public static void addGlobalModel(String name, TemplateModel model) |
| 320 | { |
| 321 | TemplateModel old = globalModels.put(name, model); |
| 322 | if (old != null) |
| 323 | { |
| 324 | throw new UnsupportedOperationException( |
| 325 | "Cannot have two Global Output Models using the same name: " + name); |
| 326 | } |
| 327 | } |
| 328 | } |
no test coverage detected