wt.tools
Class ModelRegistrar

java.lang.Object
  extended bywt.tools.generation.PackageTraverser
      extended bywt.tools.ModelRegistrar
All Implemented Interfaces:
ClassProcessor, ExecutableApp, PackageProcessor
Direct Known Subclasses:
DropGeneratedStoredProcsMigrator

public class ModelRegistrar
extends PackageTraverser
implements ClassProcessor, ExecutableApp


Field Summary
private static HashMap allRegistrars
           
private static MappedRegistry associationRegistry
           
private  ClassRegistry classRegistry
           
private static MappedRegistry descendentRegistry
           
private static boolean DESCRIBE_DEPENDENCY
           
private  ClassRegistry globalClassRegistry
           
private static MappedRegistry modelRegistry
           
private static boolean TRANSITION
           
private static String UNIX_FILE_SEP
           
 
Fields inherited from class wt.tools.generation.PackageTraverser
 
Constructor Summary
  ModelRegistrar()
          Deprecated.  
protected ModelRegistrar(String module_name)
           
 
Method Summary
 void difference(String targetPath, String basePath)
           
 void difference(String targetPath, String basePath, String diffPath)
           
 void execute(String genClasses)
           
 void execute(String[] args)
          

Supported API: false
static ModelRegistrar get(String module_name)
          Obtain the ModelRegistrar for a particular module.
private  String getModuleQualifiedName(String class_name)
           
 void processClass(String qualifiedName)
           
 void processDirectory(String path)
           
 void record()
           
 void recordAll()
           
 void registerClass(ClassClass the_class)
           
 void registerClass(String class_name)
           
 void registerClasses(String package_name, Collection classes)
           
 void removeEntries(String path)
           
 void unRegisterClass(String qualifiedName)
           
 
Methods inherited from class wt.tools.generation.PackageTraverser
defaultClassProcessor, processPackage, setModelRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIX_FILE_SEP

private static final String UNIX_FILE_SEP
See Also:
Constant Field Values

TRANSITION

private static final boolean TRANSITION

allRegistrars

private static HashMap allRegistrars

globalClassRegistry

private ClassRegistry globalClassRegistry

classRegistry

private ClassRegistry classRegistry

descendentRegistry

private static MappedRegistry descendentRegistry

associationRegistry

private static MappedRegistry associationRegistry

modelRegistry

private static MappedRegistry modelRegistry

DESCRIBE_DEPENDENCY

private static final boolean DESCRIBE_DEPENDENCY
Constructor Detail

ModelRegistrar

protected ModelRegistrar(String module_name)

ModelRegistrar

public ModelRegistrar()
Deprecated.  

Exists only for temporary backward compatibility.

Supported API: false

Method Detail

execute

public void execute(String[] args)
             throws WTException
Description copied from interface: ExecutableApp


Supported API: false

Specified by:
execute in interface ExecutableApp
Parameters:
args -
Throws:
WTException

execute

public void execute(String genClasses)
             throws WTException
Throws:
WTException

processClass

public void processClass(String qualifiedName)
                  throws WTException
Specified by:
processClass in interface ClassProcessor
Throws:
WTException

processDirectory

public void processDirectory(String path)
                      throws WTException
Throws:
WTException

removeEntries

public void removeEntries(String path)
                   throws WTException
Throws:
WTException

difference

public void difference(String targetPath,
                       String basePath)
                throws WTException
Throws:
WTException

difference

public void difference(String targetPath,
                       String basePath,
                       String diffPath)
                throws WTException
Throws:
WTException

recordAll

public void recordAll()

record

public void record()

registerClass

public void registerClass(String class_name)

registerClass

public void registerClass(ClassClass the_class)

unRegisterClass

public void unRegisterClass(String qualifiedName)

get

public static ModelRegistrar get(String module_name)
Obtain the ModelRegistrar for a particular module.

Supported API: false


registerClasses

public void registerClasses(String package_name,
                            Collection classes)

getModuleQualifiedName

private String getModuleQualifiedName(String class_name)