Examples of ref()


Examples of com.sun.xml.bind.v2.model.core.PropertyInfo.ref()

                                if (t.getTarget() instanceof Element) {
                                    Element te = (Element) t.getTarget();
                                    elemName = te.getElementName();
                                }

                                Collection<TypeInfo> refs = propInfo.ref();
                                TypeInfo ti;
                                if ((refs != null) && (!refs.isEmpty()) && (elemName != null)
                                        && ((ti = refs.iterator().next()) == null || ti instanceof ClassInfoImpl)) {
                                    ClassInfoImpl cImpl = (ClassInfoImpl)ti;
                                    if ((cImpl != null) && (cImpl.getElementName() != null)) {
View Full Code Here

Examples of com.sun.xml.bind.v2.model.nav.Navigator.ref()

/*     */     }
/* 146 */     if (ann != null) {
/* 147 */       Navigator nav = nav();
/* 148 */       AnnotationReader reader = reader();
/*     */
/* 150 */       Object defaultType = nav.ref(XmlElementRef.DEFAULT.class);
/* 151 */       Object je = nav.asDecl(JAXBElement.class);
/*     */
/* 153 */       for (XmlElementRef r : ann)
/*     */       {
/* 155 */         Object type = reader.getClassValue(r, "type");
View Full Code Here

Examples of com.sun.xml.bind.v2.schemagen.xmlschema.LocalAttribute.ref()

                writeAttributeTypeRef(ap, localAttribute);

                attributeFormDefault.writeForm(localAttribute,ap.getXmlName());
            } else { // generate an attr ref
                localAttribute.ref(ap.getXmlName());
            }

            if(ap.isRequired()) {
                // TODO: not type safe
                localAttribute.use("required");
View Full Code Here

Examples of com.sun.xml.bind.v2.schemagen.xmlschema.LocalElement.ref()

                    QName elemName = model.getBindingContext().getElementName((Class)typeInfo.type);
                    if (elemName.getLocalPart().equals("any") && elemName.getNamespaceURI().equals(XsdNs)) {
                        return sq.any();
                    } else {
                        le = sq.element();
                        le.ref(elemName);
                    }
                } catch (JAXBException je) {
                    throw new WebServiceException(je.getMessage(), je);
                }
            }
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.model.core.PropertyInfo.ref()

                                if (t.getTarget() instanceof Element) {
                                    Element te = (Element) t.getTarget();
                                    elemName = te.getElementName();
                                }

                                Collection refs = propInfo.ref();
                                if ((refs != null) && (!refs.isEmpty()) && (elemName != null)) {
                                    ClassInfoImpl cImpl = (ClassInfoImpl)refs.iterator().next();
                                    if ((cImpl != null) && (cImpl.getElementName() != null)) {
                                        e.ref(new QName(cImpl.getElementName().getNamespaceURI(), tn.getLocalPart()));
                                    } else {
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.schemagen.xmlschema.LocalAttribute.ref()

                writeAttributeTypeRef(ap, localAttribute);

                attributeFormDefault.writeForm(localAttribute,ap.getXmlName());
            } else { // generate an attr ref
                localAttribute.ref(ap.getXmlName());
            }

            if(ap.isRequired()) {
                // TODO: not type safe
                localAttribute.use("required");
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.schemagen.xmlschema.LocalElement.ref()

                        LocalElement e = parent.element();

                        QName tn = t.getTagName();

                        if(canBeDirectElementRef(t,tn) || (!tn.getNamespaceURI().equals(uri) && tn.getNamespaceURI().length()>0)) {
                            e.ref(tn);
                        } else {
                            e.name(tn.getLocalPart());
                            writeTypeRef(e,t, "type");
                            elementFormDefault.writeForm(e,tn);
                        }
View Full Code Here

Examples of org.apache.aries.blueprint.annotation.ReferenceListener.ref()

    }

    private TreferenceListener generateTrefListener(Class refListener) {
        ReferenceListener rl = (ReferenceListener) refListener.getAnnotation(ReferenceListener.class);
       
        String ref = rl.ref();
        String bind = null;
        String unbind = null;
       
        // also check bind/unbind method
        Method[] methods = refListener.getDeclaredMethods();
View Full Code Here

Examples of org.apache.camel.Consume.ref()

        }

        Consume consume = method.getAnnotation(Consume.class);
        if (consume != null) {
            LOG.info("Creating a consumer for: " + consume);
            subscribeMethod(method, bean, consume.uri(), consume.ref());
        }
    }

    protected void subscribeMethod(Method method, Object bean, String endpointUri, String endpointName) {
        // lets bind this method to a listener
View Full Code Here

Examples of org.apache.camel.Consume.ref()

        }

        Consume consume = method.getAnnotation(Consume.class);
        if (consume != null) {
            LOG.info("Creating a consumer for: " + consume);
            subscribeMethod(method, bean, consume.uri(), consume.ref());
        }
    }

    protected void subscribeMethod(Method method, Object bean, String endpointUri, String endpointName) {
        // lets bind this method to a listener
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.