org.apache.axis2.jaxws.utility
Class XMLRootElementUtil

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

public class XMLRootElementUtil
extends java.lang.Object


Method Summary
static java.util.Map<java.lang.String,PropertyDescriptorPlus> createPropertyDescriptorMap(java.lang.Class jaxbClass)
          The JAXBClass has a set of bean properties each represented by a PropertyDescriptor Each of the fields of the class has an associated xml name.
static java.lang.String getEnumValue(java.lang.Enum myEnum)
           
static QName getXmlRootElementQName(java.lang.Class clazz)
           
static QName getXmlRootElementQNameFromObject(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getXmlRootElementQNameFromObject

public static QName getXmlRootElementQNameFromObject(java.lang.Object obj)
Parameters:
clazz -
Returns:
namespace of root element qname or null if this is not object does not represent a root element

getXmlRootElementQName

public static QName getXmlRootElementQName(java.lang.Class clazz)
Parameters:
clazz -
Returns:
namespace of root element qname or null if this is not object does not represent a root element

getEnumValue

public static java.lang.String getEnumValue(java.lang.Enum myEnum)
Parameters:
clazz -
Returns:
namespace of root element qname or null if this is not object does not represent a root element

createPropertyDescriptorMap

public static java.util.Map<java.lang.String,PropertyDescriptorPlus> createPropertyDescriptorMap(java.lang.Class jaxbClass)
                                                                                          throws java.lang.NoSuchFieldException,
                                                                                                 java.beans.IntrospectionException
The JAXBClass has a set of bean properties each represented by a PropertyDescriptor Each of the fields of the class has an associated xml name. The method returns a map where the key is the xml name and value is the PropertyDescriptor

Parameters:
jaxbClass -
Returns:
map
Throws:
java.lang.NoSuchFieldException
java.beans.IntrospectionException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.