Package org.jboss.xb.annotations

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


/* 1332 */             String memberNamespace = null;
/*      */
/* 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


/* 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!");
/*      */               }
/*      */
/*      */             }
/*      */
/* 1345 */             String memberName = null;
View Full Code Here

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

/*      */           {
/* 1538 */             overrideNamespace = this.defaultNamespace;
/*      */           }
/*      */           else
/*      */           {
/* 1542 */             throw new IllegalStateException("Prefix '" + xmlNsPrefix.prefix() + "' is not mapped to any namespace!");
/*      */           }
/*      */
/*      */         }
/*      */
/*      */       }
View Full Code Here

      String groupNs = defaultNamespace;
      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;
View Full Code Here

      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())
            defaultNamespace = ns;
View Full Code Here

         String overridenDefaultNamespace = defaultNamespace;
         try
         {
         if (xmlNsPrefix != null)
         {
            prefixNs = schemaBinding.getNamespace(xmlNsPrefix.prefix());
            if (prefixNs == null)
            {
               if (xmlNsPrefix.schemaTargetIfNotMapped())
                  prefixNs = defaultNamespace;
               else
View Full Code Here

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