kawigi.template
Class TemplateManager

java.lang.Object
  |
  +--kawigi.template.TemplateManager

public class TemplateManager
extends java.lang.Object

A class that keeps a list of Templatable classes.


Constructor Summary
TemplateManager()
           
 
Method Summary
static java.util.Set getKeys()
          Returns the set of strings that are the names of the templatable objects.
static kawigi.template.Templatable getTemplatable(java.lang.String name)
          Gets a templatable object by name.
static void register(java.lang.String name, kawigi.template.Templatable templatable)
          Adds a Templatable object to the template manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateManager

public TemplateManager()
Method Detail

register

public static void register(java.lang.String name,
                            kawigi.template.Templatable templatable)
Adds a Templatable object to the template manager. This is normally called from the static constructor of the Templatable classes.


getTemplatable

public static kawigi.template.Templatable getTemplatable(java.lang.String name)
Gets a templatable object by name. The name will correspond to a Template object.


getKeys

public static java.util.Set getKeys()
Returns the set of strings that are the names of the templatable objects.