com.ptc.windchill.upgrade.ius
Class DirectiveInstantiator

java.lang.Object
  extended bycom.ptc.windchill.upgrade.ius.DirectiveInstantiator

public class DirectiveInstantiator
extends Object


Field Summary
private static HashMap directiveClassToElementNameMap_
           
private static HashMap elementNameToDirectiveClassMap_
           
 
Constructor Summary
DirectiveInstantiator()
           
 
Method Summary
static void clearUpdateDirectiveMapping()
           
static UpdateDirective createDirectiveFrom(Element element)
           
static Element createElementFrom(UpdateDirective directive, Document dom_factory)
           
private static UpdateDirective createInstanceOfDirective(Class directive_class)
           
private static Class getClassNameForDirectiveElement(Element element)
           
static String getElementNameForDirective(UpdateDirective directive)
           
static Class[] getInstalledDirectiveClasses()
           
static void installUpdateDirective(Class directive_class)
           
static void installUpdateDirective(Class directive_class, String directive_element_name)
           
static void installUpdateDirective(String directive_class_name)
           
static void installUpdateDirective(String directive_class_name, String directive_element_name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementNameToDirectiveClassMap_

private static final HashMap elementNameToDirectiveClassMap_

directiveClassToElementNameMap_

private static final HashMap directiveClassToElementNameMap_
Constructor Detail

DirectiveInstantiator

public DirectiveInstantiator()
Method Detail

installUpdateDirective

public static void installUpdateDirective(String directive_class_name)
                                   throws ClassNotFoundException
Throws:
ClassNotFoundException

installUpdateDirective

public static void installUpdateDirective(String directive_class_name,
                                          String directive_element_name)
                                   throws ClassNotFoundException
Throws:
ClassNotFoundException

installUpdateDirective

public static void installUpdateDirective(Class directive_class)

installUpdateDirective

public static void installUpdateDirective(Class directive_class,
                                          String directive_element_name)

clearUpdateDirectiveMapping

public static void clearUpdateDirectiveMapping()

getElementNameForDirective

public static String getElementNameForDirective(UpdateDirective directive)
                                         throws DirectiveIOException
Throws:
DirectiveIOException

getInstalledDirectiveClasses

public static Class[] getInstalledDirectiveClasses()

createDirectiveFrom

public static UpdateDirective createDirectiveFrom(Element element)
                                           throws DirectiveIOException
Throws:
DirectiveIOException

createElementFrom

public static Element createElementFrom(UpdateDirective directive,
                                        Document dom_factory)
                                 throws DirectiveIOException
Throws:
DirectiveIOException

getClassNameForDirectiveElement

private static Class getClassNameForDirectiveElement(Element element)
                                              throws DirectiveIOException
Throws:
DirectiveIOException

createInstanceOfDirective

private static UpdateDirective createInstanceOfDirective(Class directive_class)
                                                  throws DirectiveIOException
Throws:
DirectiveIOException