Package org.apache.axis2.jaxws.utility
Class XMLRootElementUtil
- java.lang.Object
-
- org.apache.axis2.jaxws.utility.XMLRootElementUtil
-
public class XMLRootElementUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,PropertyDescriptorPlus>createPropertyDescriptorMap(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 StringgetEnumValue(Enum myEnum)static QNamegetXmlRootElementQName(Class clazz)static QNamegetXmlRootElementQNameFromObject(Object obj)static QNamegetXmlTypeQName(Class clazz)
-
-
-
Method Detail
-
getXmlRootElementQNameFromObject
public static QName getXmlRootElementQNameFromObject(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(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 String getEnumValue(Enum myEnum)
- Parameters:
clazz-- Returns:
- namespace of root element qname or null if this is object does not represent a root element
-
getXmlTypeQName
public static QName getXmlTypeQName(Class clazz)
- Parameters:
clazz-- Returns:
- namespace of @XmlType or null if this is object does not represent a root element
-
createPropertyDescriptorMap
public static Map<String,PropertyDescriptorPlus> createPropertyDescriptorMap(Class jaxbClass) throws NoSuchFieldException, 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:
NoSuchFieldExceptionIntrospectionException
-
-