com.ptc.wgmecad
Class CCAComponentFactory

java.lang.Object
  extended bycom.ptc.wgmecad.CCAComponentFactory

public class CCAComponentFactory
extends Object


Nested Class Summary
private static class CCAComponentFactory.CCAStructure
          this internal class is just a way to represent the class and description data
 
Field Summary
private static HashMap compRegistry
           
 
Constructor Summary
CCAComponentFactory()
           
 
Method Summary
static void clearRegistry()
           
static Component getComponentByCommandLineOption(String option, CCAWGMMain ccawgm)
          This method creates an instance of the component referenced by a comand line option.
private static Constructor GetComponentConstructorByCommandLineOption(String option)
           
static String getComponentDisplayName(Component comp)
           
static String[] getDisplayableRegisteredComponents()
           
static boolean isValidComponentCommandLineOption(String option)
           
static void registerComponent(String displayName, String commandLineOption, Class comp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compRegistry

private static HashMap compRegistry
Constructor Detail

CCAComponentFactory

public CCAComponentFactory()
Method Detail

registerComponent

public static void registerComponent(String displayName,
                                     String commandLineOption,
                                     Class comp)

isValidComponentCommandLineOption

public static boolean isValidComponentCommandLineOption(String option)

getComponentByCommandLineOption

public static Component getComponentByCommandLineOption(String option,
                                                        CCAWGMMain ccawgm)
                                                 throws ComponentNotRegisteredException,
                                                        ComponentInstantiationException
This method creates an instance of the component referenced by a comand line option.

Throws:
ComponentNotRegisteredException
ComponentInstantiationException

GetComponentConstructorByCommandLineOption

private static Constructor GetComponentConstructorByCommandLineOption(String option)
                                                               throws ComponentNotRegisteredException,
                                                                      ComponentInstantiationException
Throws:
ComponentNotRegisteredException
ComponentInstantiationException

getDisplayableRegisteredComponents

public static String[] getDisplayableRegisteredComponents()

clearRegistry

public static void clearRegistry()

getComponentDisplayName

public static String getComponentDisplayName(Component comp)