org.apache.axis2.jaxws.utility
Class XmlEnumUtils

java.lang.Object
  extended by org.apache.axis2.jaxws.utility.XmlEnumUtils

public class XmlEnumUtils
extends Object

Utility methods for JAXB Enum classes


Method Summary
static Object fromValue(Class e, Object convObject)
           
static Class getConversionType(Class e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 class
convObject - Object of conversion type
Returns:
Object of enum


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.