wt.tools
Class DisplayNameGenerator
java.lang.Object
com.ptc.windchill.util.packaging.processor.PackagingTraverser
wt.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
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 |
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
DisplayNameGenerator
public DisplayNameGenerator()
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)