|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.tools.workbench.base.WorkbenchLanguage
This class stores all the language dependant messages.
Field Summary | |
protected static java.lang.String |
defaultDataSource
The default data source for the initialization file |
protected static int |
defaultDataSourceType
The default data source type for the initialization file |
protected static Settings |
language
The name of the language entry in the initialization file |
static char |
paramChar
The token that indicates the presence of a parameter in a message |
Constructor Summary | |
WorkbenchLanguage()
|
Method Summary | |
protected static java.lang.String |
fillString(java.lang.String str,
java.lang.String[] params)
This method is used to add the value of the parameters to the given property's value |
static java.util.Hashtable |
getGroup(java.lang.String groupName)
This method returns a hashtable with the settings of the given group |
static java.lang.String |
getText(java.lang.String key)
This method returns the value of a given property If the property belongs to a group, then it's necessary to use the "group.property" notation |
static java.lang.String |
getText(java.lang.String group,
java.lang.String key)
This method returns the value of the given group's property |
static java.lang.String |
getText(java.lang.String str,
java.lang.String[] params)
This method returns the value of the given property with parameters |
static java.lang.String |
getText(java.lang.String group,
java.lang.String key,
java.lang.String[] params)
This method returns the value of the given group's property with parameters |
protected static void |
initialize()
Initialize the Settings using the defaultDataSource |
static void |
setDataSource(java.lang.String name,
int type)
This method initializes the Settings hashtable using the given data source |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static java.lang.String defaultDataSource
protected static int defaultDataSourceType
protected static Settings language
public static final char paramChar
Constructor Detail |
public WorkbenchLanguage()
Method Detail |
protected static java.lang.String fillString(java.lang.String str, java.lang.String[] params)
str
- java.lang.String the message codeparams
- java.lang.String[] the parameters to be addedpublic static java.util.Hashtable getGroup(java.lang.String groupName)
groupName
- java.lang.Stringpublic static java.lang.String getText(java.lang.String key)
key
- java.lang.String The keypublic static java.lang.String getText(java.lang.String str, java.lang.String[] params)
str
- java.lang.Stringparams
- java.lang.String[] The different parameters to be added to the messagepublic static java.lang.String getText(java.lang.String group, java.lang.String key)
group
- java.lang.String The groupkey
- java.lang.String The keypublic static java.lang.String getText(java.lang.String group, java.lang.String key, java.lang.String[] params)
group
- java.lang.String The groupkey
- java.lang.String The keyparams
- java.lang.String[] The parameters to be addedprotected static void initialize() throws WBInputOutputException
public static void setDataSource(java.lang.String name, int type) throws WBInputOutputException
name
- java.lang.String The data source locationtype
- int The data source type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |