MCPcopy Create free account
hub / github.com/PCGen/pcgen / addGlobalModel

Method addGlobalModel

code/src/java/pcgen/output/publish/OutputDB.java:319–327  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers 2

PCGenPropBundleClass · 0.95

Calls 1

putMethod · 0.65

Tested by

no test coverage detected