Platform SDK Java 8.5 API Reference

com.genesyslab.platform.apptemplate.util
Class EnumFactory

java.lang.Object
  extended by com.genesyslab.platform.apptemplate.util.EnumFactory

public class EnumFactory
extends java.lang.Object

Provides utility methods for enumerations.


Constructor Summary
EnumFactory()
           
 
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
 

Constructor Detail

EnumFactory

public EnumFactory()
Method Detail

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 class
value - 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 class
value - 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)

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.