|
IBM Branch 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
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 java.util.Hashtable |
definedOps
|
protected static java.util.Hashtable |
definedProcs
|
static java.lang.String |
FILE
|
protected static java.lang.String |
formatFile
|
static java.lang.String |
iniPathAndFileName
|
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 DSE.INI file to see if processes, views, or typed data are externalized. |
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, view, 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)
Gets the XML self-defined operation file name corresponding to an operation id. |
static java.lang.Object[] |
getSgmlSelfDefinedProcessor(java.lang.String aSelfDefinedProcessorId)
Gets the XML self-defined processor file name corresponding to a processor id. |
static java.lang.Object[] |
getSgmlSelfDefinedView(java.lang.String aSelfDefinedViewId)
Gets the XML self-defined view file name corresponding to a view id. |
static java.lang.String |
getSgmlServiceFile()
Gets the XML Services file. |
static java.lang.String |
getSgmlTypeFile()
Gets the XML Typed Data file. |
static java.lang.String |
getSgmlViewFile()
Gets the XML Views 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()
Gets the table of tags for Contexts. |
static Hashtable |
getTagClassTableForData()
Gets the table of tags for Data. |
static Hashtable |
getTagClassTableForFormats()
Gets the table of tags for Formats. |
static Hashtable |
getTagClassTableForOperations()
Gets the table of tags for Operations. |
static Hashtable |
getTagClassTableForProcessors()
Gets the table of tags for Processors. |
static Hashtable |
getTagClassTableForServices()
Gets the table of tags for Services. |
static Hashtable |
getTagClassTableForTypes()
Gets the table of tags for Types. |
static java.lang.String |
getTemporalFile()
Gets a temporary file. |
static java.lang.String |
getTID()
Gets the TID. |
static void |
initializeExternalizers()
Initializes the externalizers. |
static void |
initializeExternalizers(java.lang.String option)
Reads into memory all the generic external files and then links all of their references. |
static void |
initializeExternalizersFromJar(java.lang.String option)
Initializes the externalizers by reading from JAR files. |
static void |
initializeExternalizersNotFromJar(java.lang.String option)
Initializes the externalizers by reading them from text files. |
static void |
initializeSplitExternalizers()
Initializes all the externalizers to be empty (not null). |
static boolean |
isProcessorIncluded()
Returns the value of the processorIncluded property. |
static boolean |
isTypeIncluded()
This method returns the value of typeIncluded property. |
static boolean |
isViewIncluded()
This method returns the value of viewIncluded 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)
|
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 |
reinitializeView(java.lang.String option)
Reinitializes the Views. |
static void |
reset()
Initializes the DSE.INI. |
static void |
reset(java.io.BufferedInputStream aStream)
Reads the .INI file and initializes the Settings class variable with all the information. |
static void |
reset(java.lang.String initialPath)
Reads the .INI file and then initializes the Setting class variables based on the file. |
static void |
reset(java.net.URL aURL)
Reads the .INI file and then initializes the Setting class variables based on the file. |
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 |
resetTagClassTables()
Initializes the tables that say what class is instantiated with every tag. |
static void |
set(java.lang.String initialPath)
Reads an additional .INI file. |
static void |
setContextExternalizer(Externalizer contextExternalizer)
Sets the contextExternalizer. |
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 |
setTagClassTableForTypes(Hashtable hashtable)
Set tag class table for types |
static void |
setTID(java.lang.String aTID)
Sets the TID in the settings KeyedCollection. |
static void |
setupFormatCache()
|
static void |
setupObjectCache()
Sets up the cache for formats and 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. |
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 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 java.lang.String iniPathAndFileName
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 java.util.Hashtable definedOps
protected static java.util.Hashtable definedProcs
protected static final java.lang.String TID
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.Object[] getSgmlSelfDefinedView(java.lang.String aSelfDefinedViewId)
aSelfDefinedViewId
- java.lang.String
public static java.lang.String getSgmlServiceFile() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static java.lang.String getSgmlTypeFile() throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static java.lang.String getSgmlViewFile() 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 void initializeExternalizers() throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static void initializeExternalizers(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static void initializeExternalizersFromJar(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static void initializeExternalizersNotFromJar(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static void initializeSplitExternalizers() throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static boolean isProcessorIncluded()
public static boolean isTypeIncluded()
public static boolean isViewIncluded()
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
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 reinitializeView(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
public static void reset(java.io.BufferedInputStream aStream) 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 resetTagClassTables() throws DSEObjectNotFoundException
DSEObjectNotFoundException
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 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 void setContextExternalizer(Externalizer contextExternalizer)
contextExternalizer
- The contextExternalizer to setpublic static void setTagClassTableForTypes(Hashtable hashtable)
hashtable
-
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |