wt.inf.template.ix
Class TemplateGeneratorRegistry

java.lang.Object
  extended bywt.inf.template.ix.TemplateGeneratorRegistry

public class TemplateGeneratorRegistry
extends Object



Supported API: false

Extendable: false


Nested Class Summary
(package private)  class TemplateGeneratorRegistry.RegistryKey
           
(package private)  class TemplateGeneratorRegistry.RegistryOrderKey
           
 
Field Summary
private static String CLASSNAME
           
private  boolean isInited
           
private static File loadDir
           
private  Map orderMap
           
private  Map registryMap
           
private static String RESOURCE
           
private static String TMPL_RB
           
private  Map topElementMap
           
 
Constructor Summary
TemplateGeneratorRegistry()
          

Supported API: false
 
Method Summary
 IxbElement getRootElement(Class containerClass, String scriptIdentifier, IxbDocument emptyDoc)
          

Supported API: false
 TemplateFragmentGenerator getTemplateGenerator(Class containerClass, String handlerKey, String scriptIdentifier)
          

Supported API: false
 void initialize()
          

Supported API: false
static void main(String[] args)
           
 List massageToDoList(Class contClass, String scriptId, List toDoList)
          Internal method used to repair a broken todolist.
private  void updateRegistry(IxbDocument doc)
           
 Class validateContainerClassAttribute(String className)
           
private  Class validateItemHandler(String itemHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

loadDir

private static final File loadDir

orderMap

private Map orderMap

registryMap

private Map registryMap

topElementMap

private Map topElementMap

isInited

private boolean isInited

TMPL_RB

private static final String TMPL_RB
Constructor Detail

TemplateGeneratorRegistry

public TemplateGeneratorRegistry()
                          throws WTException


Supported API: false

Throws:
WTException
Method Detail

getTemplateGenerator

public TemplateFragmentGenerator getTemplateGenerator(Class containerClass,
                                                      String handlerKey,
                                                      String scriptIdentifier)
                                               throws WTException


Supported API: false

Parameters:
containerClass -
handlerKey -
scriptIdentifier -
Returns:
TemplateFragmentGenerator
Throws:
WTException

initialize

public void initialize()
                throws WTException


Supported API: false

Throws:
WTException

massageToDoList

public List massageToDoList(Class contClass,
                            String scriptId,
                            List toDoList)
                     throws WTException
Internal method used to repair a broken todolist. (It is defined in broken if the ToDoList is in a different order than the XML registry This method will make sure that the handlers are called in the correct order. This is to keep the getToDoList method of the Worklist easy to implement.

Supported API: false

Parameters:
contClass -
scriptId -
toDoList -
Returns:
List
Throws:
WTException

getRootElement

public IxbElement getRootElement(Class containerClass,
                                 String scriptIdentifier,
                                 IxbDocument emptyDoc)
                          throws WTException


Supported API: false

Parameters:
containerClass -
scriptIdentifier -
emptyDoc -
Returns:
IxbElement
Throws:
WTException

validateContainerClassAttribute

public Class validateContainerClassAttribute(String className)
                                      throws WTException
Throws:
WTException

validateItemHandler

private Class validateItemHandler(String itemHandler)
                           throws WTException
Throws:
WTException

updateRegistry

private void updateRegistry(IxbDocument doc)
                     throws WTException
Throws:
WTException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception