wt.tools.resource
Class ListResourceBuilder

java.lang.Object
  extended bywt.tools.resource.ListResourceBuilder
All Implemented Interfaces:
ResourceBuilder
Direct Known Subclasses:
CategorizedListResourceBuilder

public class ListResourceBuilder
extends Object
implements ResourceBuilder



Supported API: false

Extendable: false


Field Summary
protected static boolean ACCUM_GROUP
           
private static String CLASSNAME
           
private static Method compile
           
protected static String COMPILE
           
protected static boolean COMPILE_GROUP
           
protected static boolean COMPILE_INPROC
           
protected static String COMPILE_TO
           
private static Object compiler
           
private static boolean compiler_loadable
           
protected static boolean DEL_SOURCE
           
private static HashMap encodings
           
private  String extendClass
           
protected static String isolate
           
protected static String LINE_SEP
           
private static String RESOURCE
           
 
Fields inherited from interface wt.tools.resource.ResourceBuilder
ALLOW_EMPTY_BUNDLE
 
Constructor Summary
ListResourceBuilder()
           
 
Method Summary
protected static void accumulateEncodings()
           
protected  void addToGroup(String encoding, String file_spec)
           
 void buildResource(Dictionary keyValues, Dictionary constants, String name, Locale locale)
          Use this ResourceInfo to build a resource, which can be used at run-time, for resource value lookups.
static void compileGroups()
           
protected static void compileSource(String encoding, String file_spec)
           
protected static void compileSourceInProcess(String encoding, String file_spec)
           
protected static void compileSourceShell(String encoding, String file_spec)
           
protected static boolean deleteFile(File file)
           
static void dispose()
          Dispose of resources associated with ListResourceBuilder.
protected  void finialize()
          finialize this object, cleans up temp file resources if dispose is never called.
protected  String getDefaultSuperClass()
           
protected static File getEncodingDirectory(String encoding, boolean isolated)
           
 String getExtendClass()
          Gets the value of the attribute: extendClass; The name of the class that the runtime built resource will extend.
 String getFileExtension()
          

Supported API: false
protected static String getFileList(File dir)
           
protected  String handleValue(Object value)
           
 boolean isChainedToParent()
          

Supported API: false
protected static void moveFile(File file, File encoding_dir, int duplicate_dir)
           
 void setExtendClass(String a_ExtendClass)
          Sets the value of the attribute: extendClass; The name of the class that the runtime built resource will extend.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

extendClass

private String extendClass

LINE_SEP

protected static final String LINE_SEP

COMPILE

protected static final String COMPILE

COMPILE_TO

protected static final String COMPILE_TO

COMPILE_INPROC

protected static final boolean COMPILE_INPROC

ACCUM_GROUP

protected static final boolean ACCUM_GROUP

COMPILE_GROUP

protected static final boolean COMPILE_GROUP

DEL_SOURCE

protected static final boolean DEL_SOURCE

isolate

protected static final String isolate

encodings

private static HashMap encodings

compiler_loadable

private static boolean compiler_loadable

compiler

private static Object compiler

compile

private static Method compile
Constructor Detail

ListResourceBuilder

public ListResourceBuilder()
Method Detail

getExtendClass

public String getExtendClass()
Gets the value of the attribute: extendClass; The name of the class that the runtime built resource will extend. If nothing is specified, resource will extend java.util.ListResourceBundle.

Supported API: false

Specified by:
getExtendClass in interface ResourceBuilder
Returns:
String

setExtendClass

public void setExtendClass(String a_ExtendClass)
Sets the value of the attribute: extendClass; The name of the class that the runtime built resource will extend. If nothing is specified, resource will extend java.util.ListResourceBundle.

Supported API: false

Specified by:
setExtendClass in interface ResourceBuilder
Parameters:
a_ExtendClass -

buildResource

public void buildResource(Dictionary keyValues,
                          Dictionary constants,
                          String name,
                          Locale locale)
                   throws WTPropertyVetoException,
                          FileNotFoundException,
                          IOException
Use this ResourceInfo to build a resource, which can be used at run-time, for resource value lookups. Example Bundle file names: C:\Windchill\codebase\wt\project\projectResource.class C:\Windchill\codebase\wt\project\projectResource_fr.class

Supported API: false

Specified by:
buildResource in interface ResourceBuilder
Parameters:
keyValues -
constants -
locale -
name -
Throws:
WTPropertyVetoException
FileNotFoundException
IOException

getFileExtension

public String getFileExtension()


Supported API: false

Specified by:
getFileExtension in interface ResourceBuilder
Returns:
String

moveFile

protected static void moveFile(File file,
                               File encoding_dir,
                               int duplicate_dir)

addToGroup

protected void addToGroup(String encoding,
                          String file_spec)

getEncodingDirectory

protected static File getEncodingDirectory(String encoding,
                                           boolean isolated)

accumulateEncodings

protected static void accumulateEncodings()

compileGroups

public static void compileGroups()

compileSource

protected static void compileSource(String encoding,
                                    String file_spec)

compileSourceShell

protected static void compileSourceShell(String encoding,
                                         String file_spec)

compileSourceInProcess

protected static void compileSourceInProcess(String encoding,
                                             String file_spec)

getFileList

protected static String getFileList(File dir)
                             throws WTException
Throws:
WTException

deleteFile

protected static boolean deleteFile(File file)

dispose

public static void dispose()
Dispose of resources associated with ListResourceBuilder. The temporary file is closed and deleted.

Supported API: true


finialize

protected void finialize()
                  throws Throwable
finialize this object, cleans up temp file resources if dispose is never called.

Throws:
Throwable

handleValue

protected String handleValue(Object value)

getDefaultSuperClass

protected String getDefaultSuperClass()

isChainedToParent

public boolean isChainedToParent()


Supported API: false

Specified by:
isChainedToParent in interface ResourceBuilder
Returns:
boolean true if parent bundles are loaded for looking up entries not found in immediate locale file