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

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


      JBossXSModel xsmodel = new JBossXSModel();
      JBossXSComplexTypeDefinition ct = new JBossXSComplexTypeDefinition();
      ct.setName("HelloObj");
      ct.setNamespace(typeNS);
      JBossXSParticle xsp = new JBossXSParticle();
      JBossXSElementDeclaration xsel = new JBossXSElementDeclaration();
      xsel.setName("msg");
      xsel.setTypeDefinition(SchemaUtils.getInstance().getSchemaBasicType("string"));
      xsel.setNillable(true);
      xsp.setTerm(xsel);
      ct.setParticle(xsp);
      xsmodel.addXSComplexTypeDefinition(ct)//Always add global complex types to global types
      //Lets write the schema into a file
      File xsdOutFile = new File("tools/wsdlwritedir/HelloObj.xsd");
View Full Code Here


      JBossXSModel xsmodel = new JBossXSModel();
      JBossXSComplexTypeDefinition ct = new JBossXSComplexTypeDefinition();
      ct.setName("HelloObj");
      ct.setNamespace(typeNS);
      JBossXSParticle xsp = new JBossXSParticle();
      JBossXSElementDeclaration xsel = new JBossXSElementDeclaration();
      xsel.setName("msg");
      xsel.setTypeDefinition(SchemaUtils.getInstance().getSchemaBasicType("string"));
      xsel.setNillable(true);
      xsp.setTerm(xsel);
      ct.setParticle(xsp);
      xsmodel.addXSComplexTypeDefinition(ct)//Always add global complex types to global types
      //Lets write the schema into a file
      File xsdOutFile = createResourceFile("tools/wsdlwritedir/HelloObj.xsd");
View Full Code Here

    */
   public XSElementDeclaration createXSElementDeclaration(QName xmlName, XSTypeDefinition xst)
   {
      String name = xmlName.getLocalPart();
      String ns = xmlName.getNamespaceURI();
      JBossXSElementDeclaration jbel = new JBossXSElementDeclaration(name, ns);
      jbel.setTypeDefinition(xst);
      jbel.setScope(XSConstants.SCOPE_GLOBAL);
      return jbel;
   }
View Full Code Here

            if (typeNamespace.equals(elementNamespace))
               elementNamespace = null;
         }
      }

      JBossXSElementDeclaration xsel;
      if (elementNamespace == null || elementNamespace.length() == 0)
      {
         xsel = sutils.createXSElementDeclaration(fieldName, xst, !fieldType.isPrimitive());
      }
      else
View Full Code Here

      if (isArray)
         fieldType = fieldType.getComponentType();

      xstype = this.generateType(null, fieldType);
      boolean isNillable = !fieldType.isPrimitive();
      JBossXSElementDeclaration xsel = (JBossXSElementDeclaration)sutils.createXSElementDeclaration(name, xstype, isNillable);

      return sutils.createXSParticle(targetNS, isArray, xsel);
   }
View Full Code Here

            if (typeNamespace.equals(elementNamespace))
               elementNamespace = null;
         }
      }

      JBossXSElementDeclaration xsel;
      if (elementNamespace == null || elementNamespace.length() == 0)
      {
         xsel = sutils.createXSElementDeclaration(fieldName, xst, !fieldType.isPrimitive());
      }
      else
View Full Code Here

      if (isArray)
         fieldType = fieldType.getComponentType();

      xstype = this.generateType(null, fieldType);
      boolean isNillable = !fieldType.isPrimitive();
      JBossXSElementDeclaration xsel = (JBossXSElementDeclaration)sutils.createXSElementDeclaration(name, xstype, isNillable);

      return sutils.createXSParticle(targetNS, isArray, xsel);
   }
View Full Code Here

         type = SchemaUtils.getInstance().getSchemaBasicType(xmlType.getLocalPart());
      else
         type = schemaModel.getTypeDefinition(xmlType.getLocalPart(), namespaceURI);

      WSSchemaUtils utils = WSSchemaUtils.getInstance(schemaModel.getNamespaceRegistry(), null);
      JBossXSElementDeclaration element =
         utils.createGlobalXSElementDeclaration(xmlName.getLocalPart(), type, xmlName.getNamespaceURI());
      schemaModel.addXSElementDeclaration(element);

      wsdl.registerNamespaceURI(xmlName.getNamespaceURI(), null);
   }
View Full Code Here

/*     */
/*     */   public XSElementDeclaration createXSElementDeclaration(QName xmlName, XSTypeDefinition xst)
/*     */   {
/* 197 */     String name = xmlName.getLocalPart();
/* 198 */     String ns = xmlName.getNamespaceURI();
/* 199 */     JBossXSElementDeclaration jbel = new JBossXSElementDeclaration(name, ns);
/* 200 */     jbel.setTypeDefinition(xst);
/* 201 */     jbel.setScope(1);
/* 202 */     return jbel;
/*     */   }
View Full Code Here

    */
   public XSElementDeclaration createXSElementDeclaration(QName xmlName, XSTypeDefinition xst)
   {
      String name = xmlName.getLocalPart();
      String ns = xmlName.getNamespaceURI();
      JBossXSElementDeclaration jbel = new JBossXSElementDeclaration(name, ns);
      jbel.setTypeDefinition(xst);
      jbel.setScope(XSConstants.SCOPE_GLOBAL);
      return jbel;
   }
View Full Code Here

TOP

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

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.