|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.Settings
public class Settings
This class holds the values of all the external data. The data can come from the .INI file or from the HTML parameters of the initial applet and is stored in a KeyedCollection.
Field Summary | |
---|---|
static java.lang.String |
COMPOSED_TAG
|
protected static java.lang.String |
contextFile
|
protected static java.lang.String |
dataFile
|
protected static int |
DefaultObjectsMaxNum
|
protected static int |
DefaultObjectsPerTypeMaxNum
|
protected static int |
DefaultObjectTypesMaxNum
|
static java.lang.String |
EXTERNAL_FILE
|
static java.lang.String |
FILE
|
protected static java.lang.String |
formatFile
|
static int |
initialBufferSize
|
static java.lang.String |
MEMORY
|
protected static java.lang.String |
modularity
|
static java.lang.String |
modularityDefaultValue
|
static java.lang.String |
MODULARITYGROUPED
|
static java.lang.String |
MODULARITYMIXED
|
static java.lang.String |
MODULARITYSPLIT
|
protected static java.lang.String |
operationFile
|
protected static java.lang.String |
processorFile
|
protected static java.lang.String |
serviceFile
|
static java.lang.String |
sgmlFullPath
|
static boolean |
showProgressBar
|
protected static java.lang.String |
tid
|
protected static java.lang.String |
TID
|
protected static java.lang.String |
typeFile
|
Constructor Summary | |
---|---|
Settings()
|
Method Summary | |
---|---|
static void |
checkForOptionalExternalFiles()
This method checks the btt.xml file to see if processes, views, or typed data are externalized. |
static void |
cleanup()
This method add into Settings class to reset static variables in Settings when init manager reset. |
static java.lang.String |
createFullPath(java.lang.String initialPath,
java.lang.String sgmlPath,
java.lang.String separator)
Creates the full path |
static java.lang.String |
createFullPathForURL(java.lang.String initialPath,
java.lang.String sgmlPath,
java.lang.String separator)
Creates the full path for URL |
static Externalizer |
getContextExternalizer()
Returns the contextExternalizer. |
static ExternalizerAccessor |
getExternalizerAccessor(java.lang.String kind)
Creates an instance of the ExternalizerAccessor for a particular "kind" of externalizer (processor, type, etc). |
static Hashtable |
getExternalizerAccessors()
Returns the externalizer accessors |
static java.lang.String |
getIniFileName()
Returns the title (name) of the INI file (without its path). |
static java.lang.String |
getIniPath()
Returns the path of the INI file (without its file name). |
static java.lang.String |
getIniPathAndFileName()
Returns the path and file name of the INI file. |
static java.lang.String |
getIpAddress()
Obtains the ipAddress. |
static java.lang.String |
getModularityValue()
Gets the modularity value. |
static java.lang.Thread |
getRemoveExpired()
|
static RemoveExpiredThread |
getRemover()
Returns the remover. |
static java.util.ResourceBundle |
getResBase1()
Returns the resBase1. |
static java.util.ResourceBundle |
getResBase2()
Returns the resBase2. |
static KeyedCollection |
getSettings()
Gets the settings. |
static java.lang.String |
getSgmlContextFile()
Gets the XML Contexts file. |
static java.lang.String |
getSgmlDataFile()
Gets the XML Data file. |
static java.lang.String |
getSgmlFormatFile()
Gets the XML Formats file. |
static java.lang.String |
getSgmlOperationFile()
Gets the XML Operations file. |
static java.lang.String |
getSgmlPath()
Returns the path to entity files. |
static java.lang.String |
getSgmlProcessorFile()
Gets the XML Processor file. |
static java.lang.Object[] |
getSgmlSelfDefinedOperation(java.lang.String aSelfDefinedOperationId)
Deprecated. use OperationInitializer.getSgmlSelfDefinedOperation(aSelfDefinedOperationId) instead |
static java.lang.Object[] |
getSgmlSelfDefinedProcessor(java.lang.String aSelfDefinedProcessorId)
Deprecated. using ProcessorInitializer.getSgmlSelfDefinedProcessor(aSelfDefinedProcessorId) instead |
static java.lang.String |
getSgmlServiceFile()
Gets the XML Services file. |
static java.lang.String |
getSgmlTypeFile()
Gets the XML Typed Data file. |
static Vector |
getSimpleTags(java.lang.String aFileName,
java.lang.String aKindOfFile)
Returns a Vector containing the simple tags used in each kind of file. |
static Hashtable |
getTagClassTableForContexts()
Deprecated. use initializer.getClassTable() instead |
static Hashtable |
getTagClassTableForData()
Deprecated. use initializer.getClassTable() instead |
static Hashtable |
getTagClassTableForFormats()
Deprecated. use initializer.getClassTable() instead |
static Hashtable |
getTagClassTableForOperations()
Deprecated. use initializer.getClassTable() instead |
static Hashtable |
getTagClassTableForProcessors()
Deprecated. use initializer.getClassTable() instead |
static Hashtable |
getTagClassTableForServices()
Deprecated. use initializer.getClassTable() instead |
static Hashtable |
getTagClassTableForTypes()
Deprecated. use initializer.getClassTable() instead |
static java.lang.String |
getTemporalFile()
Gets a temporary file. |
static java.lang.String |
getTID()
Gets the TID. |
static void |
initialize(KeyedCollection config)
This method add into Settings class to initialize or re-initialize Settings using new configurations. |
static boolean |
isOperationIncluded()
Returns the value of operationIncluded property. |
static boolean |
isProcessorIncluded()
Returns the value of the processorIncluded property. |
static boolean |
isTypeIncluded()
This method returns the value of typeIncluded property. |
static void |
linkReferences()
Links all the references in all the external files to their correct tags. |
static boolean |
readFromJar()
Checks whether the contents came from a JAR. |
static void |
reinitializeContext(java.lang.String option)
Reinitializes the Contexts. |
static void |
reinitializeData(java.lang.String option)
Reinitializes the Data. |
static void |
reinitializeFormat(java.lang.String option)
Reinitialize the format |
static void |
reinitializeOperation(java.lang.String option)
Reinitializes the Operations. |
static void |
reinitializeProcessor(java.lang.String option)
Reinitializes the Processors. |
static void |
reinitializeService(java.lang.String option)
Reinitializes the Services. |
static void |
reinitializeType(java.lang.String option)
Reinitializes the Types. |
static void |
reset()
Deprecated. use InitManager.reset(String initialPath) instead |
static void |
reset(java.lang.String initialPath)
Deprecated. use InitManager.reset(String initialPath) instead |
static void |
reset(java.net.URL aURL)
Deprecated. use InitManager.reset(String initialPath) instead |
static void |
resetExternalizers()
Resets all the initializers. |
static void |
resetSettings()
Resets all the settings definitions. |
static void |
resetSettings(java.util.Enumeration listTagId)
Reset all the elements which appear in the enumeration. |
static void |
resetSettings(java.lang.String aTagId)
Resets the specified setting element located at first level inside the settings keyed collection. |
protected static void |
resetSettings(java.lang.String aTagId,
KeyedCollection newSettings)
Resets the definition of the setting entity with id equals to aTagId. |
static void |
set(java.lang.String initialPath)
Reads an additional .xml file. |
static void |
setIpAddress(java.lang.String anIpAddress)
Sets the IpAddress in the settings KeyedCollection. |
static void |
setResBase1(java.util.ResourceBundle resBase1)
Sets the resBase1. |
static void |
setResBase2(java.util.ResourceBundle resBase2)
Sets the resBase2. |
static void |
setSettings(KeyedCollection aKeyedCollection)
Sets the settings. |
static void |
setTID(java.lang.String aTID)
Sets the TID in the settings KeyedCollection. |
static void |
setupFormatCache()
Setup format cache |
static void |
setupObjectCache()
Sets up the cache for formats and operations. |
static void |
setupOperationCache()
Sets up the cache for operations. |
static void |
setupProcessorCache()
Sets up the cache for processors. |
static void |
showProgressBar(boolean aBoolean)
Shows the progress bar if aBoolean is true. |
protected static void |
stopRemovingThread()
Interrupts the thread which removes objects from the cache tables. |
static boolean |
testFilenameCaseIsCorrect(java.lang.Object file,
java.lang.String absName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EXTERNAL_FILE
public static final java.lang.String MEMORY
public static final java.lang.String FILE
public static final java.lang.String MODULARITYGROUPED
public static final java.lang.String MODULARITYSPLIT
public static final java.lang.String MODULARITYMIXED
public static java.lang.String COMPOSED_TAG
public static java.lang.String modularityDefaultValue
public static java.lang.String sgmlFullPath
public static int initialBufferSize
public static boolean showProgressBar
protected static java.lang.String modularity
protected static java.lang.String contextFile
protected static java.lang.String dataFile
protected static java.lang.String formatFile
protected static java.lang.String operationFile
protected static java.lang.String processorFile
protected static java.lang.String serviceFile
protected static java.lang.String typeFile
protected static java.lang.String tid
protected static final java.lang.String TID
protected static final int DefaultObjectsMaxNum
protected static final int DefaultObjectsPerTypeMaxNum
protected static final int DefaultObjectTypesMaxNum
Constructor Detail |
---|
public Settings()
Method Detail |
---|
public static void checkForOptionalExternalFiles()
public static java.lang.String createFullPath(java.lang.String initialPath, java.lang.String sgmlPath, java.lang.String separator)
public static java.lang.String createFullPathForURL(java.lang.String initialPath, java.lang.String sgmlPath, java.lang.String separator)
public static ExternalizerAccessor getExternalizerAccessor(java.lang.String kind) throws DSEObjectNotFoundException, java.io.IOException
The externalizer accessors are needed to break package dependencies.
DSEObjectNotFoundException
java.io.IOException
public static Hashtable getExternalizerAccessors()
public static java.lang.String getIniFileName()
public static java.lang.String getIniPath()
public static java.lang.String getIniPathAndFileName()
public static java.lang.String getModularityValue()
public static KeyedCollection getSettings()
public static java.lang.String getSgmlContextFile() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static java.lang.String getSgmlDataFile() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static java.lang.String getSgmlFormatFile() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static java.lang.String getSgmlOperationFile() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static java.lang.String getSgmlPath() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static java.lang.String getSgmlProcessorFile() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static java.lang.Object[] getSgmlSelfDefinedOperation(java.lang.String aSelfDefinedOperationId)
aSelfDefinedOperationId
- java.lang.String
public static java.lang.Object[] getSgmlSelfDefinedProcessor(java.lang.String aSelfDefinedProcessorId)
aSelfDefinedProcessorId
- java.lang.String
public static java.lang.String getSgmlServiceFile() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static java.lang.String getSgmlTypeFile() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static Vector getSimpleTags(java.lang.String aFileName, java.lang.String aKindOfFile) throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static Hashtable getTagClassTableForContexts()
public static Hashtable getTagClassTableForData()
public static Hashtable getTagClassTableForFormats()
public static Hashtable getTagClassTableForOperations()
public static Hashtable getTagClassTableForProcessors()
public static Hashtable getTagClassTableForServices()
public static Hashtable getTagClassTableForTypes()
public static java.lang.String getTemporalFile()
public static java.lang.String getTID()
public static boolean isProcessorIncluded()
public static boolean isOperationIncluded()
public static boolean isTypeIncluded()
public static void linkReferences() throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static boolean readFromJar()
public static void reinitializeContext(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
option
-
java.io.IOException
DSEObjectNotFoundException
public static void reinitializeData(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
option
-
java.io.IOException
DSEObjectNotFoundException
public static void reinitializeFormat(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
option
-
java.io.IOException
DSEObjectNotFoundException
public static void reinitializeOperation(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
option
-
java.io.IOException
DSEObjectNotFoundException
public static void reinitializeProcessor(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
option
-
java.io.IOException
DSEObjectNotFoundException
public static void reinitializeService(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
option
-
java.io.IOException
DSEObjectNotFoundException
public static void reinitializeType(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
option
-
java.io.IOException
DSEObjectNotFoundException
public static void reset() throws java.io.IOException, DSEObjectNotFoundException, DSEException
java.io.IOException
DSEObjectNotFoundException
DSEException
protected static void stopRemovingThread()
public static void reset(java.lang.String initialPath) throws java.io.IOException, DSEObjectNotFoundException, DSEException
java.io.IOException
DSEObjectNotFoundException
DSEException
public static void reset(java.net.URL aURL) throws java.io.IOException, DSEObjectNotFoundException, DSEException
java.io.IOException
DSEObjectNotFoundException
DSEException
public static void resetExternalizers() throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static void resetSettings() throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static void resetSettings(java.lang.String aTagId) throws java.io.IOException
aTagId
- java.lang.String
java.io.IOException
protected static void resetSettings(java.lang.String aTagId, KeyedCollection newSettings) throws java.io.IOException
aTagId
- java.lang.StringnewSettings
- com.ibm.btt.base.KeyedCollection
java.io.IOException
public static void resetSettings(java.util.Enumeration listTagId) throws java.io.IOException
java.io.IOException
public static void set(java.lang.String initialPath) throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static void setSettings(KeyedCollection aKeyedCollection)
aKeyedCollection
- com.ibm.btt.base.KeyedCollectionpublic static void setTID(java.lang.String aTID)
public static void setupFormatCache()
public static void setupObjectCache()
public static void setupOperationCache()
public static void setupProcessorCache()
public static void showProgressBar(boolean aBoolean)
aBoolean
- booleanpublic static java.lang.Thread getRemoveExpired()
public static RemoveExpiredThread getRemover()
public static java.util.ResourceBundle getResBase1()
public static java.util.ResourceBundle getResBase2()
public static void setResBase1(java.util.ResourceBundle resBase1)
resBase1
- The resBase1 to setpublic static void setResBase2(java.util.ResourceBundle resBase2)
resBase2
- The resBase2 to setpublic static java.lang.String getIpAddress()
public static void setIpAddress(java.lang.String anIpAddress)
public static Externalizer getContextExternalizer()
public static boolean testFilenameCaseIsCorrect(java.lang.Object file, java.lang.String absName) throws java.io.FileNotFoundException, java.io.IOException
file
- absName
-
java.io.FileNotFoundException
java.io.IOException
public static void cleanup()
public static void initialize(KeyedCollection config)
config
-
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |