|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.meta.EnumeratedTypeUtil
public class EnumeratedTypeUtil
A set of utility methods for working with EnumeratedTypes.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
static String |
getStringValue(String classname,
String internal_value)
Gets the string representation for an EnumeratedType class and instance value, which can later be used to get that instance. |
static void |
main(String[] args)
Prints the contents of the specified sub class of EnumeratedType and verifies the contents of the resource bundles. |
static EnumeratedType |
toEnumeratedType(String stringValue)
Gets the instance of the concrete EnumeratedType given the string representation of the object. |
static EnumeratedType |
toEnumeratedType(String classname,
String internal_value)
Gets the instance of the concrete EnumeratedType given the classname and internal_value. |
static EnumeratedType |
toEnumeratedTypeConstant(String classname,
String constant_name)
Gets the instance of the concrete EnumeratedType given the classname and a constant name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void main(String[] args)
Example Usage:
// for current user's locale
java wt.fc.EnumeratedType wt.lifecycle.State
// for FRENCH locale
java wt.fc.EnumeratedType wt.lifecycle.State fr
// for CANADA_FRENCH locale
java wt.fc.EnumeratedType wt.lifecycle.State fr CA
args - a String[] containing the following elements:
[0] fully qualified classname of EnumeratedType sub class
[1] two character language code (optional)
[2] two character country code (optional)
[3] two character variant code (optional)
Locale
public static EnumeratedType toEnumeratedType(String stringValue)
throws WTInvalidParameterException
String - The string representation of an EnumeratedType instance.
WTInvalidParameterException#getStringValue()
public static EnumeratedType toEnumeratedType(String classname,
String internal_value)
throws WTInvalidParameterException
String - The fully qualified name of the concrete EnumeratedType class.String - The internal value for a instance of that type.
WTInvalidParameterException#getStringValue()
public static EnumeratedType toEnumeratedTypeConstant(String classname,
String constant_name)
throws WTInvalidParameterException
String - The fully qualified name of the concrete EnumeratedType class.String - The constant name for a instance of that type.
WTInvalidParameterException#getStringValue()
public static String getStringValue(String classname,
String internal_value)
The format of the string representation is: classname.internal_value
Supported API: true
String - The fully qualified name of the concrete EnumeratedType class.String - The internal value for a instance of that type.
#getStringValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||