Package javax.xml.bind.annotation

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


               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

    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

               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

               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

               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

/*  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

/* 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

/*     */
/*     */   private String getEffectiveNamespaceFor(XmlElementRef r) {
/* 200 */     String nsUri = r.namespace();
/*     */
/* 202 */     XmlSchema xs = (XmlSchema)reader().getPackageAnnotation(XmlSchema.class, this.parent.getClazz(), this);
/* 203 */     if ((xs != null) && (xs.attributeFormDefault() == XmlNsForm.QUALIFIED))
/*     */     {
/* 206 */       if (nsUri.length() == 0) {
/* 207 */         nsUri = this.parent.builder.defaultNsUri;
/*     */       }
/*     */     }
View Full Code Here

               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

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.