类javax.xml.bind.annotation.XmlSchemaTypes源码实例Demo

下面列出了怎么用javax.xml.bind.annotation.XmlSchemaTypes的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: TencentKona-8   文件: Util.java
static <T,C,F,M> QName calcSchemaType(
        AnnotationReader<T,C,F,M> reader,
        AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) {

    XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class);
    if(xst!=null) {
        return new QName(xst.namespace(),xst.name());
    }

    // check the defaulted annotation
    XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src);
    XmlSchemaType[] values = null;
    if(xsts!=null)
        values = xsts.value();
    else {
        xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src);
        if(xst!=null) {
            values = new XmlSchemaType[1];
            values[0] = xst;
        }
    }
    if(values!=null) {
        for( XmlSchemaType item : values ) {
            if(reader.getClassValue(item,"type").equals(individualType)) {
                return new QName(item.namespace(),item.name());
            }
        }
    }

    return null;
}
 
源代码2 项目: jdk8u60   文件: Util.java
static <T,C,F,M> QName calcSchemaType(
        AnnotationReader<T,C,F,M> reader,
        AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) {

    XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class);
    if(xst!=null) {
        return new QName(xst.namespace(),xst.name());
    }

    // check the defaulted annotation
    XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src);
    XmlSchemaType[] values = null;
    if(xsts!=null)
        values = xsts.value();
    else {
        xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src);
        if(xst!=null) {
            values = new XmlSchemaType[1];
            values[0] = xst;
        }
    }
    if(values!=null) {
        for( XmlSchemaType item : values ) {
            if(reader.getClassValue(item,"type").equals(individualType)) {
                return new QName(item.namespace(),item.name());
            }
        }
    }

    return null;
}
 
源代码3 项目: openjdk-jdk8u   文件: Util.java
static <T,C,F,M> QName calcSchemaType(
        AnnotationReader<T,C,F,M> reader,
        AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) {

    XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class);
    if(xst!=null) {
        return new QName(xst.namespace(),xst.name());
    }

    // check the defaulted annotation
    XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src);
    XmlSchemaType[] values = null;
    if(xsts!=null)
        values = xsts.value();
    else {
        xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src);
        if(xst!=null) {
            values = new XmlSchemaType[1];
            values[0] = xst;
        }
    }
    if(values!=null) {
        for( XmlSchemaType item : values ) {
            if(reader.getClassValue(item,"type").equals(individualType)) {
                return new QName(item.namespace(),item.name());
            }
        }
    }

    return null;
}
 
源代码4 项目: openjdk-jdk8u-backup   文件: Util.java
static <T,C,F,M> QName calcSchemaType(
        AnnotationReader<T,C,F,M> reader,
        AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) {

    XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class);
    if(xst!=null) {
        return new QName(xst.namespace(),xst.name());
    }

    // check the defaulted annotation
    XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src);
    XmlSchemaType[] values = null;
    if(xsts!=null)
        values = xsts.value();
    else {
        xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src);
        if(xst!=null) {
            values = new XmlSchemaType[1];
            values[0] = xst;
        }
    }
    if(values!=null) {
        for( XmlSchemaType item : values ) {
            if(reader.getClassValue(item,"type").equals(individualType)) {
                return new QName(item.namespace(),item.name());
            }
        }
    }

    return null;
}
 
源代码5 项目: openjdk-jdk9   文件: Util.java
static <T,C,F,M> QName calcSchemaType(
        AnnotationReader<T,C,F,M> reader,
        AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) {

    XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class);
    if(xst!=null) {
        return new QName(xst.namespace(),xst.name());
    }

    // check the defaulted annotation
    XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src);
    XmlSchemaType[] values = null;
    if(xsts!=null)
        values = xsts.value();
    else {
        xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src);
        if(xst!=null) {
            values = new XmlSchemaType[1];
            values[0] = xst;
        }
    }
    if(values!=null) {
        for( XmlSchemaType item : values ) {
            if(reader.getClassValue(item,"type").equals(individualType)) {
                return new QName(item.namespace(),item.name());
            }
        }
    }

    return null;
}
 
源代码6 项目: hottub   文件: Util.java
static <T,C,F,M> QName calcSchemaType(
        AnnotationReader<T,C,F,M> reader,
        AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) {

    XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class);
    if(xst!=null) {
        return new QName(xst.namespace(),xst.name());
    }

    // check the defaulted annotation
    XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src);
    XmlSchemaType[] values = null;
    if(xsts!=null)
        values = xsts.value();
    else {
        xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src);
        if(xst!=null) {
            values = new XmlSchemaType[1];
            values[0] = xst;
        }
    }
    if(values!=null) {
        for( XmlSchemaType item : values ) {
            if(reader.getClassValue(item,"type").equals(individualType)) {
                return new QName(item.namespace(),item.name());
            }
        }
    }

    return null;
}
 
源代码7 项目: openjdk-8-source   文件: Util.java
static <T,C,F,M> QName calcSchemaType(
        AnnotationReader<T,C,F,M> reader,
        AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) {

    XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class);
    if(xst!=null) {
        return new QName(xst.namespace(),xst.name());
    }

    // check the defaulted annotation
    XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src);
    XmlSchemaType[] values = null;
    if(xsts!=null)
        values = xsts.value();
    else {
        xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src);
        if(xst!=null) {
            values = new XmlSchemaType[1];
            values[0] = xst;
        }
    }
    if(values!=null) {
        for( XmlSchemaType item : values ) {
            if(reader.getClassValue(item,"type").equals(individualType)) {
                return new QName(item.namespace(),item.name());
            }
        }
    }

    return null;
}
 
源代码8 项目: openjdk-8   文件: Util.java
static <T,C,F,M> QName calcSchemaType(
        AnnotationReader<T,C,F,M> reader,
        AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) {

    XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class);
    if(xst!=null) {
        return new QName(xst.namespace(),xst.name());
    }

    // check the defaulted annotation
    XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src);
    XmlSchemaType[] values = null;
    if(xsts!=null)
        values = xsts.value();
    else {
        xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src);
        if(xst!=null) {
            values = new XmlSchemaType[1];
            values[0] = xst;
        }
    }
    if(values!=null) {
        for( XmlSchemaType item : values ) {
            if(reader.getClassValue(item,"type").equals(individualType)) {
                return new QName(item.namespace(),item.name());
            }
        }
    }

    return null;
}
 
 类方法
 同包方法