|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.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
|
static java.lang.String |
FILE
|
static java.lang.String |
iniPathAndFileName
|
static int |
initialBufferSize
|
static java.lang.String |
MEMORY
|
static java.lang.String |
modularityDefaultValue
|
static java.lang.String |
MODULARITYGROUPED
|
static java.lang.String |
MODULARITYMIXED
|
static java.lang.String |
MODULARITYSPLIT
|
static java.lang.String |
sgmlFullPath
|
static boolean |
showProgressBar
|
Constructor Summary | |
Settings()
|
Method Summary | |
static void |
checkForOptionalExternalFiles()
This method will check DSE.INI to see if processes, views, or typed data have been 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 ExternalizerAccessor |
getExternalizerAccessor(java.lang.String kind)
This method will create 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) For example: "DSE.INI" |
static java.lang.String |
getIniPath()
Returns the path of the INI file (without its file name) For example: "C:\DSE\" |
static java.lang.String |
getIniPathAndFileName()
Returns the path and file name of the INI file. |
static java.lang.String |
getModularityValue()
Gets the modularity value. |
static KeyedCollection |
getSettings()
Gets the settings. |
static java.lang.String |
getSgmlContextFile()
Gets the SGML Contexts file. |
static java.lang.String |
getSgmlDataFile()
Gets the SGML Data file. |
static java.lang.String |
getSgmlFormatFile()
Gets the SGML Formats file. |
static java.lang.String |
getSgmlOperationFile()
Gets the SGML Operations file. |
static java.lang.String |
getSgmlPath()
Returns the path to entity files. |
static java.lang.String |
getSgmlProcessorFile()
Gets the SGML Processor file. |
static java.lang.Object[] |
getSgmlSelfDefinedOperation(java.lang.String aSelfDefinedOperationId)
Gets the SGML self-defined operation file name corresponding to an operation id. |
static java.lang.Object[] |
getSgmlSelfDefinedProcessor(java.lang.String aSelfDefinedProcessorId)
Gets the SGML self-defined processor file name corresponding to a processor id. |
static java.lang.Object[] |
getSgmlSelfDefinedView(java.lang.String aSelfDefinedViewId)
Gets the SGML self-defined view file name corresponding to a view id. |
static java.lang.String |
getSgmlServiceFile()
Gets the SGML Services file. |
static java.lang.String |
getSgmlTypeFile()
Gets the SGML Typed Data file. |
static java.lang.String |
getSgmlViewFile()
Gets the SGML Views file. |
static Vector |
getSimpleTags(java.lang.String aFileName,
java.lang.String aKindOfFile)
Returns the list of the simple tags used in each kind of file as an Vector. |
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)
This method will read into memory all the generic external files and then link all of their references. |
static void |
initializeExternalizersFromJar(java.lang.String option)
This method will initialize the externalizers by reading from JAR files. |
static void |
initializeExternalizersNotFromJar(java.lang.String option)
This method will initialize the externalizers by reading them from text files. |
static void |
initializeSplitExternalizers()
This method must only be called when the modularity is "split". |
static boolean |
isProcessorIncluded()
This method returns the value of 'processorIncluded' |
static boolean |
isTypeIncluded()
This method returns the value of 'typeIncluded' |
static boolean |
isViewIncluded()
This method returns the value of 'viewIncluded' |
static void |
linkReferences()
This method will link 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)
Reinitializes the Formats. |
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 |
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 |
setSettings(KeyedCollection aKeyedCollection)
Sets the settings. |
static void |
setTID(java.lang.String aTID)
Sets the TID in the settings KeyedCollection. |
static void |
setupObjectCache()
This method will use the external parameters: initialization.enableFormatsCache initialization.enableOperationsCache They will be used to setup the cache for formats and operations. |
static void |
showProgressBar(boolean aBoolean)
Shows the progress bar if aBoolean is true. |
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
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)
iniPath
- java.lang.StringsgmlPath
- java.lang.Stringseparator
- java.lang.Stringpublic static java.lang.String createFullPathForURL(java.lang.String initialPath, java.lang.String sgmlPath, java.lang.String separator)
iniPath
- java.lang.StringsgmlPath
- java.lang.Stringseparator
- java.lang.Stringpublic static ExternalizerAccessor getExternalizerAccessor(java.lang.String kind) throws 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
public static java.lang.String getSgmlDataFile() throws DSEObjectNotFoundException
public static java.lang.String getSgmlFormatFile() throws DSEObjectNotFoundException
public static java.lang.String getSgmlOperationFile() throws DSEObjectNotFoundException
public static java.lang.String getSgmlPath() throws DSEObjectNotFoundException
public static java.lang.String getSgmlProcessorFile() throws DSEObjectNotFoundException
public static java.lang.Object[] getSgmlSelfDefinedOperation(java.lang.String aSelfDefinedOperationId)
aSelfDefinedOperationId
- java.lang.Stringpublic static java.lang.Object[] getSgmlSelfDefinedProcessor(java.lang.String aSelfDefinedProcessorId)
aSelfDefinedProcessorId
- java.lang.Stringpublic static java.lang.Object[] getSgmlSelfDefinedView(java.lang.String aSelfDefinedViewId)
aSelfDefinedViewId
- java.lang.Stringpublic static java.lang.String getSgmlServiceFile() throws DSEObjectNotFoundException
public static java.lang.String getSgmlTypeFile() throws DSEObjectNotFoundException
public static java.lang.String getSgmlViewFile() throws DSEObjectNotFoundException
public static Vector getSimpleTags(java.lang.String aFileName, java.lang.String aKindOfFile) throws java.io.IOException, DSEObjectNotFoundException
boolean
- isInitiallizationFileaFileName
- java.lang.StringaKindOfFile
- java.lang.Stringpublic 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
public static void initializeExternalizers(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void initializeExternalizersFromJar(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void initializeExternalizersNotFromJar(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void initializeSplitExternalizers() throws 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
public static boolean readFromJar()
public static void reinitializeContext(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void reinitializeData(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void reinitializeFormat(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void reinitializeOperation(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void reinitializeProcessor(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void reinitializeService(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void reinitializeType(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void reinitializeView(java.lang.String option) throws java.io.IOException, DSEObjectNotFoundException
public static void reset() throws java.io.IOException, DSEObjectNotFoundException, DSEException
public static void reset(java.io.BufferedInputStream aStream) throws java.io.IOException, DSEObjectNotFoundException, DSEException
public static void reset(java.lang.String initialPath) throws java.io.IOException, DSEObjectNotFoundException, DSEException
public static void reset(java.net.URL aURL) throws java.io.IOException, DSEObjectNotFoundException, DSEException
public static void resetExternalizers() throws java.io.IOException, DSEObjectNotFoundException
public static void resetSettings() throws java.io.IOException, DSEObjectNotFoundException
public static void resetSettings(java.lang.String aTagId) throws java.io.IOException
aTagId
- java.lang.Stringprotected static void resetSettings(java.lang.String aTagId, KeyedCollection newSettings) throws java.io.IOException
aTagId
- java.lang.StringnewSettings
- com.ibm.dse.base.KeyedCollectionpublic static void resetSettings(java.util.Enumeration listTagId) throws java.io.IOException
listPath
- java.util.Enumerationpublic static void resetTagClassTables() throws DSEObjectNotFoundException
public static void set(java.lang.String initialPath) throws java.io.IOException, DSEObjectNotFoundException
public static void setSettings(KeyedCollection aKeyedCollection)
aKeyedCollection
- com.ibm.dse.base.KeyedCollectionpublic static void setTID(java.lang.String aTID)
public static void setupObjectCache()
public static void showProgressBar(boolean aBoolean)
aBoolean
- boolean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |