|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.util.WcmString
WcmString is a utility class to retrieve a localized string from the resource file using the given key. This class is used by P8 (client-side applets).
Constructor Summary | |
WcmString(java.util.Locale locale,
java.lang.String aKey,
java.lang.String engString)
|
|
WcmString(java.util.Locale locale,
java.lang.String aKey,
java.lang.String engString,
java.lang.Object arg0)
Constructor that features the ability to supply the first argument to apply when formatting the resource string. |
|
WcmString(java.util.Locale locale,
java.lang.String aKey,
java.lang.String engString,
java.lang.Object[] arguments)
Constructor that features the ability to supply any number of arguments to apply when formatting the resource string. |
|
WcmString(java.util.Locale locale,
java.lang.String aKey,
java.lang.String engString,
java.lang.Object arg0,
java.lang.Object arg1)
Constructor that features the ability to supply a first and second argument to apply when formatting the resource string. |
|
WcmString(java.util.Locale locale,
java.lang.String aKey,
java.lang.String engString,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Constructor that features the ability to supply three arguments to apply when formatting the resource string. |
|
WcmString(java.lang.String aKey,
java.lang.String engString)
Default Constructor |
|
WcmString(java.lang.String aKey,
java.lang.String engString,
java.lang.Object arg0)
Constructor that features the ability to supply the first argument to apply when formatting the resource string. |
|
WcmString(java.lang.String aKey,
java.lang.String engString,
java.lang.Object[] arguments)
Constructor that features the ability to supply any number of arguments to apply when formatting the resource string. |
|
WcmString(java.lang.String aKey,
java.lang.String engString,
java.lang.Object arg0,
java.lang.Object arg1)
Constructor that features the ability to supply a first and second argument to apply when formatting the resource string. |
|
WcmString(java.lang.String aKey,
java.lang.String engString,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Constructor that features the ability to supply three arguments to apply when formatting the resource string. |
Method Summary | |
static int |
compare(java.lang.String string1,
java.lang.String string2)
Locale sensitive string comparison - case sensitive. |
static int |
compareIgnoreCase(java.lang.String string1,
java.lang.String string2)
Locale sensitive string comparison - case ignored. |
boolean |
equals(java.lang.Object anObject)
Compares this WcmString object to the specified object. |
static boolean |
equals(java.lang.String string1,
java.lang.String string2)
Locale sensitive string equality comparison - case sensitive. |
java.lang.String |
getKey()
Returns WcmString key |
static void |
loadResource(java.io.InputStream in)
Deprecated. This method has been replaced. use WcmStringResources.addStringToBundlePath and/or WcmStringResources.addExcetpionToBundlePath. |
static void |
loadResource(java.util.Map m)
Deprecated. This method has been replaced. WcmStringResources.addStringToBundlePath and/or WcmStringResources.addExcetpionToBundlePath. |
static java.lang.String |
localize(java.util.Locale locale,
java.lang.String aKey,
java.lang.String engString)
Static method for retrieving the represented string from the resource file. |
static java.lang.String |
localize(java.util.Locale locale,
java.lang.String aKey,
java.lang.String engString,
java.lang.Object args0)
Static method for retrieving the represented string from the resource file. |
static java.lang.String |
localize(java.util.Locale locale,
java.lang.String key,
java.lang.String engString,
java.lang.Object[] args)
Static method for retrieving the represented string from the resource file. |
static java.lang.String |
localize(java.util.Locale locale,
java.lang.String aKey,
java.lang.String engString,
java.lang.Object args0,
java.lang.Object args1)
Static method for retrieving the represented string from the resource file. |
static java.lang.String |
localize(java.util.Locale locale,
java.lang.String aKey,
java.lang.String engString,
java.lang.Object args0,
java.lang.Object args1,
java.lang.Object args2)
Static method for retrieving the represented string from the resource file. |
static java.lang.String |
localize(java.lang.String aKey,
java.lang.String engString)
Static method for retrieving the represented string from the resource file. |
static java.lang.String |
localize(java.lang.String aKey,
java.lang.String engString,
java.lang.Object args0)
Static method for retrieving the represented string from the resource file. |
static java.lang.String |
localize(java.lang.String key,
java.lang.String engString,
java.lang.Object[] args)
Static method for retrieving the represented string from the resource file. |
static java.lang.String |
localize(java.lang.String aKey,
java.lang.String engString,
java.lang.Object args0,
java.lang.Object args1)
Static method for retrieving the represented string from the resource file. |
static java.lang.String |
localize(java.lang.String aKey,
java.lang.String engString,
java.lang.Object args0,
java.lang.Object args1,
java.lang.Object args2)
Static method for retrieving the represented string from the resource file. |
java.lang.String |
toString()
Method for retrieving the represented string from the resource file. |
java.lang.String |
toString(java.util.Locale locale)
Method for retrieving the represented string from the resource file. |
java.lang.String |
toString(java.util.Locale locale,
java.lang.Object args0)
Method for retrieving the represented string from the resource file. |
java.lang.String |
toString(java.util.Locale locale,
java.lang.Object[] args)
Method for retrieving the represented string from the resource file. |
java.lang.String |
toString(java.util.Locale locale,
java.lang.Object args0,
java.lang.Object args1)
Method for retrieving the represented string from the resource file. |
java.lang.String |
toString(java.util.Locale locale,
java.lang.Object args0,
java.lang.Object args1,
java.lang.Object args2)
Method for retrieving the represented string from the resource file. |
java.lang.String |
toString(java.lang.Object args0)
Method for retrieving the represented string from the resource file. |
java.lang.String |
toString(java.lang.Object[] args)
Method for retrieving the represented string from the resource file. |
java.lang.String |
toString(java.lang.Object args0,
java.lang.Object args1)
Method for retrieving the represented string from the resource file. |
java.lang.String |
toString(java.lang.Object args0,
java.lang.Object args1,
java.lang.Object args2)
Method for retrieving the represented string from the resource file. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WcmString(java.lang.String aKey, java.lang.String engString)
aKey
- Key for looking up a resource in the resource file.engString
- English version of resource string which we use to
generate the resource file with.public WcmString(java.lang.String aKey, java.lang.String engString, java.lang.Object arg0)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.arg0
- First argument to be applied when formatting the resource string.public WcmString(java.lang.String aKey, java.lang.String engString, java.lang.Object arg0, java.lang.Object arg1)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.arg0
- First argument to be applied when formatting the resource string.arg1
- Second argument to be applied when formatting the resource string.public WcmString(java.lang.String aKey, java.lang.String engString, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.arg0
- First argument to be applied when formatting the resource string.arg1
- Second argument to be applied when formatting the resource string.arg2
- Third argument to be applied when formatting the resource string.public WcmString(java.lang.String aKey, java.lang.String engString, java.lang.Object[] arguments)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.arguments
- Variable number of arguments for generating a string from a resource template string.public WcmString(java.util.Locale locale, java.lang.String aKey, java.lang.String engString)
aKey
- Key for looking up a resource in the resource file.engString
- English version of resource string which we use to
generate the resource file with.public WcmString(java.util.Locale locale, java.lang.String aKey, java.lang.String engString, java.lang.Object arg0)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.arg0
- First argument to be applied when formatting the resource string.public WcmString(java.util.Locale locale, java.lang.String aKey, java.lang.String engString, java.lang.Object arg0, java.lang.Object arg1)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.arg0
- First argument to be applied when formatting the resource string.arg1
- Second argument to be applied when formatting the resource string.public WcmString(java.util.Locale locale, java.lang.String aKey, java.lang.String engString, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.arg0
- First argument to be applied when formatting the resource string.arg1
- Second argument to be applied when formatting the resource string.arg2
- Third argument to be applied when formatting the resource string.public WcmString(java.util.Locale locale, java.lang.String aKey, java.lang.String engString, java.lang.Object[] arguments)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.arguments
- Variable number of arguments for generating a string from a resource template string.Method Detail |
public java.lang.String toString()
public java.lang.String toString(java.util.Locale locale)
public static java.lang.String localize(java.lang.String aKey, java.lang.String engString)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.
public static java.lang.String localize(java.util.Locale locale, java.lang.String aKey, java.lang.String engString)
locale
- Locale for mapping.aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.
public java.lang.String toString(java.lang.Object args0)
args0
- First argument to be applied when formatting the resource string.
public java.lang.String toString(java.util.Locale locale, java.lang.Object args0)
args0
- First argument to be applied when formatting the resource string.
public static java.lang.String localize(java.lang.String aKey, java.lang.String engString, java.lang.Object args0)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.args0
- First argument to be applied when formatting the resource string.
public static java.lang.String localize(java.util.Locale locale, java.lang.String aKey, java.lang.String engString, java.lang.Object args0)
locale
- Locale for mapping.aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.args0
- First argument to be applied when formatting the resource string.
public java.lang.String toString(java.lang.Object args0, java.lang.Object args1)
args0
- First argument to be applied when formatting the resource string.args1
- Second argument to be applied when formatting the resource string.
public java.lang.String toString(java.util.Locale locale, java.lang.Object args0, java.lang.Object args1)
args0
- First argument to be applied when formatting the resource string.args1
- Second argument to be applied when formatting the resource string.
public static java.lang.String localize(java.lang.String aKey, java.lang.String engString, java.lang.Object args0, java.lang.Object args1)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.args0
- First argument to be applied when formatting the resource string.args1
- Second argument to be applied when formatting the resource string.
public static java.lang.String localize(java.util.Locale locale, java.lang.String aKey, java.lang.String engString, java.lang.Object args0, java.lang.Object args1)
locale
- Locale for mapping.aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.args0
- First argument to be applied when formatting the resource string.args1
- Second argument to be applied when formatting the resource string.
public java.lang.String toString(java.lang.Object args0, java.lang.Object args1, java.lang.Object args2)
args0
- First argument to be applied when formatting the resource string.args1
- Second argument to be applied when formatting the resource string.args2
- Third argument to be applied when formatting the resource string.
public java.lang.String toString(java.util.Locale locale, java.lang.Object args0, java.lang.Object args1, java.lang.Object args2)
args0
- First argument to be applied when formatting the resource string.args1
- Second argument to be applied when formatting the resource string.args2
- Third argument to be applied when formatting the resource string.
public static java.lang.String localize(java.lang.String aKey, java.lang.String engString, java.lang.Object args0, java.lang.Object args1, java.lang.Object args2)
aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.args0
- First argument to be applied when formatting the resource string.args1
- Second argument to be applied when formatting the resource string.args2
- Third argument to be applied when formatting the resource string.
public static java.lang.String localize(java.util.Locale locale, java.lang.String aKey, java.lang.String engString, java.lang.Object args0, java.lang.Object args1, java.lang.Object args2)
locale
- Locale for mapping.aKey
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.args0
- First argument to be applied when formatting the resource string.args1
- Second argument to be applied when formatting the resource string.args2
- Third argument to be applied when formatting the resource string.
public java.lang.String toString(java.lang.Object[] args)
args
- Variable number of arguments for generating a string from a resource template string.
public java.lang.String toString(java.util.Locale locale, java.lang.Object[] args)
locale
- Locale for mapping.args
- Variable number of arguments for generating a string from a resource template string.
public static java.lang.String localize(java.lang.String key, java.lang.String engString, java.lang.Object[] args)
key
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.args
- Variable number of arguments for generating a string from a resource template string.
public static java.lang.String localize(java.util.Locale locale, java.lang.String key, java.lang.String engString, java.lang.Object[] args)
locale
- Locale for mapping.key
- Key for looking up the specified resource string.engString
- English version of resource string which we use to generate the resource file with.args
- Variable number of arguments for generating a string from a resource template string.
public static int compare(java.lang.String string1, java.lang.String string2)
string1
- First string for the comparisonstring2
- Second string for the comparison
public static boolean equals(java.lang.String string1, java.lang.String string2)
string1
- First string for the comparisonstring2
- Second string for the comparison
public static int compareIgnoreCase(java.lang.String string1, java.lang.String string2)
string1
- First string for the comparisonstring2
- Second string for the comparison
public boolean equals(java.lang.Object anObject)
anObject
- - the object to compare this WcmString against.
public java.lang.String getKey()
public static void loadResource(java.io.InputStream in) throws java.io.IOException
in
- InputStream object
java.io.IOException
- if any IO Errors occurpublic static void loadResource(java.util.Map m)
m
- Map object containing key-value pairs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |