AnnotationDescImpl.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:wso2-axis2 作者:
static AnnotationDesc create(Class cls) {
    AnnotationDescImpl aDesc = new AnnotationDescImpl();

    // XMLSeeAlso is part of JAXB 2.1.2.  
    // The assumption is that this is a prereq for JAXWS 2.1; thus
    // we can safely reference this class
    XmlSeeAlso xmlSeeAlso = (XmlSeeAlso)
        getAnnotation(cls, XmlSeeAlso.class);

    if (xmlSeeAlso != null) {
        aDesc._XmlSeeAlsoClasses = xmlSeeAlso.value();
    }

    QName qName = XMLRootElementUtil.getXmlRootElementQName(cls);
    if (qName != null) {
        aDesc._hasXmlRootElement = true;
        aDesc._XmlRootElementName = qName.getLocalPart();
        aDesc._XmlRootElementNamespace = qName.getNamespaceURI();
    }

    qName = XMLRootElementUtil.getXmlTypeQName(cls);
    if (qName != null) {
        aDesc._hasXmlType = true;
        aDesc._XmlTypeName = qName.getLocalPart();
        aDesc._XmlTypeNamespace = qName.getNamespaceURI();
    }
    return aDesc;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号