Package nexj.core.meta.integration.format.xml.schema

Examples of nexj.core.meta.integration.format.xml.schema.Schema


   {
      SchemaUniverse universe = new SchemaUniverse();
      XSDSchemaExporter xsdExporter = new XSDSchemaExporter(universe);
      MessageSchemaConverter schemaExporter = new MessageSchemaConverter(universe);
      Message msg = m_context.getMetadata().getMessage("XML_Inherit_Schema_Reference");
      Schema schema = schemaExporter.add(msg).getSchema();

      xsdExporter.exportSchema(schema, m_resultWriter);

      assertEquals(
         "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
View Full Code Here


   {
      init(writer);

      // WSDL namespaces
      SchemaUniverse universe = service.getUniverse();
      Schema tnsSchema = universe.getSchema(service.getURI(), "tns");
      Schema soapBindSchema = universe.getSchema(XMLNamespace.WSDL_SOAP, XMLNamespace.WSDL_SOAP_NAME);
      Set excludedSchemaSet = new HashHolder();

      excludedSchemaSet.add(tnsSchema);
      excludedSchemaSet.add(soapBindSchema);
      excludedSchemaSet.add(XSDSchema.XSD);
View Full Code Here

      m_writer.startElement("types");

      for (int i = 0; i < sPrefixArray.length; i++)
      {
         String sPrefix = sPrefixArray[i];
         Schema schema = service.getUniverse().findSchema(sPrefix);
         String sURI = schema.getURI();

         if (sURI.equals(XMLNamespace.SOAP) || sURI.equals(XMLNamespace.SOAP12))
         {
            continue;
         }

         if (schema != null && !excludedSchemaSet.contains(schema) && schema.getItemCount() > 0)
         {
            schemaExporter.exportSchema(schema, m_writer);
         }
      }
View Full Code Here

   private void exportMessages(Iterator itr, Writer writer) throws IOException
   {
      SchemaUniverse universe = new SchemaUniverse();
      MessageSchemaConverter converter = new MessageSchemaConverter(universe);
      XSDSchemaExporter exporter = new XSDSchemaExporter(universe);
      Schema firstSchema = null;

      for (; itr.hasNext(); )
      {
         Schema temp = converter.add((Message)itr.next()).getSchema();

         if (firstSchema == null)
         {
            firstSchema = temp;
         }
View Full Code Here

TOP

Related Classes of nexj.core.meta.integration.format.xml.schema.Schema

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.