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

Examples of com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader


            }
        }
    }

    public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers) {
        Loader l = new LeafPropertyLoader(xacc);
        if (defaultValue != null)
            l = new DefaultValueLoaderDecorator(l, defaultValue);
        if (nillable || chain.context.allNillable)
            l = new XsiNilLoader.Single(l, acc);
View Full Code Here


/*     */   {
/* 182 */     if (this.wrapperTagName != null) {
/* 183 */       UnmarshallerChain c = new UnmarshallerChain(chain.context);
/* 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

/* 162 */     JAXBContextImpl context = chain.context;
/*     */
/* 164 */     for (TypeRef e : this.prop.getTypes()) {
/* 165 */       JaxBeanInfo bi = context.getOrCreate((RuntimeTypeInfo)e.getTarget());
/*     */
/* 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

/* 197 */     Receiver recv = new ArrayERProperty.ReceiverImpl(this, offset);
/*     */
/* 199 */     for (RuntimeTypeRef typeRef : this.prop.getTypes())
/*     */     {
/* 201 */       Name tagName = chain.context.nameBuilder.createElementName(typeRef.getTagName());
/* 202 */       Loader item = createItemUnmarshaller(chain, typeRef);
/*     */
/* 204 */       if ((typeRef.isNillable()) || (chain.context.allNillable))
/* 205 */         item = new XsiNilLoader.Array(item);
/* 206 */       if (typeRef.getDefaultValue() != null) {
/* 207 */         item = new DefaultValueLoaderDecorator(item, typeRef.getDefaultValue());
View Full Code Here

/* 103 */       w.endElement();
/*     */     }
/*     */   }
/*     */
/*     */   public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers) {
/* 108 */     Loader l = new LeafPropertyLoader(this.xacc);
/* 109 */     if (this.defaultValue != null)
/* 110 */       l = new DefaultValueLoaderDecorator(l, this.defaultValue);
/* 111 */     if ((this.nillable) || (chain.context.allNillable))
/* 112 */       l = new XsiNilLoader.Single(l, this.acc);
/* 113 */     handlers.put(this.tagName, new ChildLoader(l, null));
View Full Code Here

            }
        }
    }

    public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers) {
        Loader l = new LeafPropertyLoader(xacc);
        if (defaultValue != null)
            l = new DefaultValueLoaderDecorator(l, defaultValue);
        if (nillable || chain.context.allNillable)
            l = new XsiNilLoader.Single(l, acc);
View Full Code Here

    public final void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> loaders) {
        if(wrapperTagName!=null) {
            UnmarshallerChain c = new UnmarshallerChain(chain.context);
            QNameMap<ChildLoader> m = new QNameMap<ChildLoader>();
            createBodyUnmarshaller(c,m);
            Loader loader = new ItemsLoader(acc, lister, m);
            if(isWrapperNillable || chain.context.allNillable)
                loader = new XsiNilLoader(loader);
            loaders.put(wrapperTagName,new ChildLoader(loader,null));
        } else {
            createBodyUnmarshaller(chain,loaders);
View Full Code Here

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

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

        Receiver recv = new ReceiverImpl(offset);

        for (RuntimeTypeRef typeRef : prop.getTypes()) {

            Name tagName = chain.context.nameBuilder.createElementName(typeRef.getTagName());
            Loader item = createItemUnmarshaller(chain,typeRef);

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

            return false;
        return acc.isAbstractable(declaredTypeClass); // and is not builtin type
    }

    public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers) {
        Loader l = new LeafPropertyLoader(xacc);
        if (defaultValue != null)
            l = new DefaultValueLoaderDecorator(l, defaultValue);
        if (nillable || chain.context.allNillable)
            l = new XsiNilLoader.Single(l, acc);
View Full Code Here

TOP

Related Classes of com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader

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.