Package org.jboss.ws.metadata.wsdl.xmlschema

Examples of org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel


    */
   public JavaToXSD()
   {
      helper = new JavaToXSDHelper();
      SchemaCreatorIntf creator = helper.getSchemaCreator();
      JBossXSModel xsmodel = creator.getXSModel();
      if (xsmodel == null)
         creator.setXSModel(new JBossXSModel());
   }
View Full Code Here


      XSModel xsmodel = loader.loadURI(xsdURL.toExternalForm());
      if (xsmodel == null)
         throw new WSException("Cannot load schema: " + xsdURL);

      WSSchemaUtils sutils = WSSchemaUtils.getInstance(null, null);
      JBossXSModel jbxs = new JBossXSModel();
      sutils.copyXSModel(xsmodel, jbxs);
      return jbxs;
   }
View Full Code Here

      }
      XSModel xsmodel = new XSModelImpl(gs);

      // Convert Xerces XSModel into r/w JBossXSModel
      WSSchemaUtils sutils = WSSchemaUtils.getInstance(null, null);
      JBossXSModel jbxs = new JBossXSModel();
      sutils.copyXSModel(xsmodel, jbxs);

      return jbxs;
   }
View Full Code Here

   {
      if(targetNamespace == null)
         throw new IllegalArgumentException("Illegal Null Argument: targetNamespace");

      XSModel xsmodel = creator.getXSModel();
      if(xsmodel == null) creator.setXSModel(new JBossXSModel());
      //    Special case: if javaType is a Standard jaxrpc holder
      Class cls = utils.getJavaTypeForHolder(javaType);
      if(cls != null) return null;
      creator.generateType(null, javaType  );
      return creator.getXSModel();
View Full Code Here

         return;

      if (wsdlTypes instanceof XSModelTypes)
      {
         buffer.append("<types>");
         JBossXSModel xsM = WSDLUtils.getSchemaModel(wsdlTypes);
         String schema = xsM.serialize();
         buffer.append(schema);
         buffer.append("</types>");
      }
      else if (wsdlTypes instanceof DOMTypes)
      {
View Full Code Here

   public SchemaBinding getSchemaBinding()
   {
      JavaWsdlMapping wsdlMapping = getJavaWsdlMapping();
      if (schemaBinding == null && getEncodingStyle() == Use.LITERAL && wsdlMapping != null)
      {
         JBossXSModel xsModel = types.getSchemaModel();
         SchemaBindingBuilder bindingBuilder = new SchemaBindingBuilder();
         schemaBinding = bindingBuilder.buildSchemaBinding(xsModel, wsdlMapping);
      }
      return schemaBinding;
   }
View Full Code Here

      if (definitions != null)
      {
         WSDLTypes types = definitions.getWsdlTypes();
         if (types != null)
         {
            JBossXSModel model = WSDLUtils.getSchemaModel(types);
            if (model != null)
               model.eagerInitialize();
         }
      }

      // Initialize jaxrpc-mapping data
      getJavaWsdlMapping();
View Full Code Here

            Map<String, String> namespaceMap = new HashMap<String, String>();
            namespaceMap.put(componentType.getPackage().getName(), nsuri);
            javaToXSD.setPackageNamespaceMap(namespaceMap);
         }

         JBossXSModel xsModel = javaToXSD.generateForSingleType(xmlType, javaType);
         if (xsModel == null)
            throw new WSException("Cannot generate XSModel");

         if(log.isDebugEnabled()) log.debug("\n" + xsModel.serialize());
         return xsModel;
      }
      catch (RuntimeException rte)
      {
         throw rte;
View Full Code Here

   private JBossXSModel schemaModel;

   public XSModelTypes()
   {
      this.schemaModel = new JBossXSModel();
   }
View Full Code Here

      if(ns == null)
         throw new IllegalArgumentException("Illegal Null Argument:ns");
      String xsdString = "";
      if(xsmodel instanceof JBossXSModel)
      {
         JBossXSModel jbxs = (JBossXSModel)xsmodel;
         xsdString = jbxs.serialize();
      }
      else
      {
         //       Serialize XSD model
         StringWriter strwr = new StringWriter();
View Full Code Here

TOP

Related Classes of org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel

Copyright © 2018 www.massapicom. 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.