com.genesyslab.platform.apptemplate.util
Class EnumFactory
java.lang.Object
com.genesyslab.platform.apptemplate.util.EnumFactory
public class EnumFactory
- extends java.lang.Object
Provides utility methods for enumerations.
Method Summary |
static java.lang.Boolean |
CfgFlag2Boolean(CfgFlag flag)
|
static
<T extends java.lang.Enum<T>>
T |
|
getEnumValue(java.lang.String classFullName,
java.lang.String value)
Returns the enumeration value described by the String 'value' parameter. |
static GEnum |
getGEnumValue(java.lang.String classFullName,
java.lang.String value)
Returns the GEnum value described by the String 'value' parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumFactory
public EnumFactory()
getGEnumValue
public static GEnum getGEnumValue(java.lang.String classFullName,
java.lang.String value)
throws java.lang.ClassNotFoundException
- Returns the GEnum value described by the String 'value' parameter.
- Parameters:
classFullName
- the full name of the enumeration classvalue
- the String
representation of the enumeration value
- Returns:
- the GEnum value described by the value parameter
- Throws:
java.lang.ClassNotFoundException
- if the class specified by the classFullName
parameter doesn't exist in the class path
getEnumValue
public static <T extends java.lang.Enum<T>> T getEnumValue(java.lang.String classFullName,
java.lang.String value)
throws java.lang.ClassNotFoundException
- Returns the enumeration value described by the String 'value' parameter.
- Type Parameters:
T
- the type of the enumeration- Parameters:
classFullName
- the full name of the enumeration classvalue
- the String
representation of the enumeration value
- Returns:
- the enumeration value
- Throws:
java.lang.ClassNotFoundException
- if the class specified by the classFullName
parameter doesn't exist in the class path
CfgFlag2Boolean
public static java.lang.Boolean CfgFlag2Boolean(CfgFlag flag)
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.