Here you can find the source of hasAnnotatedQname(Object obj)
public static boolean hasAnnotatedQname(Object obj)
//package com.java2s; //License from project: Apache License import javax.xml.bind.annotation.XmlType; public class Main { public static boolean hasAnnotatedQname(Object obj) { return (obj.getClass().getAnnotation(XmlType.class) != null); }/*from w w w . j a va 2 s.com*/ }