wt.tools
Class DisplayNameGenerator

java.lang.Object
  extended bycom.ptc.windchill.util.packaging.processor.PackagingTraverser
      extended bywt.tools.DisplayNameGenerator
All Implemented Interfaces:
ClassProcessor, ClassProcessor, ExecutableApp, ModuleProcessor, PackageProcessor, RegistryProcessor, SubsystemProcessor

public class DisplayNameGenerator
extends PackagingTraverser
implements ClassProcessor, ExecutableApp

DisplayNameGenerator is for generating default ResourceInfo entries for modeled metadata elements.

Supported API: false

Extendable: false


Field Summary
(package private) static boolean CLEAN_UP
           
(package private) static boolean GENERATE
           
private  ResourceInfo info
           
private  Hashtable obsoleteValues
           
private  Hashtable pckgInfos
           
private  PrintStream report
           
(package private) static boolean REPORT
           
 
Fields inherited from class com.ptc.windchill.util.packaging.processor.PackagingTraverser
PROCESS_3RD_PARTY, PROCESS_DEPS, PROCESS_MULTIPLE, PROCESS_NON_MODELED, RECURSE_DEPS
 
Constructor Summary
DisplayNameGenerator()
           
 
Method Summary
 void execute(String arg)
           
 void execute(String[] args)
          

Supported API: false
private static boolean isModeled(String key)
           
protected  ResourceInfo obtainPackageInfo(String pckg)
           
protected static ResourceInfo obtainResourceInfo(String pckg)
           
 void processClass(ClassClass theClass)
           
protected  void processClass(ClassClass theClass, ResourceInfo resourceInfo, PrintStream report)
           
 void processClass(ClassIdentifier class_identifier)
          Construct a Locale instance for the args String array.
 void processClass(String qualifiedName)
          Process the named class.
 void processPackage(String pckg)
          Process the named package.
 void writeResults()
           
protected static void writeResults(ResourceInfo resourceInfo)
           
 
Methods inherited from class com.ptc.windchill.util.packaging.processor.PackagingTraverser
argsOK, getModuleIdentifier, initialize, isFile, isIncludedModule, isIncludedPackage, packageName, postProcess, processDependency, processedModule, processFile, processModule, processModule, processModule, processModule, processPackage, processRegistry, processSubsystem, processSubsystem, processTarget, processTargets, setClassProcessor, setModuleProcessor, setPackageProcessor, setRegistryProcessor, setSubsystemProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPORT

static final boolean REPORT

GENERATE

static final boolean GENERATE

CLEAN_UP

static final boolean CLEAN_UP

report

private PrintStream report

info

private ResourceInfo info

pckgInfos

private Hashtable pckgInfos

obsoleteValues

private Hashtable obsoleteValues
Constructor Detail

DisplayNameGenerator

public DisplayNameGenerator()
Method Detail

execute

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


Supported API: false

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

execute

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

obtainPackageInfo

protected ResourceInfo obtainPackageInfo(String pckg)
                                  throws WTException
Throws:
WTException

obtainResourceInfo

protected static ResourceInfo obtainResourceInfo(String pckg)
                                          throws WTException
Throws:
WTException

processClass

public void processClass(ClassIdentifier class_identifier)
                  throws WTException
Construct a Locale instance for the args String array.
   Example Usage:
  	LocaleUtilities.makeLocale( ["xyz","fr"], 1 )   // returns fr Locale

  	LocaleUtilities.makeLocale( ["fr","CA"], 0 )    // returns fr_CA Locale

  

Specified by:
processClass in interface ClassProcessor
Overrides:
processClass in class PackagingTraverser
Parameters:
class_identifier -
Returns:
A Locale for the args String array.
Throws:
WTException

processClass

public void processClass(String qualifiedName)
                  throws WTException
Description copied from class: PackagingTraverser
Process the named class.

Supported API: false

Specified by:
processClass in interface ClassProcessor
Overrides:
processClass in class PackagingTraverser
Parameters:
qualifiedName -
Throws:
WTException

processClass

public void processClass(ClassClass theClass)
                  throws WTException
Throws:
WTException

processClass

protected void processClass(ClassClass theClass,
                            ResourceInfo resourceInfo,
                            PrintStream report)
                     throws WTException
Throws:
WTException

processPackage

public void processPackage(String pckg)
                    throws WTException
Description copied from class: PackagingTraverser
Process the named package.

Supported API: false

Specified by:
processPackage in interface PackageProcessor
Overrides:
processPackage in class PackagingTraverser
Parameters:
pckg -
Throws:
WTException

writeResults

public void writeResults()
                  throws WTException
Throws:
WTException

writeResults

protected static void writeResults(ResourceInfo resourceInfo)
                            throws WTException
Throws:
WTException

isModeled

private static boolean isModeled(String key)