Package org.jboss.ws.tools.interfaces

Examples of org.jboss.ws.tools.interfaces.SchemaCreatorIntf


   }

   public void generateTypesForXSD(FaultMetaData fmd) throws IOException
   {
      //Types always deals with TypeNamespace
      SchemaCreatorIntf sc = javaToXSD.getSchemaCreator();
      //Look at the features
      QName xmlType = fmd.getXmlType();
      if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)
        generateType(xmlType ,fmd.getJavaType(), null);
   }
View Full Code Here


      WSDLTypes wsdlTypes = wsdl.getWsdlTypes();
      WSDLUtils.addSchemaModel(wsdlTypes, namespace, xsModel);
      wsdl.registerNamespaceURI(namespace, null);

      //Also get any custom namespaces
      SchemaCreatorIntf schemaCreator = javaToXSD.getSchemaCreator();
      mergeJavaWsdlMapping(schemaCreator.getJavaWsdlMapping());

      //Register the global config namespaces
      /*Map<String, String> nsmap = schemaCreator.getPackageNamespaceMap();
      Set keys = nsmap != null ? nsmap.keySet() : null;
      Iterator iter = (keys != null && !keys.isEmpty()) ? keys.iterator() : null;
      while (iter != null && iter.hasNext())
      {
         String pkg = (String)iter.next();
         String ns = nsmap.get(pkg);
         if (ns != null)
            wsdl.registerNamespaceURI(ns, null);
      }*/
      //Register the custom generated namespaces
      Map<String, String> nsmap = schemaCreator.getCustomNamespaceMap();
      Set keys = nsmap != null ? nsmap.keySet() : null;
      Iterator iter = (keys != null && !keys.isEmpty()) ? keys.iterator() : null;
      while (iter != null && iter.hasNext())
      {
         String prefix = (String)iter.next();
View Full Code Here

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

   /*
    * @see org.jboss.ws.tools.interfaces.JavaToXSDIntf#generateForSingleType()
    */
   public JBossXSModel generateForSingleType(QName xmlType, Class javaType) throws IOException
   {
      SchemaCreatorIntf creator = helper.getSchemaCreator();
      creator.generateType(xmlType, javaType);
      return creator.getXSModel();
   }
View Full Code Here

      return creator.getXSModel();
   }

   public JBossXSModel generateForSingleType(QName xmlType, Class javaType, Map<String, QName> elementNames) throws IOException
   {
      SchemaCreatorIntf creator = helper.getSchemaCreator();
      creator.generateType(xmlType, javaType, elementNames);
      return creator.getXSModel();
   }
View Full Code Here

   }

   public void generateTypesForXSD(FaultMetaData fmd) throws IOException
   {
      //Types always deals with TypeNamespace
      SchemaCreatorIntf sc = javaToXSD.getSchemaCreator();
      //Look at the features
      QName xmlType = fmd.getXmlType();
      if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)
        generateType(xmlType ,fmd.getJavaType(), null);
   }
View Full Code Here

      WSDLTypes wsdlTypes = wsdl.getWsdlTypes();
      WSDLUtils.addSchemaModel(wsdlTypes, namespace, xsModel);
      wsdl.registerNamespaceURI(namespace, null);

      //Also get any custom namespaces
      SchemaCreatorIntf schemaCreator = javaToXSD.getSchemaCreator();
      mergeJavaWsdlMapping(schemaCreator.getJavaWsdlMapping());

      //Register the global config namespaces
      /*Map<String, String> nsmap = schemaCreator.getPackageNamespaceMap();
      Set keys = nsmap != null ? nsmap.keySet() : null;
      Iterator iter = (keys != null && !keys.isEmpty()) ? keys.iterator() : null;
      while (iter != null && iter.hasNext())
      {
         String pkg = (String)iter.next();
         String ns = nsmap.get(pkg);
         if (ns != null)
            wsdl.registerNamespaceURI(ns, null);
      }*/
      //Register the custom generated namespaces
      Map<String, String> nsmap = schemaCreator.getCustomNamespaceMap();
      Set keys = nsmap != null ? nsmap.keySet() : null;
      Iterator iter = (keys != null && !keys.isEmpty()) ? keys.iterator() : null;
      while (iter != null && iter.hasNext())
      {
         String prefix = (String)iter.next();
View Full Code Here

/*  87 */   protected JavaToXSDHelper helper = null;
/*     */
/*     */   public JavaToXSD()
/*     */   {
/*  94 */     this.helper = new JavaToXSDHelper();
/*  95 */     SchemaCreatorIntf creator = this.helper.getSchemaCreator();
/*  96 */     JBossXSModel xsmodel = creator.getXSModel();
/*  97 */     if (xsmodel == null)
/*  98 */       creator.setXSModel(new JBossXSModel());
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public JBossXSModel generateForSingleType(QName xmlType, Class javaType)
/*     */     throws IOException
/*     */   {
/* 106 */     SchemaCreatorIntf creator = this.helper.getSchemaCreator();
/* 107 */     creator.generateType(xmlType, javaType);
/* 108 */     return creator.getXSModel();
/*     */   }
View Full Code Here

/* 108 */     return creator.getXSModel();
/*     */   }
/*     */
/*     */   public JBossXSModel generateForSingleType(QName xmlType, Class javaType, Map<String, QName> elementNames) throws IOException
/*     */   {
/* 113 */     SchemaCreatorIntf creator = this.helper.getSchemaCreator();
/* 114 */     creator.generateType(xmlType, javaType, elementNames);
/* 115 */     return creator.getXSModel();
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.tools.interfaces.SchemaCreatorIntf

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.