org.apache.axis2.jaxws.utility
Class XmlEnumUtils
java.lang.Object
org.apache.axis2.jaxws.utility.XmlEnumUtils
public class XmlEnumUtils
- extends Object
Utility methods for JAXB Enum classes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getConversionType
public static Class getConversionType(Class e)
- Parameters:
e
- Class of enum
- Returns:
- a base type that can be used for constructing the enum
fromValue
public static Object fromValue(Class e,
Object convObject)
- Parameters:
e
- enumeration classconvObject
- Object of conversion type
- Returns:
- Object of enum
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.