Package org.jboss.xb.annotations

Examples of org.jboss.xb.annotations.JBossXmlSchema.namespace()


      String schemaNamespace = schemaNamespaces.iterator().next();
      if(schema != null)
      {
         // check the default namespaces are equal
         if(!JBossXmlConstants.DEFAULT.equals(schema.namespace()))
            classNamespace = schema.namespace();

         // add prefix mappings
         if (schema.xmlns().length > 0)
         {
            for(int i = 0; i < schema.xmlns().length; ++i)
View Full Code Here


      if (schemaBinding.getNamespaces().isEmpty())
      {
         String namespace = XMLConstants.NULL_NS_URI;
         if (schema != null)
         {
            String schemaNamespace = schema.namespace();
            if (JBossXmlConstants.DEFAULT.equals(schemaNamespace) == false)
               namespace = schemaNamespace;
         }
         schemaBinding.setNamespaces(new HashSet<String>(Collections.singleton(namespace)));
      }
View Full Code Here

      {
         Package pckg = metadata.getPackage();
         if (pckg != null)
            jBossXmlSchema = pckg.getAnnotation(JBossXmlSchema.class);
      }
      return jBossXmlSchema != null ? jBossXmlSchema.namespace() : null;
   }

   protected T parse(VFSDeploymentUnit unit, VirtualFile file, T root) throws Exception
   {
      if (file == null)
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.