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

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


         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)
   {
      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

    */
   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

         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

            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

    */
   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

         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

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.