Package com.sun.xml.bind.v2.runtime.unmarshaller

Examples of com.sun.xml.bind.v2.runtime.unmarshaller.ChildLoader


    }

    public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers) {
        keyLoader = keyBeanInfo.getLoader(chain.context,true);
        valueLoader = valueBeanInfo.getLoader(chain.context,true);
        handlers.put(tagName,new ChildLoader(itemsLoader,null));
    }
View Full Code Here


    public PropertyKind getKind() {
        return PropertyKind.ELEMENT;
    }

    public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers) {
        handlers.put(tagName, new ChildLoader(new LeafPropertyLoader(xacc),null));
    }
View Full Code Here

            if(typeRef.isNillable() || chain.context.allNillable)
                item = new XsiNilLoader.Array(item);
            if(typeRef.getDefaultValue()!=null)
                item = new DefaultValueLoaderDecorator(item,typeRef.getDefaultValue());

            loaders.put(tagName,new ChildLoader(item,recv));
        }
    }
View Full Code Here

        // LeafPropertyXsiLoader doesn't work well with nillable elements
        if (!nillable)
            l = new LeafPropertyXsiLoader(l, xacc, acc);

        handlers.put(tagName, new ChildLoader(l, null));
    }
View Full Code Here

/* 184 */       QNameMap m = new QNameMap();
/* 185 */       createBodyUnmarshaller(c, m);
/* 186 */       Loader loader = new ItemsLoader(this.acc, this.lister, m);
/* 187 */       if ((this.isWrapperNillable) || (chain.context.allNillable))
/* 188 */         loader = new XsiNilLoader(loader);
/* 189 */       loaders.put(this.wrapperTagName, new ChildLoader(loader, null));
/*     */     } else {
/* 191 */       createBodyUnmarshaller(chain, loaders);
/*     */     }
/*     */   }
View Full Code Here

/*     */     }
/*     */
/*     */     public void childElement(UnmarshallingContext.State state, TagName ea)
/*     */       throws SAXException
/*     */     {
/* 122 */       ChildLoader child = (ChildLoader)this.children.get(ea.uri, ea.local);
/* 123 */       if (child != null) {
/* 124 */         state.loader = child.loader;
/* 125 */         state.receiver = child.receiver;
/*     */       } else {
/* 127 */         super.childElement(state, ea);
View Full Code Here

/*     */   }
/*     */
/*     */   public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers)
/*     */   {
/* 120 */     for (QNameMap.Entry n : this.expectedElements.entrySet()) {
/* 121 */       handlers.put(n.nsUri, n.localName, new ChildLoader(((JaxBeanInfo)n.getValue()).getLoader(chain.context, true), this.acc));
/*     */     }
/* 123 */     if (this.domHandler != null)
/* 124 */       handlers.put(CATCH_ALL, new ChildLoader(new WildcardLoader(this.domHandler, this.wcMode), this.acc));
/*     */   }
View Full Code Here

/* 168 */       Loader l = bi.getLoader(context, !Modifier.isFinal(bi.jaxbType.getModifiers()));
/* 169 */       if (e.getDefaultValue() != null)
/* 170 */         l = new DefaultValueLoaderDecorator(l, e.getDefaultValue());
/* 171 */       if ((this.nillable) || (chain.context.allNillable))
/* 172 */         l = new XsiNilLoader.Single(l, this.acc);
/* 173 */       handlers.put(e.getTagName(), new ChildLoader(l, this.acc));
/*     */     }
/*     */   }
View Full Code Here

/*     */   public boolean hasSerializeURIAction() {
/*  91 */     return this.xacc.useNamespace();
/*     */   }
/*     */
/*     */   public void buildChildElementUnmarshallers(UnmarshallerChain chainElem, QNameMap<ChildLoader> handlers) {
/*  95 */     handlers.put(StructureLoaderBuilder.TEXT_HANDLER, new ChildLoader(new ValuePropertyLoader(this.xacc), null));
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers) {
/* 138 */     this.keyLoader = this.keyBeanInfo.getLoader(chain.context, true);
/* 139 */     this.valueLoader = this.valueBeanInfo.getLoader(chain.context, true);
/* 140 */     handlers.put(this.tagName, new ChildLoader(this.itemsLoader, null));
/*     */   }
View Full Code Here

TOP

Related Classes of com.sun.xml.bind.v2.runtime.unmarshaller.ChildLoader

Copyright © 2018 www.massapicom. 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.