Examples of attributeFormDefault()


Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

                continue;

            if(!xs.namespace().equals(nsUri))
                continue;

            XmlNsForm xnf = xs.attributeFormDefault();
            if(xnf!=XmlNsForm.UNSET)
                return xnf;
        }
        return XmlNsForm.UNSET;
    }
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

        if(uri.equals("##default")) {
            XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
            // JAX-RPC doesn't want the default namespace URI swapping to take effect to
            // local "unqualified" elements. UGLY.
            if(xs!=null) {
                switch(xs.attributeFormDefault()) {
                case QUALIFIED:
                    uri = parent.getTypeName().getNamespaceURI();
                    if(uri.length()==0)
                        uri = parent.builder.defaultNsUri;
                    break;
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

    private String getEffectiveNamespaceFor(XmlElementRef r) {
        String nsUri = r.namespace();

        XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
        if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
            // JAX-RPC doesn't want the default namespace URI swapping to take effect to
            // local "unqualified" elements. UGLY.
            if(nsUri.length()==0)
                nsUri = parent.builder.defaultNsUri;
        }
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

               defaultNamespace = namespace;
               addNamespace(defaultNamespace, true);
            }

            if (attributeForm == XmlNsForm.UNSET)
               attributeForm = xmlSchema.attributeFormDefault();
            if (elementForm == XmlNsForm.UNSET)
               elementForm = xmlSchema.elementFormDefault();
         }

         // Check for adapted types
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

    private String getEffectiveNamespaceFor(XmlElementRef r) {
        String nsUri = r.namespace();

        XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
        if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
            // JAX-RPC doesn't want the default namespace URI swapping to take effect to
            // local "unqualified" elements. UGLY.
            if(nsUri.length()==0)
                nsUri = parent.builder.defaultNsUri;
        }
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

               defaultNamespace = namespace;
               addNamespace(defaultNamespace, true);
            }

            if (attributeForm == XmlNsForm.UNSET)
               attributeForm = xmlSchema.attributeFormDefault();
            if (elementForm == XmlNsForm.UNSET)
               elementForm = xmlSchema.elementFormDefault();
         }

         // Check for adapted types
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

               defaultNamespace = namespace;
               addNamespace(defaultNamespace, true);
            }

            if (attributeForm == XmlNsForm.UNSET)
               attributeForm = xmlSchema.attributeFormDefault();
            if (elementForm == XmlNsForm.UNSET)
               elementForm = xmlSchema.elementFormDefault();
         }

         // Check for adapted types
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

               defaultNamespace = namespace;
               addNamespace(defaultNamespace, true);
            }

            if (attributeForm == XmlNsForm.UNSET)
               attributeForm = xmlSchema.attributeFormDefault();
            if (elementForm == XmlNsForm.UNSET)
               elementForm = xmlSchema.elementFormDefault();
         }

         // Check for adapted types
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

/*  231 */           this.defaultNamespace = namespace;
/*  232 */           addNamespace(this.defaultNamespace, true);
/*      */         }
/*      */
/*  235 */         if (this.attributeForm == XmlNsForm.UNSET)
/*  236 */           this.attributeForm = xmlSchema.attributeFormDefault();
/*  237 */         if (this.elementForm == XmlNsForm.UNSET) {
/*  238 */           this.elementForm = xmlSchema.elementFormDefault();
/*      */         }
/*      */       }
/*      */
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.attributeFormDefault()

/* 376 */       XmlSchema xs = (XmlSchema)this.reader.getPackageAnnotation(XmlSchema.class, ci.getClazz(), null);
/* 377 */       if ((xs == null) ||
/* 380 */         (!xs.namespace().equals(nsUri))) {
/*     */         continue;
/*     */       }
/* 383 */       XmlNsForm xnf = xs.attributeFormDefault();
/* 384 */       if (xnf != XmlNsForm.UNSET)
/* 385 */         return xnf;
/*     */     }
/* 387 */     return XmlNsForm.UNSET;
/*     */   }
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.