Examples of prefix()


Examples of org.jboss.seam.annotations.Namespace.prefix()

   {
     if (pkg != null) {
       Namespace ns = pkg.getAnnotation(Namespace.class);
       if (ns != null) {
         log.debug("Namespace: " + ns.value() + ", package: " + pkg.getName() +
             ", prefix: " + ns.prefix());

         NamespaceDescriptor descriptor = namespaceMap.get(ns.value());
         if (descriptor != null)
         {
            descriptor.addPackageName(pkg.getName());
View Full Code Here

Examples of org.jboss.seam.annotations.Namespace.prefix()

   {
     if (pkg != null) {
       Namespace ns = pkg.getAnnotation(Namespace.class);
       if (ns != null) {
         log.debug("Namespace: " + ns.value() + ", package: " + pkg.getName() +
             ", prefix: " + ns.prefix());

         NamespaceDescriptor descriptor = namespaceMap.get(ns.value());
         if (descriptor != null)
         {
            descriptor.addPackageName(pkg.getName());
View Full Code Here

Examples of org.jboss.seam.annotations.Namespace.prefix()

      if (pkg != null)
      {
         Namespace ns = pkg.getAnnotation(Namespace.class);
         if (ns != null)
         {
            log.info("Namespace: " + ns.value() + ", package: " + pkg.getName() + ", prefix: " + ns.prefix());
            NamespaceDescriptor old = namespaceMap.put(ns.value(), new NamespaceDescriptor(ns, pkg));
            if ( old!=null && !old.getPackage().equals(pkg) )
            {
               throw new IllegalStateException("two packages with the same @Namespace: " + ns.value());
            }
View Full Code Here

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

                  String memberNamespace = null;

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

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

                  if (nsPrefix != null)
                  {
                     memberNamespace = schemaBinding.getNamespace(nsPrefix.prefix());
                     if (memberNamespace == null && nsPrefix.schemaTargetIfNotMapped())
                     {
                        throw new IllegalStateException("Prefix '" + nsPrefix.prefix()
                              + "' is not mapped to any namespace!");
                     }
                  }

                  String memberName = null;
View Full Code Here

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

               localPropertyType = propertyType.getTypeInfoFactory().getTypeInfo(elementType);
         }

         if (xmlNsPrefix != null)
         {
            overrideNamespace = schemaBinding.getNamespace(xmlNsPrefix.prefix());
            if (overrideNamespace == null)
            {
               if (xmlNsPrefix.schemaTargetIfNotMapped())
               {
                  overrideNamespace = defaultNamespace;
View Full Code Here

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

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

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

                  String memberNamespace = null;

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

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

                  if (nsPrefix != null)
                  {
                     memberNamespace = schemaBinding.getNamespace(nsPrefix.prefix());
                     if (memberNamespace == null && nsPrefix.schemaTargetIfNotMapped())
                     {
                        throw new IllegalStateException("Prefix '" + nsPrefix.prefix()
                              + "' is not mapped to any namespace!");
                     }
                  }

                  String memberName = null;
View Full Code Here

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

               localPropertyType = propertyType.getTypeInfoFactory().getTypeInfo(elementType);
         }

         if (xmlNsPrefix != null)
         {
            overrideNamespace = schemaBinding.getNamespace(xmlNsPrefix.prefix());
            if (overrideNamespace == null)
            {
               if (xmlNsPrefix.schemaTargetIfNotMapped())
               {
                  overrideNamespace = defaultNamespace;
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.