Examples of XMLName


Examples of org.apache.cxf.jaxrs.ext.xml.XMLName

    }
   
    private class XMLNameQNameResolver implements ElementQNameResolver {

        public QName resolve(Class<?> type, Annotation[] annotations, Map<Class<?>, QName> clsMap) {
            XMLName name = AnnotationUtils.getAnnotation(annotations, XMLName.class);
            if (name == null) {
                name = type.getAnnotation(XMLName.class);
            }
            if (name != null) {
                QName qname = JAXRSUtils.convertStringToQName(name.value(), name.prefix());
                if (qname.getPrefix().length() > 0) {
                    return qname;
                } else {
                    return getQNameFromParts(qname.getLocalPart(),
                                             qname.getNamespaceURI(), clsMap);                   
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.xml.XMLName

    }
   
    private class XMLNameQNameResolver implements ElementQNameResolver {

        public QName resolve(Class<?> type, Annotation[] annotations, Map<Class<?>, QName> clsMap) {
            XMLName name = AnnotationUtils.getAnnotation(annotations, XMLName.class);
            if (name == null) {
                name = type.getAnnotation(XMLName.class);
            }
            if (name != null) {
                QName qname = JAXRSUtils.convertStringToQName(name.value(), name.prefix());
                if (qname.getPrefix().length() > 0) {
                    return qname;
                } else {
                    return getQNameFromParts(qname.getLocalPart(),
                                             qname.getNamespaceURI(), clsMap);                   
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.xml.XMLName

    }
   
    private class XMLNameQNameResolver implements ElementQNameResolver {

        public QName resolve(Class<?> type, Annotation[] annotations, Map<Class<?>, QName> clsMap) {
            XMLName name = AnnotationUtils.getAnnotation(annotations, XMLName.class);
            if (name == null) {
                name = type.getAnnotation(XMLName.class);
            }
            if (name != null) {
                QName qname = JAXRSUtils.convertStringToQName(name.value(), name.prefix());
                if (qname.getPrefix().length() > 0) {
                    return qname;
                } else {
                    return getQNameFromParts(qname.getLocalPart(),
                                             qname.getNamespaceURI(), clsMap);                   
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.xml.XMLName

    }
   
    private class XMLNameQNameResolver implements ElementQNameResolver {

        public QName resolve(Class<?> type, Annotation[] annotations, Map<Class<?>, QName> clsMap) {
            XMLName name = AnnotationUtils.getAnnotation(annotations, XMLName.class);
            if (name == null) {
                name = type.getAnnotation(XMLName.class);
            }
            if (name != null) {
                QName qname = JAXRSUtils.convertStringToQName(name.value(), name.prefix());
                if (qname.getPrefix().length() > 0) {
                    return qname;
                } else {
                    return getQNameFromParts(qname.getLocalPart(),
                                             qname.getNamespaceURI(), clsMap);                   
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.xml.XMLName

    }
   
    private class XMLNameQNameResolver implements ElementQNameResolver {

        public QName resolve(Class<?> type, Annotation[] annotations, Map<Class<?>, QName> clsMap) {
            XMLName name = AnnotationUtils.getAnnotation(annotations, XMLName.class);
            if (name == null) {
                name = type.getAnnotation(XMLName.class);
            }
            if (name != null) {
                QName qname = JAXRSUtils.convertStringToQName(name.value(), name.prefix());
                if (qname.getPrefix().length() > 0) {
                    return qname;
                } else {
                    return getQNameFromParts(qname.getLocalPart(),
                                             qname.getNamespaceURI(),
View Full Code Here

Examples of org.apache.cxf.jaxrs.model.wadl.XMLName

                                      Type genericType,
                                      ResourceTypes types,
                                      Annotation[] anns) {
        if (InjectionUtils.isSupportedCollectionOrArray(type)) {
            type = InjectionUtils.getActualType(genericType);
            XMLName name = AnnotationUtils.getAnnotation(anns, XMLName.class);
            if (name != null) {
                types.getCollectionMap().put(type, JAXRSUtils.convertStringToQName(name.value()));
            }
        }
        JAXBElementProvider provider = new JAXBElementProvider();
        if (type != null
            && !InjectionUtils.isPrimitive(type)
View Full Code Here

Examples of org.apache.cxf.jaxrs.model.wadl.XMLName

            if (genCls != type && genCls != null && genCls != Object.class
                && !InjectionUtils.isSupportedCollectionOrArray(genCls)) {
                types.getAllTypes().put(genCls, genCls);
            }
           
            XMLName name = AnnotationUtils.getAnnotation(anns, XMLName.class);
            QName qname = name != null ? JAXRSUtils.convertStringToQName(name.value()) : null;
            if (isCollection) {
                types.getCollectionMap().put(type, qname);
            } else {
                types.getXmlNameMap().put(type, qname);
            }
View Full Code Here

Examples of org.apache.cxf.jaxrs.model.wadl.XMLName

                                      Type genericType,
                                      ResourceTypes types,
                                      Annotation[] anns) {
        if (InjectionUtils.isSupportedCollectionOrArray(type)) {
            type = InjectionUtils.getActualType(genericType);
            XMLName name = AnnotationUtils.getAnnotation(anns, XMLName.class);
            if (name != null) {
                types.getCollectionMap().put(type, JAXRSUtils.convertStringToQName(name.value()));
            }
        }
        JAXBElementProvider<?> provider = new JAXBElementProvider<Object>();
        if (type != null
            && !InjectionUtils.isPrimitive(type)
View Full Code Here

Examples of org.apache.cxf.jaxrs.model.wadl.XMLName

                                      Type genericType,
                                      ResourceTypes types,
                                      Annotation[] anns) {
        if (InjectionUtils.isSupportedCollectionOrArray(type)) {
            type = InjectionUtils.getActualType(genericType);
            XMLName name = AnnotationUtils.getAnnotation(anns, XMLName.class);
            if (name != null) {
                types.getCollectionMap().put(type, JAXRSUtils.convertStringToQName(name.value()));
            }
        }
        JAXBElementProvider<?> provider = new JAXBElementProvider<Object>();
        if (type != null
            && !InjectionUtils.isPrimitive(type)
View Full Code Here

Examples of org.apache.cxf.jaxrs.model.wadl.XMLName

                                      Type genericType,
                                      ResourceTypes types,
                                      Annotation[] anns) {
        if (InjectionUtils.isSupportedCollectionOrArray(type)) {
            type = InjectionUtils.getActualType(genericType);
            XMLName name = AnnotationUtils.getAnnotation(anns, XMLName.class);
            if (name != null) {
                types.getCollectionMap().put(type, JAXRSUtils.convertStringToQName(name.value()));
            }
        }
        JAXBElementProvider<?> provider = new JAXBElementProvider<Object>();
        if (type != null
            && !InjectionUtils.isPrimitive(type)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.