Package com.sun.xml.bind.v2.schemagen.xmlschema

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


            ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
            ct._final("#all");
            LocalElement le = ct.sequence().element().name("item");
            le.type(a.getItemType().getTypeName());
            le.minOccurs(0).maxOccurs("unbounded");
            le.nillable(true);
            ct.commit();
        }

        /**
         * writes the schema definition for the specified type-safe enum in the given TypeHost
View Full Code Here


                            writeTypeRef(e,t, "type");
                            elementFormDefault.writeForm(e,tn);
                        }

                        if (t.isNillable()) {
                            e.nillable(true);
                        }
                        if(t.getDefaultValue()!=null)
                            e._default(t.getDefaultValue());
                        writeOccurs(e,isOptional,repeated);
                    }
View Full Code Here

                        }
                        e.name(ename.getLocalPart());
                        elementFormDefault.writeForm(e,ename);

                        if(ep.isCollectionNillable()) {
                            e.nillable(true);
                        }
                        writeOccurs(e,!ep.isCollectionRequired(),repeated);

                        ComplexType p = e.complexType();
                        choice.write(p);
View Full Code Here

                return new Tree.Term() {
                    protected void write(ContentModelContainer parent, boolean isOptional, boolean repeated) {
                        LocalElement e = parent.element().name(ename.getLocalPart());
                        elementFormDefault.writeForm(e,ename);
                        if(rp.isCollectionNillable())
                            e.nillable(true);
                        writeOccurs(e,true,repeated);

                        ComplexType p = e.complexType();
                        choice.write(p);
                    }
View Full Code Here

                    QName ename = mp.getXmlName();

                    LocalElement e = parent.element();
                    elementFormDefault.writeForm(e,ename);
                    if(mp.isCollectionNillable())
                        e.nillable(true);

                    e = e.name(ename.getLocalPart());
                    writeOccurs(e,isOptional,repeated);
                    ComplexType p = e.complexType();
View Full Code Here

/*  765 */       ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
/*  766 */       ct._final("#all");
/*  767 */       LocalElement le = ct.sequence().element().name("item");
/*  768 */       le.type(a.getItemType().getTypeName());
/*  769 */       le.minOccurs(0).maxOccurs("unbounded");
/*  770 */       le.nillable(true);
/*  771 */       ct.commit();
/*      */     }
/*      */
/*      */     private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th)
/*      */     {
View Full Code Here

/* 1003 */               XmlSchemaGenerator.Namespace.this.writeTypeRef(e, this.val$t, "type");
/* 1004 */               XmlSchemaGenerator.Namespace.this.elementFormDefault.writeForm(e, tn);
/*      */             }
/*      */
/* 1007 */             if (this.val$t.isNillable()) {
/* 1008 */               e.nillable(true);
/*      */             }
/* 1010 */             if (this.val$t.getDefaultValue() != null)
/* 1011 */               e._default(this.val$t.getDefaultValue());
/* 1012 */             writeOccurs(e, isOptional, repeated);
/*      */           }
View Full Code Here

/*      */
/* 1035 */             e.name(this.val$ename.getLocalPart());
/* 1036 */             XmlSchemaGenerator.Namespace.this.elementFormDefault.writeForm(e, this.val$ename);
/*      */
/* 1038 */             if (this.val$ep.isCollectionNillable()) {
/* 1039 */               e.nillable(true);
/*      */             }
/* 1041 */             writeOccurs(e, !this.val$ep.isCollectionRequired(), repeated);
/*      */
/* 1043 */             ComplexType p = e.complexType();
/* 1044 */             this.val$choice.write(p);
View Full Code Here

/* 1203 */         return new Tree.Term(ename, rp, choice) {
/*      */           protected void write(ContentModelContainer parent, boolean isOptional, boolean repeated) {
/* 1205 */             LocalElement e = parent.element().name(this.val$ename.getLocalPart());
/* 1206 */             XmlSchemaGenerator.Namespace.this.elementFormDefault.writeForm(e, this.val$ename);
/* 1207 */             if (this.val$rp.isCollectionNillable())
/* 1208 */               e.nillable(true);
/* 1209 */             writeOccurs(e, true, repeated);
/*      */
/* 1211 */             ComplexType p = e.complexType();
/* 1212 */             this.val$choice.write(p);
/*      */           }
View Full Code Here

/* 1229 */           QName ename = this.val$mp.getXmlName();
/*      */
/* 1231 */           LocalElement e = parent.element();
/* 1232 */           XmlSchemaGenerator.Namespace.this.elementFormDefault.writeForm(e, ename);
/* 1233 */           if (this.val$mp.isCollectionNillable()) {
/* 1234 */             e.nillable(true);
/*      */           }
/* 1236 */           e = e.name(ename.getLocalPart());
/* 1237 */           writeOccurs(e, isOptional, repeated);
/* 1238 */           ComplexType p = e.complexType();
/*      */
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.