Package org.jboss.xb.annotations

Examples of org.jboss.xb.annotations.JBossXmlNsPrefix.schemaTargetIfNotMapped()


/*      */
/* 1334 */             JBossXmlNsPrefix nsPrefix = (JBossXmlNsPrefix)memberProp.getUnderlyingAnnotation(JBossXmlNsPrefix.class);
/* 1335 */             if (nsPrefix != null)
/*      */             {
/* 1337 */               memberNamespace = this.schemaBinding.getNamespace(nsPrefix.prefix());
/* 1338 */               if ((memberNamespace == null) && (nsPrefix.schemaTargetIfNotMapped()))
/*      */               {
/* 1340 */                 throw new IllegalStateException("Prefix '" + nsPrefix.prefix() + "' is not mapped to any namespace!");
/*      */               }
/*      */
/*      */             }
View Full Code Here


/* 1531 */       if (xmlNsPrefix != null)
/*      */       {
/* 1533 */         overrideNamespace = this.schemaBinding.getNamespace(xmlNsPrefix.prefix());
/* 1534 */         if (overrideNamespace == null)
/*      */         {
/* 1536 */           if (xmlNsPrefix.schemaTargetIfNotMapped())
/*      */           {
/* 1538 */             overrideNamespace = this.defaultNamespace;
/*      */           }
/*      */           else
/*      */           {
View Full Code Here

      String overridenDefaultNamespace = defaultNamespace;
      JBossXmlNsPrefix nsPrefix = property.getUnderlyingAnnotation(JBossXmlNsPrefix.class);
      if (nsPrefix != null)
      {
         String ns = schemaBinding.getNamespace(nsPrefix.prefix());
         if (ns == null && nsPrefix.schemaTargetIfNotMapped())
            throw new IllegalStateException("Prefix '" + nsPrefix.prefix() + "' is not mapped to any namespace!");

         if (nsPrefix.applyToComponentQName())
            groupNs = ns;
         if (nsPrefix.applyToComponentContent())
View Full Code Here

         if (xmlNsPrefix != null)
         {
            prefixNs = schemaBinding.getNamespace(xmlNsPrefix.prefix());
            if (prefixNs == null)
            {
               if (xmlNsPrefix.schemaTargetIfNotMapped())
                  prefixNs = defaultNamespace;
               else
                  throw new IllegalStateException("Prefix '" + xmlNsPrefix.prefix() + "' is not mapped to any namespace!");
            }
           
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.