Examples of RuntimeClassInfo


Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

        BuilderKey key = new BuilderKey();
        key.parentClass = parentClass;
        key.typeClass = subCls;
       
        if (!type2Writer.containsKey(key)) {
            RuntimeClassInfo substRCI = set.beans().get(subCls);
            type2Writer.put(key, b2);
            add(b2, name, subCls, substRCI, false, subCls != rci.getClazz());
        } else {
            WriterBuilder builder2 = type2Writer.get(key);
           
View Full Code Here

Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

           
            // Handle all the possible child types
            Map<Class, ? extends RuntimeClassInfo> beans = set.beans();
            for (Map.Entry<Class, ? extends RuntimeClassInfo> e : beans.entrySet()) {
                Class c = e.getKey();
                RuntimeClassInfo clsInfo = e.getValue();
               
                if (propCls.isAssignableFrom(c)
                    && propCls != c
                    && !Modifier.isAbstract(c.getModifiers())) {
                    ElementParserBuilder xsiBuilder = propBuilder.expectXsiType(clsInfo.getTypeName());
                    JVar xsiVar = xsiBuilder.passParentVariable(propVar);
                    handlePropertyElement(xsiBuilder, xsiVar, beanClass,
                                          propEl,
                                          typeRef.getTagName(),
                                          typeRef.isNillable(),
View Full Code Here

Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

            JExpression toSet = handleElement(builder, target, adapter, c, nillable);

            if (toSet != null)
                doSet(block, bean, beanClass, propEl, toSet);
        } else if (target instanceof RuntimeClassInfo) {
            RuntimeClassInfo rci = (RuntimeClassInfo) target;
           
            BuilderKey key = new BuilderKey();
            key.parentClass = beanClass;
            key.type = name;
           
View Full Code Here

Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

            JVar var = builder.as(String.class, nillable);
            toSet = JExpr._new(bdType).arg(var);
        } else if (c.equals(QName.class)) {
            toSet = builder.getXSR().invoke("getElementAsQName");
        } else if (target instanceof RuntimeClassInfo) {
            RuntimeClassInfo rci = (RuntimeClassInfo) target;
            JType type = builder.getCodeModel()._ref(c);
           
            JVar var = builder.getBody().decl(type, type.name(), JExpr._new(type));
           
            handleProperties(rci, c, builder, var);
View Full Code Here

Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

            toSet = JExpr._new(bdType).arg(var);
        } else if (c.equals(QName.class)) {
            JVar var = builder.as(String.class);
            toSet = builder.getXSR().invoke("getAsQName").arg(var);
        } else if (target instanceof RuntimeClassInfo) {
            RuntimeClassInfo rci = (RuntimeClassInfo) target;
            rci.getProperties();
            System.err.println("Could not map attribute " + c);
            return JExpr._null();
        } else {
           
            System.err.println("Could not map attribute " + c);
View Full Code Here

Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

            bean.addProperty(anyAttributeProperty);
        }


        Bean baseClass = null;
        RuntimeClassInfo baseClassInfo = runtimeClassInfo.getBaseClass();
        if (baseClassInfo != null) {
            baseClass = model.getBean(baseClassInfo.getClazz());
            if (baseClass == null) {
                baseClass = addBean(model, baseClassInfo);
            }
        }
        bean.setBaseClass(baseClass);
View Full Code Here

Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

                ElementMapping elementMapping;
                if (re instanceof RuntimeElementInfo) {
                    RuntimeElementInfo runtimeElement = (RuntimeElementInfo) re;
                    elementMapping = createXmlMapping(property, runtimeElement);
                } else {
                    RuntimeClassInfo runtimeClassInfo = (RuntimeClassInfo) re;
                    elementMapping = createXmlMapping(property, runtimeClassInfo);
                }
                property.getElementMappings().add(elementMapping);
            }
            property.setNillable(referenceProperty.isCollectionNillable());
View Full Code Here

Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

/* 325 */     for (RuntimeElementInfo n : typeSet.getAllElements()) {
/* 326 */       ElementBeanInfoImpl bi = getOrCreate(n);
/* 327 */       if (n.getScope() == null) {
/* 328 */         this.rootMap.put(n.getElementName(), bi);
/*     */       }
/* 330 */       RuntimeClassInfo scope = n.getScope();
/* 331 */       Class scopeClazz = scope == null ? null : (Class)scope.getClazz();
/* 332 */       Map m = (Map)this.elements.get(scopeClazz);
/* 333 */       if (m == null) {
/* 334 */         m = new LinkedHashMap();
/* 335 */         this.elements.put(scopeClazz, m);
/*     */       }
View Full Code Here

Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

        for( RuntimeElementInfo n : typeSet.getAllElements() ) {
            ElementBeanInfoImpl bi = getOrCreate(n);
            if(n.getScope()==null)
                rootMap.put(n.getElementName(),bi);

            RuntimeClassInfo scope = n.getScope();
            Class scopeClazz = scope==null?null:scope.getClazz();
            Map<QName,ElementBeanInfoImpl> m = elements.get(scopeClazz);
            if(m==null) {
                m = new LinkedHashMap<QName, ElementBeanInfoImpl>();
                elements.put(scopeClazz,m);
            }
View Full Code Here

Examples of com.sun.xml.bind.v2.model.runtime.RuntimeClassInfo

        for( RuntimeElementInfo n : typeSet.getAllElements() ) {
            ElementBeanInfoImpl bi = getOrCreate(n);
            if(n.getScope()==null)
                rootMap.put(n.getElementName(),bi);

            RuntimeClassInfo scope = n.getScope();
            Class scopeClazz = scope==null?null:scope.getClazz();
            Map<QName,ElementBeanInfoImpl> m = elements.get(scopeClazz);
            if(m==null) {
                m = new LinkedHashMap<QName, ElementBeanInfoImpl>();
                elements.put(scopeClazz,m);
            }
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.