remove it from main
authorjefflin@netbeans.org
Wed, 09 Jul 2008 12:08:56 -0700
changeset 4815c3f86cda4f91
parent 4813 8378b1f05964
child 4816 0dff152593cb
remove it from main
wsdlextensions.mq/build.xml
wsdlextensions.mq/manifest.mf
wsdlextensions.mq/nbproject/genfiles.properties
wsdlextensions.mq/nbproject/project.properties
wsdlextensions.mq/nbproject/project.xml
wsdlextensions.mq/src/META-INF/services/org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider
wsdlextensions.mq/src/META-INF/services/org.netbeans.modules.xml.wsdl.model.spi.ElementFactory
wsdlextensions.mq/src/META-INF/services/org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory
wsdlextensions.mq/src/META-INF/services/org.netbeans.modules.xml.xam.spi.Validator
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQAddress.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQBinding.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQBody.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQComponent.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQOperation.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQQName.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQAddressImpl.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQAttribute.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQBindingImpl.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQBodyImpl.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQComponentImpl.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQElementFactoryProvider.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQOperationImpl.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/Bundle.properties
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/End_16.png
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/Start_16.png
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/layer.xml
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/mapping16.png
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/mq-ext.xsd
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/onalarm16x16.png
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/onmessage16x16.png
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/scope16x16.png
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/wsdl.xsd
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/template/Bundle.properties
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/template/MQTemplateProvider.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/template/template.xml
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/validator/Bundle.properties
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/validator/MQComponentValidator.java
wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/validator/MQValidatorSchemaFactory.java
wsdlextensions.mq/test/build-unit.xml
wsdlextensions.mq/test/build.xml
wsdlextensions.mq/test/cfg-unit.xml
wsdlextensions.mq/test/unit/src/org/netbeans/modules/wsdlextensions/mq/validator/MQValidatorSchemaFactoryTest.java
wsdlextensions.mq/test/unit/src/org/netbeans/modules/wsdlextensions/mq/validator/SchemaTest.java
     1.1 --- a/wsdlextensions.mq/build.xml	Tue Jul 08 18:18:05 2008 +0530
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,28 +0,0 @@
     1.4 -<?xml version="1.0" encoding="UTF-8"?>
     1.5 -
     1.6 -<!--
     1.7 - The contents of this file are subject to the terms of the Common Development
     1.8 - and Distribution License (the License). You may not use this file except in
     1.9 - compliance with the License.
    1.10 - 
    1.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    1.12 - or http://www.netbeans.org/cddl.txt.
    1.13 - 
    1.14 - When distributing Covered Code, include this CDDL Header Notice in each file
    1.15 - and include the License file at http://www.netbeans.org/cddl.txt.
    1.16 - If applicable, add the following below the CDDL Header, with the fields
    1.17 - enclosed by brackets [] replaced by your own identifying information:
    1.18 - "Portions Copyrighted [year] [name of copyright owner]"
    1.19 - 
    1.20 - The Original Software is NetBeans. The Initial Developer of the Original
    1.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
    1.22 - Microsystems, Inc. All Rights Reserved.
    1.23 --->
    1.24 -
    1.25 -<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
    1.26 -<!-- for some information on what you could do (e.g. targets to override). -->
    1.27 -<!-- If you delete this file and reopen the project it will be recreated. -->
    1.28 -<project name="org.netbeans.modules.wsdlextensions.mq" default="netbeans" basedir=".">
    1.29 -    <description>Builds, tests, and runs the project org.netbeans.modules.wsdlextensions.mq.</description>
    1.30 -    <import file="../../nbbuild/templates/projectized.xml"/>
    1.31 -</project>
     2.1 --- a/wsdlextensions.mq/manifest.mf	Tue Jul 08 18:18:05 2008 +0530
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,6 +0,0 @@
     2.4 -Manifest-Version: 1.0
     2.5 -OpenIDE-Module: org.netbeans.modules.wsdlextensions.mq
     2.6 -OpenIDE-Module-Layer: org/netbeans/modules/wsdlextensions/mq/resources/layer.xml
     2.7 -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/wsdlextensions/mq/resources/Bundle.properties
     2.8 -OpenIDE-Module-Specification-Version: 1.0
     2.9 -
     3.1 --- a/wsdlextensions.mq/nbproject/genfiles.properties	Tue Jul 08 18:18:05 2008 +0530
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,8 +0,0 @@
     3.4 -build.xml.data.CRC32=a7106222
     3.5 -build.xml.script.CRC32=9b8c49ba
     3.6 -build.xml.stylesheet.CRC32=77ef55dd
     3.7 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     3.8 -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     3.9 -nbproject/build-impl.xml.data.CRC32=a7106222
    3.10 -nbproject/build-impl.xml.script.CRC32=843002ca
    3.11 -nbproject/build-impl.xml.stylesheet.CRC32=2607fe5f
     4.1 --- a/wsdlextensions.mq/nbproject/project.properties	Tue Jul 08 18:18:05 2008 +0530
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,48 +0,0 @@
     4.4 -#
     4.5 -# The contents of this file are subject to the terms of the Common Development
     4.6 -# and Distribution License (the License). You may not use this file except in
     4.7 -# compliance with the License.
     4.8 -# 
     4.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    4.10 -# or http://www.netbeans.org/cddl.txt.
    4.11 -# 
    4.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
    4.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
    4.14 -# If applicable, add the following below the CDDL Header, with the fields
    4.15 -# enclosed by brackets [] replaced by your own identifying information:
    4.16 -# "Portions Copyrighted [year] [name of copyright owner]"
    4.17 -# 
    4.18 -# The Original Software is NetBeans. The Initial Developer of the Original
    4.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
    4.20 -# Microsystems, Inc. All Rights Reserved.
    4.21 -#
    4.22 -
    4.23 -javac.compilerargs=-Xlint:unchecked
    4.24 -javac.source=1.5
    4.25 -test.unit.cp.extra=\
    4.26 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-xdm.jar:\
    4.27 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-xam.jar:\
    4.28 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-retriever.jar:\
    4.29 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-schema-model.jar:\
    4.30 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-wsdl-model.jar:\
    4.31 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor.jar:\
    4.32 -    ${netbeans.dest.dir}/platform6/lib/org-openide-modules.jar:\
    4.33 -    ${netbeans.dest.dir}/platform6/lib/org-openide-util.jar:\
    4.34 -    ${netbeans.dest.dir}/platform6/modules/org-openide-options.jar:\
    4.35 -    ${netbeans.dest.dir}/platform6/modules/org-openide-text.jar:\
    4.36 -    ${netbeans.dest.dir}/platform6/modules/org-openide-nodes.jar:\
    4.37 -    ${netbeans.dest.dir}/platform6/modules/org-openide-loaders.jar:\
    4.38 -    ${netbeans.dest.dir}/platform6/modules/org-openide-dialogs.jar:\
    4.39 -    ${netbeans.dest.dir}/platform6/modules/org-openide-windows.jar:\
    4.40 -    ${netbeans.dest.dir}/platform6/modules/org-openide-awt.jar:\
    4.41 -    ${netbeans.dest.dir}/platform6/modules/org-netbeans-modules-masterfs.jar:\
    4.42 -    ${netbeans.dest.dir}/platform6/core/org-openide-filesystems.jar:\
    4.43 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-projectapi.jar:\
    4.44 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor-util.jar:\
    4.45 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-text.jar:\
    4.46 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-core.jar:\
    4.47 -    ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor-lib.jar:\
    4.48 -    ${netbeans.dest.dir}/ide7/modules/org-apache-xml-resolver.jar:\
    4.49 -    ${netbeans.dest.dir}/soa1/modules/org-netbeans-modules-wsdlextensions-mq.jar
    4.50 -
    4.51 -test.unit.run.cp=${test.unit.cp.extra}
     5.1 --- a/wsdlextensions.mq/nbproject/project.xml	Tue Jul 08 18:18:05 2008 +0530
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,75 +0,0 @@
     5.4 -<?xml version="1.0" encoding="UTF-8"?>
     5.5 -
     5.6 -<!--
     5.7 - The contents of this file are subject to the terms of the Common Development
     5.8 - and Distribution License (the License). You may not use this file except in
     5.9 - compliance with the License.
    5.10 - 
    5.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    5.12 - or http://www.netbeans.org/cddl.txt.
    5.13 - 
    5.14 - When distributing Covered Code, include this CDDL Header Notice in each file
    5.15 - and include the License file at http://www.netbeans.org/cddl.txt.
    5.16 - If applicable, add the following below the CDDL Header, with the fields
    5.17 - enclosed by brackets [] replaced by your own identifying information:
    5.18 - "Portions Copyrighted [year] [name of copyright owner]"
    5.19 - 
    5.20 - The Original Software is NetBeans. The Initial Developer of the Original
    5.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
    5.22 - Microsystems, Inc. All Rights Reserved.
    5.23 --->
    5.24 -
    5.25 -<project xmlns="http://www.netbeans.org/ns/project/1">
    5.26 -    <type>org.netbeans.modules.apisupport.project</type>
    5.27 -    <configuration>
    5.28 -        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
    5.29 -            <code-name-base>org.netbeans.modules.wsdlextensions.mq</code-name-base>
    5.30 -            <module-dependencies>
    5.31 -                <dependency>
    5.32 -                    <code-name-base>org.netbeans.modules.xml.schema.model</code-name-base>
    5.33 -                    <build-prerequisite/>
    5.34 -                    <compile-dependency/>
    5.35 -                    <run-dependency>
    5.36 -                        <release-version>1</release-version>
    5.37 -                        <specification-version>1.1.21</specification-version>
    5.38 -                    </run-dependency>
    5.39 -                </dependency>
    5.40 -                <dependency>
    5.41 -                    <code-name-base>org.netbeans.modules.xml.wsdl.model</code-name-base>
    5.42 -                    <build-prerequisite/>
    5.43 -                    <compile-dependency/>
    5.44 -                    <run-dependency>
    5.45 -                        <release-version>1</release-version>
    5.46 -                        <specification-version>1.1.21</specification-version>
    5.47 -                    </run-dependency>
    5.48 -                </dependency>
    5.49 -                <dependency>
    5.50 -                    <code-name-base>org.netbeans.modules.xml.wsdl.bindingsupport.api</code-name-base>
    5.51 -                    <build-prerequisite/>
    5.52 -                    <compile-dependency/>
    5.53 -                    <run-dependency>
    5.54 -                        <specification-version>1.0</specification-version>
    5.55 -                    </run-dependency>
    5.56 -                </dependency>
    5.57 -                <dependency>
    5.58 -                    <code-name-base>org.netbeans.modules.xml.xam</code-name-base>
    5.59 -                    <build-prerequisite/>
    5.60 -                    <compile-dependency/>
    5.61 -                    <run-dependency>
    5.62 -                        <release-version>1</release-version>
    5.63 -                        <specification-version>1.1.21</specification-version>
    5.64 -                    </run-dependency>
    5.65 -                </dependency>
    5.66 -                <dependency>
    5.67 -                    <code-name-base>org.openide.util</code-name-base>
    5.68 -                    <build-prerequisite/>
    5.69 -                    <compile-dependency/>
    5.70 -                    <run-dependency>
    5.71 -                        <specification-version>6.8.22</specification-version>
    5.72 -                    </run-dependency>
    5.73 -                </dependency>
    5.74 -            </module-dependencies>
    5.75 -            <public-packages/>
    5.76 -        </data>
    5.77 -    </configuration>
    5.78 -</project>
     6.1 --- a/wsdlextensions.mq/src/META-INF/services/org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider	Tue Jul 08 18:18:05 2008 +0530
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,1 +0,0 @@
     6.4 -org.netbeans.modules.wsdlextensions.mq.template.MQTemplateProvider
     6.5 \ No newline at end of file
     7.1 --- a/wsdlextensions.mq/src/META-INF/services/org.netbeans.modules.xml.wsdl.model.spi.ElementFactory	Tue Jul 08 18:18:05 2008 +0530
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,6 +0,0 @@
     7.4 -org.netbeans.modules.wsdlextensions.mq.impl.MQElementFactoryProvider$BindingFactory
     7.5 -org.netbeans.modules.wsdlextensions.mq.impl.MQElementFactoryProvider$OperationFactory
     7.6 -org.netbeans.modules.wsdlextensions.mq.impl.MQElementFactoryProvider$AddressFactory
     7.7 -org.netbeans.modules.wsdlextensions.mq.impl.MQElementFactoryProvider$BodyFactory
     7.8 -
     7.9 -
     8.1 --- a/wsdlextensions.mq/src/META-INF/services/org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory	Tue Jul 08 18:18:05 2008 +0530
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,1 +0,0 @@
     8.4 -org.netbeans.modules.wsdlextensions.mq.validator.MQValidatorSchemaFactory
     8.5 \ No newline at end of file
     9.1 --- a/wsdlextensions.mq/src/META-INF/services/org.netbeans.modules.xml.xam.spi.Validator	Tue Jul 08 18:18:05 2008 +0530
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,2 +0,0 @@
     9.4 -org.netbeans.modules.wsdlextensions.mq.validator.MQComponentValidator
     9.5 -
    10.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQAddress.java	Tue Jul 08 18:18:05 2008 +0530
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,47 +0,0 @@
    10.4 -/*
    10.5 - * The contents of this file are subject to the terms of the Common Development
    10.6 - * and Distribution License (the License). You may not use this file except in
    10.7 - * compliance with the License.
    10.8 - * 
    10.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   10.10 - * or http://www.netbeans.org/cddl.txt.
   10.11 - * 
   10.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   10.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   10.14 - * If applicable, add the following below the CDDL Header, with the fields
   10.15 - * enclosed by brackets [] replaced by your own identifying information:
   10.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   10.17 - * 
   10.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   10.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   10.20 - * Microsystems, Inc. All Rights Reserved.
   10.21 - */
   10.22 -
   10.23 -/*
   10.24 - * MQAddress.java
   10.25 - *
   10.26 - * Created on December 14, 2006, 12:27 PM
   10.27 - *
   10.28 - * To change this template, choose Tools | Template Manager
   10.29 - * and open the template in the editor.
   10.30 - */
   10.31 -
   10.32 -package org.netbeans.modules.wsdlextensions.mq;
   10.33 -
   10.34 -/**
   10.35 - *
   10.36 - * @author rchen
   10.37 - */
   10.38 -public interface MQAddress extends MQComponent {
   10.39 -    
   10.40 -    public static final String ATTR_QUEUEMANAGERNAME = "queueManagerName";
   10.41 -    public static final String ATTR_HOSTNAME = "hostName";
   10.42 -    
   10.43 -    
   10.44 -    public String getQueueManagerName();
   10.45 -    public void setQueueManagerName(String val);
   10.46 -    
   10.47 -      public String getHostName();
   10.48 -    public void setHostName(String val);
   10.49 -    
   10.50 -}
    11.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQBinding.java	Tue Jul 08 18:18:05 2008 +0530
    11.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.3 @@ -1,28 +0,0 @@
    11.4 -/*
    11.5 - * The contents of this file are subject to the terms of the Common Development
    11.6 - * and Distribution License (the License). You may not use this file except in
    11.7 - * compliance with the License.
    11.8 - * 
    11.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   11.10 - * or http://www.netbeans.org/cddl.txt.
   11.11 - * 
   11.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   11.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   11.14 - * If applicable, add the following below the CDDL Header, with the fields
   11.15 - * enclosed by brackets [] replaced by your own identifying information:
   11.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   11.17 - * 
   11.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   11.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   11.20 - * Microsystems, Inc. All Rights Reserved.
   11.21 - */
   11.22 -
   11.23 -package org.netbeans.modules.wsdlextensions.mq;
   11.24 -
   11.25 -/**
   11.26 - *
   11.27 - * @author rchen
   11.28 - */
   11.29 -public interface MQBinding extends MQComponent {
   11.30 -    
   11.31 -}
    12.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQBody.java	Tue Jul 08 18:18:05 2008 +0530
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,59 +0,0 @@
    12.4 -/*
    12.5 - * The contents of this file are subject to the terms of the Common Development
    12.6 - * and Distribution License (the License). You may not use this file except in
    12.7 - * compliance with the License.
    12.8 - * 
    12.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   12.10 - * or http://www.netbeans.org/cddl.txt.
   12.11 - * 
   12.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   12.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   12.14 - * If applicable, add the following below the CDDL Header, with the fields
   12.15 - * enclosed by brackets [] replaced by your own identifying information:
   12.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   12.17 - * 
   12.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   12.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   12.20 - * Microsystems, Inc. All Rights Reserved.
   12.21 - */
   12.22 -
   12.23 -/*
   12.24 - * MQBODY.java
   12.25 - *
   12.26 - * Created on December 14, 2006, 2:32 PM
   12.27 - *
   12.28 - * To change this template, choose Tools | Template Manager
   12.29 - * and open the template in the editor.
   12.30 - */
   12.31 -
   12.32 -package org.netbeans.modules.wsdlextensions.mq;
   12.33 -
   12.34 -/**
   12.35 - *
   12.36 - * @author rchen
   12.37 - */
   12.38 -public interface MQBody extends MQComponent {
   12.39 -    public static final String ATTR_MESSAGE_TYPE = "MessageType";
   12.40 -    public static final String TEXT_MESSAGE = "TextMessage";
   12.41 -    public static final String BYTE_MESSAGE = "ByteMessage";
   12.42 -    
   12.43 -    public static final String ATTR_MESSAGEBODY = "MessageBody";
   12.44 -    
   12.45 -    public static final String ATTR_ENCODING_STYLE = "encodingStyle";
   12.46 -    
   12.47 -    public static final String ATTR_USE = "use";
   12.48 -    public static final String ATTR_USE_TYPE_LITERAL = "literal";
   12.49 -    public static final String ATTR_USE_TYPE_ENCODED = "encoded";
   12.50 -    
   12.51 -    public String getMessageType();
   12.52 -    public void setMessageType(String val);
   12.53 -    
   12.54 -    public String getUse();
   12.55 -    public void setUse(String val);
   12.56 -    
   12.57 -     public String getMessageBodyPart();
   12.58 -    public void setMessageBodyPart(String val);
   12.59 -    
   12.60 -    
   12.61 -    
   12.62 -}
    13.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQComponent.java	Tue Jul 08 18:18:05 2008 +0530
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,41 +0,0 @@
    13.4 -/*
    13.5 - * The contents of this file are subject to the terms of the Common Development
    13.6 - * and Distribution License (the License). You may not use this file except in
    13.7 - * compliance with the License.
    13.8 - * 
    13.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   13.10 - * or http://www.netbeans.org/cddl.txt.
   13.11 - * 
   13.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   13.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   13.14 - * If applicable, add the following below the CDDL Header, with the fields
   13.15 - * enclosed by brackets [] replaced by your own identifying information:
   13.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   13.17 - * 
   13.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   13.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   13.20 - * Microsystems, Inc. All Rights Reserved.
   13.21 - */
   13.22 -package org.netbeans.modules.wsdlextensions.mq;
   13.23 -
   13.24 -import org.netbeans.modules.xml.wsdl.model.ExtensibilityElement;
   13.25 -
   13.26 -/**
   13.27 - *
   13.28 - * @author rchen
   13.29 - */
   13.30 -public interface MQComponent extends ExtensibilityElement {
   13.31 -    
   13.32 -     public interface Visitor {
   13.33 -        void visit(MQAddress target);
   13.34 -        void visit(MQBinding target);
   13.35 -        void visit(MQOperation target);
   13.36 -        //void visit(FTPTransfer target);
   13.37 -        void visit(MQBody target);
   13.38 -        //void visit(FTPMessageActivePassive target);
   13.39 -    }
   13.40 -    
   13.41 -    void accept(Visitor visitor);
   13.42 -     
   13.43 -    
   13.44 -}
    14.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQOperation.java	Tue Jul 08 18:18:05 2008 +0530
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,50 +0,0 @@
    14.4 -/*
    14.5 - * The contents of this file are subject to the terms of the Common Development
    14.6 - * and Distribution License (the License). You may not use this file except in
    14.7 - * compliance with the License.
    14.8 - * 
    14.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   14.10 - * or http://www.netbeans.org/cddl.txt.
   14.11 - * 
   14.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   14.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   14.14 - * If applicable, add the following below the CDDL Header, with the fields
   14.15 - * enclosed by brackets [] replaced by your own identifying information:
   14.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   14.17 - * 
   14.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   14.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   14.20 - * Microsystems, Inc. All Rights Reserved.
   14.21 - */
   14.22 -
   14.23 -/*
   14.24 - * MQOperation.java
   14.25 - *
   14.26 - * Created on December 14, 2006, 11:22 AM
   14.27 - *
   14.28 - * To change this template, choose Tools | Template Manager
   14.29 - * and open the template in the editor.
   14.30 - */
   14.31 -
   14.32 -package org.netbeans.modules.wsdlextensions.mq;
   14.33 -
   14.34 -
   14.35 -
   14.36 -/**
   14.37 - *
   14.38 - * @author rchen
   14.39 - */
   14.40 -public interface MQOperation extends MQComponent {
   14.41 -    public static final String IN_ONLY = "http://www.w3.org/2004/08/wsdl/in-only";
   14.42 -    
   14.43 -    // common
   14.44 -    public static final String ATTR_QUEUENAME = "queueName";
   14.45 -    public static final String ATTR_TRANSACTION = "transaction";
   14.46 -    
   14.47 -    public String getQueueName();
   14.48 -    public void setQueueName(String val);
   14.49 -    
   14.50 -    public String getTransaction();
   14.51 -    public void setTransaction(String val);
   14.52 -    
   14.53 -}
    15.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/MQQName.java	Tue Jul 08 18:18:05 2008 +0530
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,68 +0,0 @@
    15.4 -/*
    15.5 - * The contents of this file are subject to the terms of the Common Development
    15.6 - * and Distribution License (the License). You may not use this file except in
    15.7 - * compliance with the License.
    15.8 - * 
    15.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   15.10 - * or http://www.netbeans.org/cddl.txt.
   15.11 - * 
   15.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   15.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   15.14 - * If applicable, add the following below the CDDL Header, with the fields
   15.15 - * enclosed by brackets [] replaced by your own identifying information:
   15.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   15.17 - * 
   15.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   15.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   15.20 - * Microsystems, Inc. All Rights Reserved.
   15.21 - */
   15.22 -
   15.23 -package org.netbeans.modules.wsdlextensions.mq;
   15.24 -
   15.25 -import java.util.HashSet;
   15.26 -import java.util.Set;
   15.27 -import javax.xml.namespace.QName;
   15.28 -
   15.29 -/**
   15.30 - *
   15.31 - * @author rchen
   15.32 - */
   15.33 -public enum MQQName {
   15.34 -    ADDRESS(createMQQName("address")),
   15.35 -    BINDING(createMQQName("binding")),
   15.36 -    OPERATION(createMQQName("operation")),
   15.37 -    BODY(createMQQName("body")),
   15.38 -    HEADER(createMQQName("header"));
   15.39 -    
   15.40 -   
   15.41 -    
   15.42 -    public static final String MQ_NS_URI = "http://schemas.sun.com/jbi/wsdl-extensions/mq/";
   15.43 -    public static final String MQ_NS_PREFIX = "mq";
   15.44 -    
   15.45 -     public static QName createMQQName(String localName){
   15.46 -        return new QName(MQ_NS_URI, localName, MQ_NS_PREFIX);
   15.47 -    }
   15.48 -    
   15.49 -    
   15.50 -    /** Creates a new instance of MQQName */
   15.51 -   MQQName(QName name) {
   15.52 -        qName = name;
   15.53 -    }
   15.54 -    
   15.55 -    public QName getQName(){
   15.56 -        return qName;
   15.57 -    }
   15.58 -    
   15.59 -    private static Set<QName> qnames = null;
   15.60 -    public static Set<QName> getQNames() {
   15.61 -        if (qnames == null) {
   15.62 -            qnames = new HashSet<QName>();
   15.63 -            for (MQQName wq : values()) {
   15.64 -                qnames.add(wq.getQName());
   15.65 -            }
   15.66 -        }
   15.67 -        return qnames;
   15.68 -    }
   15.69 -    
   15.70 -     private final QName qName;
   15.71 -}
    16.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQAddressImpl.java	Tue Jul 08 18:18:05 2008 +0530
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,74 +0,0 @@
    16.4 -/*
    16.5 - * The contents of this file are subject to the terms of the Common Development
    16.6 - * and Distribution License (the License). You may not use this file except in
    16.7 - * compliance with the License.
    16.8 - * 
    16.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   16.10 - * or http://www.netbeans.org/cddl.txt.
   16.11 - * 
   16.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   16.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   16.14 - * If applicable, add the following below the CDDL Header, with the fields
   16.15 - * enclosed by brackets [] replaced by your own identifying information:
   16.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   16.17 - * 
   16.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   16.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   16.20 - * Microsystems, Inc. All Rights Reserved.
   16.21 - */
   16.22 -
   16.23 -/*
   16.24 - * MQAddressImpl.java
   16.25 - *
   16.26 - * Created on December 14, 2006, 12:27 PM
   16.27 - *
   16.28 - * To change this template, choose Tools | Template Manager
   16.29 - * and open the template in the editor.
   16.30 - */
   16.31 -
   16.32 -package org.netbeans.modules.wsdlextensions.mq.impl;
   16.33 -
   16.34 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
   16.35 -import org.netbeans.modules.wsdlextensions.mq.MQAddress;
   16.36 -import org.netbeans.modules.wsdlextensions.mq.MQComponent;
   16.37 -import org.netbeans.modules.wsdlextensions.mq.MQQName;
   16.38 -import org.w3c.dom.Element;
   16.39 -
   16.40 -
   16.41 -/**
   16.42 - *
   16.43 - * @author rchen
   16.44 - */
   16.45 -public class MQAddressImpl extends MQComponentImpl implements MQAddress {
   16.46 -    
   16.47 -    /** Creates a new instance of MQAddressImpl */
   16.48 -    public MQAddressImpl(WSDLModel model, Element e) {
   16.49 -        super(model, e);
   16.50 -    }
   16.51 -    
   16.52 -    public MQAddressImpl(WSDLModel model){
   16.53 -        this(model, createPrefixedElement(MQQName.ADDRESS.getQName(), model));
   16.54 -    }
   16.55 -    
   16.56 -    public void accept(MQComponent.Visitor visitor) {
   16.57 -        visitor.visit(this);
   16.58 -    }
   16.59 -    
   16.60 -    public String getQueueManagerName() {
   16.61 -        return getAttribute(MQAttribute.MQ_ADDRESS_QUEUEMANAGERNAME);
   16.62 -    }
   16.63 -    public void setQueueManagerName(String val) {
   16.64 -        setAttribute(MQAddress.ATTR_QUEUEMANAGERNAME,
   16.65 -                MQAttribute.MQ_ADDRESS_QUEUEMANAGERNAME,
   16.66 -                val);
   16.67 -    }
   16.68 -    
   16.69 -    public String getHostName() {
   16.70 -        return getAttribute(MQAttribute.MQ_ADDRESS_HOSTNAME);
   16.71 -    }
   16.72 -    public void setHostName(String val) {
   16.73 -        setAttribute(MQAddress.ATTR_HOSTNAME,
   16.74 -                MQAttribute.MQ_ADDRESS_HOSTNAME,
   16.75 -                val);
   16.76 -    }
   16.77 -}
    17.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQAttribute.java	Tue Jul 08 18:18:05 2008 +0530
    17.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.3 @@ -1,83 +0,0 @@
    17.4 -/*
    17.5 - * The contents of this file are subject to the terms of the Common Development
    17.6 - * and Distribution License (the License). You may not use this file except in
    17.7 - * compliance with the License.
    17.8 - * 
    17.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   17.10 - * or http://www.netbeans.org/cddl.txt.
   17.11 - * 
   17.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   17.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   17.14 - * If applicable, add the following below the CDDL Header, with the fields
   17.15 - * enclosed by brackets [] replaced by your own identifying information:
   17.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   17.17 - * 
   17.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   17.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   17.20 - * Microsystems, Inc. All Rights Reserved.
   17.21 - */
   17.22 -
   17.23 -/*
   17.24 - * MQAttribute.java
   17.25 - *
   17.26 - * Created on December 14, 2006, 3:01 PM
   17.27 - *
   17.28 - * To change this template, choose Tools | Template Manager
   17.29 - * and open the template in the editor.
   17.30 - */
   17.31 -
   17.32 -package org.netbeans.modules.wsdlextensions.mq.impl;
   17.33 -
   17.34 -import java.util.Collection;
   17.35 -import org.netbeans.modules.xml.xam.dom.Attribute;
   17.36 -
   17.37 -import org.netbeans.modules.wsdlextensions.mq.MQAddress;
   17.38 -import org.netbeans.modules.wsdlextensions.mq.MQBody;
   17.39 -import org.netbeans.modules.wsdlextensions.mq.MQOperation;
   17.40 -
   17.41 -
   17.42 -
   17.43 -/**
   17.44 - *
   17.45 - * @author rchen
   17.46 - */
   17.47 -public enum MQAttribute implements Attribute {
   17.48 -    
   17.49 -    MQ_OPERATION_QUEUENAME(MQOperation.ATTR_QUEUENAME),
   17.50 -    MQ_OPERATION_TRANSACTION(MQOperation.ATTR_TRANSACTION),
   17.51 -    MQ_MESSAGE_MESSAGE_TYPE(MQBody.ATTR_MESSAGE_TYPE),
   17.52 -    MQ_MESSAGE_USE(MQBody.ATTR_USE),
   17.53 -    MQ_MESSAGEBODY_PART(MQBody.ATTR_MESSAGEBODY),
   17.54 -    MQ_ADDRESS_QUEUEMANAGERNAME(MQAddress.ATTR_QUEUEMANAGERNAME),
   17.55 -    MQ_ADDRESS_HOSTNAME(MQAddress.ATTR_HOSTNAME);
   17.56 -    
   17.57 -    private String name;
   17.58 -    
   17.59 -    private Class type;
   17.60 -    private Class subtype;
   17.61 -    
   17.62 -    
   17.63 -    MQAttribute(String name) {
   17.64 -        this(name, String.class);
   17.65 -    }
   17.66 -    
   17.67 -    MQAttribute(String name, Class type) {
   17.68 -        this(name, type, null);
   17.69 -    }
   17.70 -    
   17.71 -    MQAttribute(String name, Class type, Class subtype) {
   17.72 -        this.name = name;
   17.73 -        this.type = type;
   17.74 -        this.subtype = subtype;
   17.75 -    }
   17.76 -    
   17.77 -    public String toString() { return name; }
   17.78 -    
   17.79 -    public Class getType() {
   17.80 -        return type;
   17.81 -    }
   17.82 -    
   17.83 -    public String getName() { return name; }
   17.84 -    
   17.85 -    public Class getMemberType() { return subtype; }
   17.86 -}
    18.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQBindingImpl.java	Tue Jul 08 18:18:05 2008 +0530
    18.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.3 @@ -1,48 +0,0 @@
    18.4 -/*
    18.5 - * The contents of this file are subject to the terms of the Common Development
    18.6 - * and Distribution License (the License). You may not use this file except in
    18.7 - * compliance with the License.
    18.8 - * 
    18.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   18.10 - * or http://www.netbeans.org/cddl.txt.
   18.11 - * 
   18.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   18.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   18.14 - * If applicable, add the following below the CDDL Header, with the fields
   18.15 - * enclosed by brackets [] replaced by your own identifying information:
   18.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   18.17 - * 
   18.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   18.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   18.20 - * Microsystems, Inc. All Rights Reserved.
   18.21 - */
   18.22 -
   18.23 -package org.netbeans.modules.wsdlextensions.mq.impl;
   18.24 -
   18.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
   18.26 -import org.netbeans.modules.wsdlextensions.mq.MQBinding;
   18.27 -import org.netbeans.modules.wsdlextensions.mq.MQComponent;
   18.28 -import org.netbeans.modules.wsdlextensions.mq.MQQName;
   18.29 -import org.w3c.dom.Element;
   18.30 -
   18.31 -
   18.32 -/**
   18.33 - *
   18.34 - * @author rchen
   18.35 - */
   18.36 -public class MQBindingImpl extends MQComponentImpl implements MQBinding {
   18.37 -    
   18.38 -    /** Creates a new instance of MQBindingImpl */
   18.39 -    public MQBindingImpl(WSDLModel model, Element e) {
   18.40 -        super(model, e);
   18.41 -    }
   18.42 -    
   18.43 -      public MQBindingImpl(WSDLModel model){
   18.44 -        this(model, createPrefixedElement(MQQName.BINDING.getQName(), model));
   18.45 -    }
   18.46 -      
   18.47 -       public void accept(MQComponent.Visitor visitor) {
   18.48 -        visitor.visit(this);
   18.49 -    }
   18.50 -    
   18.51 -}
    19.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQBodyImpl.java	Tue Jul 08 18:18:05 2008 +0530
    19.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.3 @@ -1,91 +0,0 @@
    19.4 -/*
    19.5 - * The contents of this file are subject to the terms of the Common Development
    19.6 - * and Distribution License (the License). You may not use this file except in
    19.7 - * compliance with the License.
    19.8 - * 
    19.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   19.10 - * or http://www.netbeans.org/cddl.txt.
   19.11 - * 
   19.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   19.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   19.14 - * If applicable, add the following below the CDDL Header, with the fields
   19.15 - * enclosed by brackets [] replaced by your own identifying information:
   19.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   19.17 - * 
   19.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   19.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   19.20 - * Microsystems, Inc. All Rights Reserved.
   19.21 - */
   19.22 -
   19.23 -/*
   19.24 - * MQBodyImpl.java
   19.25 - *
   19.26 - * Created on December 14, 2006, 2:34 PM
   19.27 - *
   19.28 - * To change this template, choose Tools | Template Manager
   19.29 - * and open the template in the editor.
   19.30 - */
   19.31 -
   19.32 -package org.netbeans.modules.wsdlextensions.mq.impl;
   19.33 -
   19.34 -import java.util.Collection;
   19.35 -import org.netbeans.modules.xml.wsdl.model.Binding;
   19.36 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
   19.37 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
   19.38 -import org.netbeans.modules.wsdlextensions.mq.MQBinding;
   19.39 -import org.netbeans.modules.wsdlextensions.mq.MQBody;
   19.40 -import org.netbeans.modules.wsdlextensions.mq.MQOperation;
   19.41 -import org.netbeans.modules.wsdlextensions.mq.MQComponent;
   19.42 -import org.netbeans.modules.wsdlextensions.mq.MQQName;
   19.43 -import org.w3c.dom.Element;
   19.44 -
   19.45 -
   19.46 -/**
   19.47 - *
   19.48 - * @author rchen
   19.49 - */
   19.50 -public class MQBodyImpl extends MQComponentImpl implements MQBody {
   19.51 -    
   19.52 -    /** Creates a new instance of MQBodyImpl */
   19.53 -     public MQBodyImpl(WSDLModel model, Element e) {
   19.54 -        super(model, e);
   19.55 -    }
   19.56 -    
   19.57 -     public MQBodyImpl(WSDLModel model){
   19.58 -        this(model, createPrefixedElement(MQQName.BODY.getQName(), model));
   19.59 -    }
   19.60 -    
   19.61 -    public void accept(MQComponent.Visitor visitor) {
   19.62 -        visitor.visit(this);
   19.63 -    }
   19.64 -    
   19.65 -     public String getMessageType() {
   19.66 -        return getAttribute(MQAttribute.MQ_MESSAGE_MESSAGE_TYPE);        
   19.67 -    }
   19.68 -    
   19.69 -    public void setMessageType(String val) {
   19.70 -        setAttribute(MQBody.ATTR_MESSAGE_TYPE, 
   19.71 -                     MQAttribute.MQ_MESSAGE_MESSAGE_TYPE,
   19.72 -                     val);        
   19.73 -    }
   19.74 -    
   19.75 -     public String getUse() {
   19.76 -          return getAttribute(MQAttribute.MQ_MESSAGE_USE);      
   19.77 -     }
   19.78 -     
   19.79 -    public void setUse(String val) {
   19.80 -         setAttribute(MQBody.ATTR_USE, 
   19.81 -                     MQAttribute.MQ_MESSAGE_USE,
   19.82 -                     val);    
   19.83 -    }
   19.84 -    
   19.85 -      public String getMessageBodyPart()
   19.86 -      {
   19.87 -           return getAttribute(MQAttribute.MQ_MESSAGEBODY_PART);    
   19.88 -      }
   19.89 -    public void setMessageBodyPart(String val){
   19.90 -         setAttribute(MQBody.ATTR_MESSAGEBODY, 
   19.91 -                     MQAttribute.MQ_MESSAGEBODY_PART,
   19.92 -                     val);   
   19.93 -    }
   19.94 -}
    20.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQComponentImpl.java	Tue Jul 08 18:18:05 2008 +0530
    20.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.3 @@ -1,45 +0,0 @@
    20.4 -/*
    20.5 - * The contents of this file are subject to the terms of the Common Development
    20.6 - * and Distribution License (the License). You may not use this file except in
    20.7 - * compliance with the License.
    20.8 - * 
    20.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   20.10 - * or http://www.netbeans.org/cddl.txt.
   20.11 - * 
   20.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   20.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   20.14 - * If applicable, add the following below the CDDL Header, with the fields
   20.15 - * enclosed by brackets [] replaced by your own identifying information:
   20.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   20.17 - * 
   20.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   20.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   20.20 - * Microsystems, Inc. All Rights Reserved.
   20.21 - */
   20.22 -
   20.23 -package org.netbeans.modules.wsdlextensions.mq.impl;
   20.24 -
   20.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
   20.26 -import org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement;
   20.27 -import org.w3c.dom.Element;
   20.28 -
   20.29 -import org.netbeans.modules.wsdlextensions.mq.MQComponent;
   20.30 -import org.netbeans.modules.wsdlextensions.mq.MQQName;
   20.31 -
   20.32 -
   20.33 -
   20.34 -/**
   20.35 - *
   20.36 - * @author rchen
   20.37 - */
   20.38 -public abstract class MQComponentImpl extends GenericExtensibilityElement implements MQComponent {
   20.39 -    
   20.40 -    /** Creates a new instance of MQComponentImpl */
   20.41 -    public MQComponentImpl(WSDLModel model, Element e) {
   20.42 -         super(model, e);
   20.43 -    }
   20.44 -    
   20.45 -     protected String getNamespaceURI() {
   20.46 -        return MQQName.MQ_NS_URI;
   20.47 -    }
   20.48 -}
    21.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQElementFactoryProvider.java	Tue Jul 08 18:18:05 2008 +0530
    21.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.3 @@ -1,74 +0,0 @@
    21.4 -/*
    21.5 - * The contents of this file are subject to the terms of the Common Development
    21.6 - * and Distribution License (the License). You may not use this file except in
    21.7 - * compliance with the License.
    21.8 - * 
    21.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   21.10 - * or http://www.netbeans.org/cddl.txt.
   21.11 - * 
   21.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   21.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   21.14 - * If applicable, add the following below the CDDL Header, with the fields
   21.15 - * enclosed by brackets [] replaced by your own identifying information:
   21.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   21.17 - * 
   21.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   21.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   21.20 - * Microsystems, Inc. All Rights Reserved.
   21.21 - */
   21.22 -
   21.23 -package org.netbeans.modules.wsdlextensions.mq.impl;
   21.24 -
   21.25 -import java.util.ArrayList;
   21.26 -import java.util.Collection;
   21.27 -import java.util.Collections;
   21.28 -import java.util.Set;
   21.29 -import javax.xml.namespace.QName;
   21.30 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
   21.31 -import org.netbeans.modules.wsdlextensions.mq.MQQName;
   21.32 -import org.netbeans.modules.xml.wsdl.model.spi.ElementFactory;
   21.33 -import org.w3c.dom.Element;
   21.34 -
   21.35 -/**
   21.36 - * JMSElementFactoryProvider 
   21.37 - */
   21.38 -public class MQElementFactoryProvider {
   21.39 -    
   21.40 -    public static class BindingFactory extends ElementFactory {
   21.41 -        public Set<QName> getElementQNames() {
   21.42 -            return Collections.singleton(MQQName.BINDING.getQName());
   21.43 -        }
   21.44 -        public WSDLComponent create(WSDLComponent context, Element element) {
   21.45 -            return new MQBindingImpl(context.getModel(), element);
   21.46 -        }
   21.47 -    }
   21.48 -
   21.49 -     public static class OperationFactory extends ElementFactory{
   21.50 -        public Set<QName> getElementQNames() {
   21.51 -            return Collections.singleton(MQQName.OPERATION.getQName());
   21.52 -        }
   21.53 -        public WSDLComponent create(WSDLComponent context, Element element) {
   21.54 -            return new MQOperationImpl(context.getModel(), element);
   21.55 -        }
   21.56 -    }
   21.57 -     
   21.58 -      public static class AddressFactory extends ElementFactory{
   21.59 -        public Set<QName> getElementQNames() {
   21.60 -            return Collections.singleton(MQQName.ADDRESS.getQName());
   21.61 -        }
   21.62 -        public WSDLComponent create(WSDLComponent context, Element element) {
   21.63 -            return new MQAddressImpl(context.getModel(), element);
   21.64 -        }
   21.65 -    }
   21.66 -      
   21.67 -       public static class BodyFactory extends ElementFactory{
   21.68 -        public Set<QName> getElementQNames() {
   21.69 -            return Collections.singleton(MQQName.BODY.getQName());
   21.70 -        }
   21.71 -        public WSDLComponent create(WSDLComponent context, Element element) {
   21.72 -            return new MQBodyImpl(context.getModel(), element);
   21.73 -        }
   21.74 -    }
   21.75 -   
   21.76 -    
   21.77 -}
    22.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/impl/MQOperationImpl.java	Tue Jul 08 18:18:05 2008 +0530
    22.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.3 @@ -1,77 +0,0 @@
    22.4 -/*
    22.5 - * The contents of this file are subject to the terms of the Common Development
    22.6 - * and Distribution License (the License). You may not use this file except in
    22.7 - * compliance with the License.
    22.8 - * 
    22.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   22.10 - * or http://www.netbeans.org/cddl.txt.
   22.11 - * 
   22.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   22.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   22.14 - * If applicable, add the following below the CDDL Header, with the fields
   22.15 - * enclosed by brackets [] replaced by your own identifying information:
   22.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   22.17 - * 
   22.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   22.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   22.20 - * Microsystems, Inc. All Rights Reserved.
   22.21 - */
   22.22 -
   22.23 -/*
   22.24 - * MQOperationImpl.java
   22.25 - *
   22.26 - * Created on December 14, 2006, 11:23 AM
   22.27 - *
   22.28 - * To change this template, choose Tools | Template Manager
   22.29 - * and open the template in the editor.
   22.30 - */
   22.31 -
   22.32 -package org.netbeans.modules.wsdlextensions.mq.impl;
   22.33 -
   22.34 -import java.util.Collection;
   22.35 -import org.netbeans.modules.xml.wsdl.model.Binding;
   22.36 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
   22.37 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
   22.38 -import org.netbeans.modules.wsdlextensions.mq.MQBinding;
   22.39 -import org.netbeans.modules.wsdlextensions.mq.MQOperation;
   22.40 -import org.netbeans.modules.wsdlextensions.mq.MQComponent;
   22.41 -import org.netbeans.modules.wsdlextensions.mq.MQQName;
   22.42 -import org.w3c.dom.Element;
   22.43 -
   22.44 -/**
   22.45 - *
   22.46 - * @author rulong.chen@sun.com
   22.47 - */
   22.48 -public class MQOperationImpl extends MQComponentImpl implements MQOperation {
   22.49 -    
   22.50 -    /** Creates a new instance of MQOperationImpl */
   22.51 -    public MQOperationImpl(WSDLModel model, Element e) {
   22.52 -        super(model, e);
   22.53 -    }
   22.54 -    public MQOperationImpl(WSDLModel model){
   22.55 -        this(model, createPrefixedElement(MQQName.OPERATION.getQName(), model));
   22.56 -    }
   22.57 -    
   22.58 -    public void accept(MQComponent.Visitor visitor) {
   22.59 -        visitor.visit(this);
   22.60 -    }
   22.61 -    
   22.62 -    public String getQueueName() {
   22.63 -        return getAttribute(MQAttribute.MQ_OPERATION_QUEUENAME);
   22.64 -    }
   22.65 -    public void setQueueName(String val) {
   22.66 -        setAttribute(MQOperation.ATTR_QUEUENAME,
   22.67 -                MQAttribute.MQ_OPERATION_QUEUENAME,
   22.68 -                val);
   22.69 -    }
   22.70 -    
   22.71 -    public String getTransaction() {
   22.72 -        return getAttribute(MQAttribute.MQ_OPERATION_TRANSACTION);
   22.73 -    }
   22.74 -    
   22.75 -    public void setTransaction(String val) {
   22.76 -        setAttribute(MQOperation.ATTR_TRANSACTION,
   22.77 -                MQAttribute.MQ_OPERATION_TRANSACTION,
   22.78 -                val);
   22.79 -    }
   22.80 -}
    23.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/Bundle.properties	Tue Jul 08 18:18:05 2008 +0530
    23.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.3 @@ -1,52 +0,0 @@
    23.4 -
    23.5 -#
    23.6 -# The contents of this file are subject to the terms of the Common Development
    23.7 -# and Distribution License (the License). You may not use this file except in
    23.8 -# compliance with the License.
    23.9 -# 
   23.10 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   23.11 -# or http://www.netbeans.org/cddl.txt.
   23.12 -# 
   23.13 -# When distributing Covered Code, include this CDDL Header Notice in each file
   23.14 -# and include the License file at http://www.netbeans.org/cddl.txt.
   23.15 -# If applicable, add the following below the CDDL Header, with the fields
   23.16 -# enclosed by brackets [] replaced by your own identifying information:
   23.17 -# "Portions Copyrighted [year] [name of copyright owner]"
   23.18 -# 
   23.19 -# The Original Software is NetBeans. The Initial Developer of the Original
   23.20 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   23.21 -# Microsystems, Inc. All Rights Reserved.
   23.22 -#
   23.23 -
   23.24 -OpenIDE-Module-Name=MQ WSDL Extension
   23.25 -OpenIDE-Module-Short-Description=MQ Extension for WSDL Editor
   23.26 -OpenIDE-Module-Long-Description=\
   23.27 -    Websphere MQ WSDL editor extension
   23.28 -OpenIDE-Module-Display-Category=CAPS
   23.29 -WSDLEditor/Binding/MQBinding= MQ Binding
   23.30 -WSDLEditor/BindingOperation/MQBindingOperation= MQ Operation
   23.31 -WSDLEditor/BindingOperationInput/MQBindingOperationInput= MQ Operation Input
   23.32 -WSDLEditor/BindingOperationOutput/MQBindingOperationOutput= MQ Operation Output
   23.33 -WSDLEditor/ServicePort/MQServicePort= MQ Queue Manager Address
   23.34 -DESC_Element_binding="binding" indicates a websphere mq  protocol based binding.
   23.35 -DESC_Element_operation="operation" indicates a mq protocol based operation.
   23.36 -DESC_ComplexType_tOperation="operation" defines the websphere mq protocol based operation binding details..
   23.37 -DESC_Attribute_queueName=The name of the queue manager to which to put message
   23.38 -DESC_Attribute_queueOpenOptions=Queue Open Options
   23.39 -DESC_Attribute_transaction=Tranction type
   23.40 -DESC_Attribute_pollingInterval=Defines the polling interval that MQ Binding Component searches for queue message in the specified queue.  The polling interval is specified in milliseconds and has a default value of 1000ms. This attribute has no effect for mqput.
   23.41 -DESC_Element_input="input" indicates a put protocol based operation input.
   23.42 -DESC_Element_body="Message body" indicates a input part.
   23.43 -DESC_Attribute_MessageBody=documentation needed
   23.44 -DESC_Attribute_MessageType=documentation needed
   23.45 -DESC_Attribute_SyncPoint=documentation needed
   23.46 -DESC_Element_header="messageheader" indicates a output part.
   23.47 -DESC_Attribute_parts=The name of the message header
   23.48 -DESC_Element_address="address" indicates a mq protocol based service address.
   23.49 -DESC_Attribute_hostName=The name of the machine where the q manager resides..
   23.50 -DESC_Attribute_portNumber=The listening port number on which the queue manager is bound
   23.51 -DESC_Attribute_queueManagerName=The name of the queue manager to which this bc will connect
   23.52 -DESC_Attribute_channelName=The name of the channel used
   23.53 -DESC_Attribute_codedCharacterSetID=Coded Character Set ID
   23.54 -DESC_Attribute_userID=User ID.
   23.55 -DESC_Attribute_password=The password to use to connect to the mq.
    24.1 Binary file wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/End_16.png has changed
    25.1 Binary file wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/Start_16.png has changed
    26.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/layer.xml	Tue Jul 08 18:18:05 2008 +0530
    26.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.3 @@ -1,85 +0,0 @@
    26.4 -<?xml version="1.0" encoding="UTF-8"?>
    26.5 -
    26.6 -<!--
    26.7 - The contents of this file are subject to the terms of the Common Development
    26.8 - and Distribution License (the License). You may not use this file except in
    26.9 - compliance with the License.
   26.10 - 
   26.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   26.12 - or http://www.netbeans.org/cddl.txt.
   26.13 - 
   26.14 - When distributing Covered Code, include this CDDL Header Notice in each file
   26.15 - and include the License file at http://www.netbeans.org/cddl.txt.
   26.16 - If applicable, add the following below the CDDL Header, with the fields
   26.17 - enclosed by brackets [] replaced by your own identifying information:
   26.18 - "Portions Copyrighted [year] [name of copyright owner]"
   26.19 - 
   26.20 - The Original Software is NetBeans. The Initial Developer of the Original
   26.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   26.22 - Microsystems, Inc. All Rights Reserved.
   26.23 --->
   26.24 -
   26.25 -<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
   26.26 -<filesystem>
   26.27 -    <folder name="WSDLEditor">
   26.28 -	    <file name="mq-ext.xsd" url="mq-ext.xsd">
   26.29 -            <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/mq/" />
   26.30 -            <attr name="prefix" stringvalue="mq" />
   26.31 -        </file>
   26.32 -        
   26.33 -        <folder name="Binding">
   26.34 -            <file name="MQBinding" >
   26.35 -                <attr name="xsdFileName" stringvalue="mq-ext" />
   26.36 -                <attr name="element" stringvalue="binding"/>
   26.37 -                <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.mq.resources.Bundle"/>
   26.38 -                <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/mq/resources/Start_16.png"/>
   26.39 -            </file>
   26.40 -        </folder>
   26.41 -        <folder name="BindingOperation">
   26.42 -            <file name="MQBindingOperation" >
   26.43 -                <attr name="xsdFileName" stringvalue="mq-ext" />
   26.44 -                <attr name="element" stringvalue="operation"/>
   26.45 -                <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.mq.resources.Bundle"/>
   26.46 -                <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/mq/resources/End_16.png"/>
   26.47 -            </file>
   26.48 -        </folder>
   26.49 -        <folder name="BindingOperationInput">
   26.50 -            <file name="MQBody">
   26.51 -		<attr name="xsdFileName" stringvalue="mq-ext" />
   26.52 -                <!-- attr name="element" stringvalue="input"/-->
   26.53 -                  <attr name="element" stringvalue="body"/>
   26.54 -                 
   26.55 -                <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.mq.resources.Bundle"/>
   26.56 -                <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/mq/resources/onmessage16x16.png"/>
   26.57 -            </file>
   26.58 -            <file name="MQHeader">
   26.59 -		<attr name="xsdFileName" stringvalue="mq-ext" />
   26.60 -                <!-- attr name="element" stringvalue="input"/-->           
   26.61 -                 <attr name="element" stringvalue="header"/>
   26.62 -                <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.mq.resources.Bundle"/>
   26.63 -                <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/mq/resources/onmessage16x16.png"/>
   26.64 -            </file>
   26.65 -        </folder>
   26.66 -
   26.67 -        <folder name="ServicePort">
   26.68 -            <file name="MQServicePort">
   26.69 -   				<attr name="xsdFileName" stringvalue="mq-ext" />
   26.70 -                <attr name="element" stringvalue="address"/>
   26.71 -                <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.mq.resources.Bundle"/>
   26.72 -                <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/mq/resources/mapping16.png"/>
   26.73 -            </file>
   26.74 -        </folder>
   26.75 -    </folder>
   26.76 -    <folder name="SeeBeyondJbiComponents">
   26.77 -        <!-- JBI Component must be same as jbi.xml in runtime definition -->
   26.78 -        <folder name="sun-webspheremq-binding">
   26.79 -            <attr name="id" stringvalue="sun-webspheremq-binding"/>
   26.80 -            <attr name="description" stringvalue="MQ Binding"/>
   26.81 -            <attr name="type" stringvalue="Binding"/>
   26.82 -            <file name="mq.binding-1.0">
   26.83 -                <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/mq/"/>
   26.84 -            </file>
   26.85 -        </folder>
   26.86 -    </folder>
   26.87 -</filesystem>
   26.88 -
    27.1 Binary file wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/mapping16.png has changed
    28.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/mq-ext.xsd	Tue Jul 08 18:18:05 2008 +0530
    28.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.3 @@ -1,236 +0,0 @@
    28.4 -<?xml version="1.0" encoding="UTF-8"?>
    28.5 -
    28.6 -<!--
    28.7 - The contents of this file are subject to the terms of the Common Development
    28.8 - and Distribution License (the License). You may not use this file except in
    28.9 - compliance with the License.
   28.10 - 
   28.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   28.12 - or http://www.netbeans.org/cddl.txt.
   28.13 - 
   28.14 - When distributing Covered Code, include this CDDL Header Notice in each file
   28.15 - and include the License file at http://www.netbeans.org/cddl.txt.
   28.16 - If applicable, add the following below the CDDL Header, with the fields
   28.17 - enclosed by brackets [] replaced by your own identifying information:
   28.18 - "Portions Copyrighted [year] [name of copyright owner]"
   28.19 - 
   28.20 - The Original Software is NetBeans. The Initial Developer of the Original
   28.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   28.22 - Microsystems, Inc. All Rights Reserved.
   28.23 --->
   28.24 -
   28.25 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
   28.26 -           xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
   28.27 -           xmlns:mq="http://schemas.sun.com/jbi/wsdl-extensions/mq/" 
   28.28 -           targetNamespace="http://schemas.sun.com/jbi/wsdl-extensions/mq/">
   28.29 -	<xs:import namespace="http://schemas.xmlsoap.org/wsdl/" schemaLocation="wsdl.xsd"/>
   28.30 -	<xs:element name="binding" type="mq:tBinding">
   28.31 -		<xs:annotation>
   28.32 -			<xs:documentation>DESC_Element_binding</xs:documentation>
   28.33 -		</xs:annotation>
   28.34 -	</xs:element>
   28.35 -	<xs:complexType name="tBinding">
   28.36 -		<xs:complexContent>
   28.37 -			<xs:extension base="wsdl:tExtensibilityElement"/>
   28.38 -			<!-- could add more attributes to the binding -->
   28.39 -		</xs:complexContent>
   28.40 -	</xs:complexType>
   28.41 -	<xs:element name="operation" type="mq:tOperation">
   28.42 -            <xs:annotation>
   28.43 -			<xs:documentation>DESC_Element_operation</xs:documentation>
   28.44 -		</xs:annotation>
   28.45 -	</xs:element>
   28.46 -	<xs:complexType name="tOperation">
   28.47 -		<xs:annotation>
   28.48 -			<xs:documentation>DESC_ComplexType_tOperation</xs:documentation>
   28.49 -		</xs:annotation>
   28.50 -		<xs:complexContent>
   28.51 -			<xs:extension base="wsdl:tExtensibilityElement">
   28.52 -                            
   28.53 -                                <xs:attribute name="queueName" type="xs:string" use="required">
   28.54 -					<xs:annotation>
   28.55 -						<xs:documentation>DESC_Attribute_queueName</xs:documentation>
   28.56 -					</xs:annotation>
   28.57 -				</xs:attribute>
   28.58 -                                
   28.59 -                                
   28.60 -                                <xs:attribute name="queueOpenOptions" type="xs:long" use="optional">
   28.61 -					<xs:annotation>
   28.62 -						<xs:documentation>DESC_Attribute_queueOpenOptions</xs:documentation>
   28.63 -					</xs:annotation>
   28.64 -				</xs:attribute>
   28.65 -                                <xs:attribute name="transaction" type="mq:TransactionTypes" use="optional" default="NoTransaction">
   28.66 -					<xs:annotation>
   28.67 -						<xs:documentation>DESC_Attribute_transaction</xs:documentation>
   28.68 -					</xs:annotation>
   28.69 -				</xs:attribute>
   28.70 -                                <xs:attribute name="pollingInterval" type="xs:long" use="optional">
   28.71 -				    <xs:annotation>
   28.72 -					<xs:documentation>DESC_Attribute_pollingInterval</xs:documentation>
   28.73 -				    </xs:annotation>
   28.74 -				</xs:attribute>
   28.75 -			</xs:extension>
   28.76 -		</xs:complexContent>
   28.77 -	</xs:complexType>
   28.78 -        
   28.79 -	<xs:element name="input" type="mq:tInput">
   28.80 -		<xs:annotation>
   28.81 -			<xs:documentation>DESC_Element_input</xs:documentation>
   28.82 -		</xs:annotation>
   28.83 -	</xs:element>
   28.84 -         
   28.85 -        <xs:complexType name="tHeaderPartTypes">
   28.86 -           <xs:complexContent>
   28.87 -		<xs:extension base="wsdl:tExtensibilityElement">
   28.88 -                    <xs:attribute name="parts" type="xs:string" use="required">
   28.89 -                        <xs:annotation>
   28.90 -                            <xs:documentation>DESC_Attribute_parts</xs:documentation>
   28.91 -			</xs:annotation>
   28.92 -                    </xs:attribute>	
   28.93 -               </xs:extension>
   28.94 -	   </xs:complexContent>
   28.95 -        </xs:complexType>
   28.96 -       
   28.97 -  
   28.98 -	<xs:complexType name="tInput">
   28.99 -		<xs:complexContent>
  28.100 -			<xs:extension base="wsdl:tExtensibilityElement">				
  28.101 -				<xs:sequence>
  28.102 -					<xs:element ref="mq:body" minOccurs="1" maxOccurs="1"/>
  28.103 -					<xs:element ref="mq:header" minOccurs="0" maxOccurs="1"/>
  28.104 -				</xs:sequence>
  28.105 -                                 
  28.106 -			</xs:extension>
  28.107 -		</xs:complexContent>
  28.108 -	</xs:complexType>
  28.109 -	 <xs:element name="body" type="mq:tMessage">
  28.110 -		<xs:annotation>
  28.111 -			<xs:documentation>DESC_Element_body</xs:documentation>
  28.112 -		</xs:annotation>
  28.113 -	</xs:element>
  28.114 -        <xs:complexType name="tMessage">
  28.115 -		<xs:complexContent>
  28.116 -			<xs:extension base="wsdl:tExtensibilityElement">
  28.117 -                                <xs:attribute name="MessageBody" type="xs:string" use="required">
  28.118 -					<xs:annotation>
  28.119 -						<xs:documentation>DESC_Attribute_MessageBody</xs:documentation>
  28.120 -					</xs:annotation>
  28.121 -				</xs:attribute>
  28.122 -                                <xs:attribute name="use" type="mq:useTypes" use="required"/>
  28.123 -                                <xs:attribute name="encodingStyle" type="xs:anyURI" use="optional"/>
  28.124 -				<xs:attribute name="MessageType" type="mq:messageTypes" use="required">
  28.125 -					<xs:annotation>
  28.126 -						<xs:documentation>DESC_Attribute_MessageType</xs:documentation>
  28.127 -					</xs:annotation>
  28.128 -				</xs:attribute>
  28.129 -                                <xs:attribute name="SyncPoint" type="xs:boolean" use="required">
  28.130 -					<xs:annotation>
  28.131 -						<xs:documentation>DESC_Attribute_SyncPoint</xs:documentation>
  28.132 -					</xs:annotation>
  28.133 -				</xs:attribute>
  28.134 -                                
  28.135 -			</xs:extension>
  28.136 -		</xs:complexContent>
  28.137 -	</xs:complexType>
  28.138 -        
  28.139 -        <xs:element name="header" type="mq:tMessageHeader">
  28.140 -		<xs:annotation>
  28.141 -			<xs:documentation>DESC_Element_header</xs:documentation>
  28.142 -		</xs:annotation>
  28.143 -	</xs:element>
  28.144 -        <xs:complexType name="tMessageHeader">
  28.145 -		<xs:complexContent>
  28.146 -			<xs:extension base="wsdl:tExtensibilityElement">
  28.147 -				<xs:sequence>
  28.148 -					<xs:element name="correlationId" type="mq:tHeaderPartTypes"/>
  28.149 -                                         <xs:element name="messageId" type="mq:tHeaderPartTypes"/>
  28.150 -				</xs:sequence>		
  28.151 -			</xs:extension>
  28.152 -		</xs:complexContent>
  28.153 -	</xs:complexType>
  28.154 -        
  28.155 -        <xs:simpleType name="javaPrimitiveTypes">
  28.156 -		<xs:restriction base="xs:string">
  28.157 -			<xs:enumeration value="boolean"/>
  28.158 -			<xs:enumeration value="char"/>
  28.159 -			<xs:enumeration value="double"/>
  28.160 -			<xs:enumeration value="float"/>
  28.161 -			<xs:enumeration value="int"/>
  28.162 -			<xs:enumeration value="long"/>
  28.163 -			<xs:enumeration value="short"/>
  28.164 -			<xs:enumeration value="string"/>
  28.165 -		</xs:restriction>
  28.166 -	</xs:simpleType>
  28.167 -        
  28.168 -	
  28.169 -        <xs:element name="address" type="mq:tAddress">
  28.170 -		<xs:annotation>
  28.171 -			<xs:documentation>DESC_Element_address</xs:documentation>
  28.172 -		</xs:annotation>
  28.173 -	</xs:element>
  28.174 -        <xs:complexType name="tAddress">
  28.175 -		<xs:complexContent>
  28.176 -			<xs:extension base="wsdl:tExtensibilityElement">
  28.177 -				<xs:attribute name="hostName" type="xs:string" use="optional">
  28.178 -					<xs:annotation>
  28.179 -						<xs:documentation>DESC_Attribute_hostName</xs:documentation>
  28.180 -					</xs:annotation>
  28.181 -				</xs:attribute>
  28.182 -                                <xs:attribute name="portNumber" type="xs:int" use="required">
  28.183 -					<xs:annotation>
  28.184 -						<xs:documentation>DESC_Attribute_portNumber</xs:documentation>
  28.185 -					</xs:annotation>
  28.186 -				</xs:attribute>
  28.187 -                                <xs:attribute name="queueManagerName" type="xs:string" use="required">
  28.188 -					<xs:annotation>
  28.189 -						<xs:documentation>DESC_Attribute_queueManagerName</xs:documentation>
  28.190 -					</xs:annotation>
  28.191 -				</xs:attribute>
  28.192 -                                <xs:attribute name="channelName" type="xs:string" use="required">
  28.193 -					<xs:annotation>
  28.194 -						<xs:documentation>DESC_Attribute_channelName</xs:documentation>
  28.195 -					</xs:annotation>
  28.196 -				</xs:attribute>
  28.197 -                                <xs:attribute name="codedCharacterSetID" type="xs:string" use="optional">
  28.198 -					<xs:annotation>
  28.199 -						<xs:documentation>DESC_Attribute_codedCharacterSetID</xs:documentation>
  28.200 -					</xs:annotation>
  28.201 -				</xs:attribute>
  28.202 -                                <xs:attribute name="userID" type="xs:string" use="optional">
  28.203 -					<xs:annotation>
  28.204 -						<xs:documentation>DESC_Attribute_userID</xs:documentation>
  28.205 -					</xs:annotation>
  28.206 -				</xs:attribute>
  28.207 -                                <xs:attribute name="password" type="xs:string" use="optional">
  28.208 -					<xs:annotation>
  28.209 -						<xs:documentation>DESC_Attribute_password</xs:documentation>
  28.210 -					</xs:annotation>				</xs:attribute>				
  28.211 -			</xs:extension>
  28.212 -		</xs:complexContent>
  28.213 -	</xs:complexType>
  28.214 -        <xs:simpleType name="MQOperationTypes">
  28.215 -		<xs:restriction base="xs:string">
  28.216 -			<xs:enumeration value="mqput"/>
  28.217 -			<xs:enumeration value="mqrecv"/>
  28.218 -		</xs:restriction>
  28.219 -	</xs:simpleType>
  28.220 -        <xs:simpleType name="TransactionTypes">
  28.221 -		<xs:restriction base="xs:string">
  28.222 -			<xs:enumeration value="NoTransaction"/>
  28.223 -			<xs:enumeration value="XATransaction"/>
  28.224 -		</xs:restriction>
  28.225 -	</xs:simpleType>	
  28.226 -	<xs:simpleType name="messageTypes">
  28.227 -		<xs:restriction base="xs:string">
  28.228 -			<xs:enumeration value="TextMessage"/>
  28.229 -			<xs:enumeration value="ByteMessage"/>
  28.230 -		</xs:restriction>
  28.231 -	</xs:simpleType>
  28.232 -        <xs:simpleType name="useTypes">
  28.233 -		<xs:restriction base="xs:string">
  28.234 -			<xs:enumeration value="literal"/>
  28.235 -			<xs:enumeration value="encoded"/>
  28.236 -		</xs:restriction>
  28.237 -	</xs:simpleType>
  28.238 -	
  28.239 -</xs:schema>
    29.1 Binary file wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/onalarm16x16.png has changed
    30.1 Binary file wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/onmessage16x16.png has changed
    31.1 Binary file wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/scope16x16.png has changed
    32.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/resources/wsdl.xsd	Tue Jul 08 18:18:05 2008 +0530
    32.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.3 @@ -1,330 +0,0 @@
    32.4 -<?xml version="1.0" encoding="UTF-8" ?> 
    32.5 -
    32.6 -<!--
    32.7 - The contents of this file are subject to the terms of the Common Development
    32.8 - and Distribution License (the License). You may not use this file except in
    32.9 - compliance with the License.
   32.10 - 
   32.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   32.12 - or http://www.netbeans.org/cddl.txt.
   32.13 - 
   32.14 - When distributing Covered Code, include this CDDL Header Notice in each file
   32.15 - and include the License file at http://www.netbeans.org/cddl.txt.
   32.16 - If applicable, add the following below the CDDL Header, with the fields
   32.17 - enclosed by brackets [] replaced by your own identifying information:
   32.18 - "Portions Copyrighted [year] [name of copyright owner]"
   32.19 - 
   32.20 - The Original Software is NetBeans. The Initial Developer of the Original
   32.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   32.22 - Microsystems, Inc. All Rights Reserved.
   32.23 --->
   32.24 -
   32.25 -<!-- 
   32.26 - 
   32.27 -Copyright 2001 - 2005, International Business Machines Corporation and Microsoft Corporation
   32.28 -All Rights Reserved
   32.29 -
   32.30 -License for WSDL Schema Files
   32.31 -
   32.32 -The Authors grant permission to copy and distribute the WSDL Schema 
   32.33 -Files in any medium without fee or royalty as long as this notice and 
   32.34 -license are distributed with them.  The originals of these files can 
   32.35 -be located at:
   32.36 -
   32.37 -http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd
   32.38 -
   32.39 -THESE SCHEMA FILES ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO REPRESENTATIONS 
   32.40 -OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THESE FILES, INCLUDING, BUT NOT 
   32.41 -LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, 
   32.42 -NON-INFRINGEMENT OR TITLE.  THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, 
   32.43 -INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR 
   32.44 -RELATING TO ANY USE OR DISTRIBUTION OF THESE FILES.
   32.45 -
   32.46 -The name and trademarks of the Authors may NOT be used in any manner, 
   32.47 -including advertising or publicity pertaining to these files or any program 
   32.48 -or service that uses these files, written prior permission.  Title to copyright 
   32.49 -in these files will at all times remain with the Authors.
   32.50 -
   32.51 -No other rights are granted by implication, estoppel or otherwise.
   32.52 -
   32.53 -
   32.54 ---> 
   32.55 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
   32.56 -           xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
   32.57 -           targetNamespace="http://schemas.xmlsoap.org/wsdl/"
   32.58 -           elementFormDefault="qualified" >
   32.59 -   
   32.60 -  <xs:complexType mixed="true" name="tDocumentation" >
   32.61 -    <xs:sequence>
   32.62 -      <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
   32.63 -    </xs:sequence>
   32.64 -  </xs:complexType>
   32.65 -
   32.66 -  <xs:complexType name="tDocumented" >
   32.67 -    <xs:annotation>
   32.68 -      <xs:documentation>
   32.69 -      This type is extended by  component types to allow them to be documented
   32.70 -      </xs:documentation>
   32.71 -    </xs:annotation>
   32.72 -    <xs:sequence>
   32.73 -      <xs:element name="documentation" type="wsdl:tDocumentation" minOccurs="0" />
   32.74 -    </xs:sequence>
   32.75 -  </xs:complexType>
   32.76 -	 
   32.77 -  <xs:complexType name="tExtensibleAttributesDocumented" abstract="true" >
   32.78 -    <xs:complexContent>
   32.79 -      <xs:extension base="wsdl:tDocumented" >
   32.80 -        <xs:annotation>
   32.81 -          <xs:documentation>
   32.82 -          This type is extended by component types to allow attributes from other namespaces to be added.
   32.83 -          </xs:documentation>
   32.84 -        </xs:annotation>
   32.85 -        <xs:anyAttribute namespace="##other" processContents="lax" />    
   32.86 -      </xs:extension>
   32.87 -    </xs:complexContent>
   32.88 -  </xs:complexType>
   32.89 -
   32.90 -  <xs:complexType name="tExtensibleDocumented" abstract="true" >
   32.91 -    <xs:complexContent>
   32.92 -      <xs:extension base="wsdl:tDocumented" >
   32.93 -        <xs:annotation>
   32.94 -          <xs:documentation>
   32.95 -          This type is extended by component types to allow elements from other namespaces to be added.
   32.96 -          </xs:documentation>
   32.97 -        </xs:annotation>
   32.98 -        <xs:sequence>
   32.99 -          <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
  32.100 -        </xs:sequence>
  32.101 -      </xs:extension>
  32.102 -    </xs:complexContent>
  32.103 -  </xs:complexType>
  32.104 -
  32.105 -  <xs:element name="definitions" type="wsdl:tDefinitions" >
  32.106 -    <xs:key name="message" >
  32.107 -      <xs:selector xpath="wsdl:message" />
  32.108 -      <xs:field xpath="@name" />
  32.109 -    </xs:key>
  32.110 -    <xs:key name="portType" >
  32.111 -      <xs:selector xpath="wsdl:portType" />
  32.112 -      <xs:field xpath="@name" />
  32.113 -    </xs:key>
  32.114 -    <xs:key name="binding" >
  32.115 -      <xs:selector xpath="wsdl:binding" />
  32.116 -      <xs:field xpath="@name" />
  32.117 -    </xs:key>
  32.118 -    <xs:key name="service" >
  32.119 -      <xs:selector xpath="wsdl:service" />
  32.120 -      <xs:field xpath="@name" />
  32.121 -    </xs:key>
  32.122 -    <xs:key name="import" >
  32.123 -      <xs:selector xpath="wsdl:import" />
  32.124 -      <xs:field xpath="@namespace" />
  32.125 -    </xs:key>
  32.126 -  </xs:element>
  32.127 -
  32.128 -  <xs:group name="anyTopLevelOptionalElement" >
  32.129 -    <xs:annotation>
  32.130 -      <xs:documentation>
  32.131 -      Any top level optional element allowed to appear more then once - any child of definitions element except wsdl:types. Any extensibility element is allowed in any place.
  32.132 -      </xs:documentation>
  32.133 -    </xs:annotation>
  32.134 -    <xs:choice>
  32.135 -      <xs:element name="import" type="wsdl:tImport" />
  32.136 -      <xs:element name="types" type="wsdl:tTypes" />                     
  32.137 -      <xs:element name="message"  type="wsdl:tMessage" >
  32.138 -        <xs:unique name="part" >
  32.139 -          <xs:selector xpath="wsdl:part" />
  32.140 -          <xs:field xpath="@name" />
  32.141 -        </xs:unique>
  32.142 -      </xs:element>
  32.143 -      <xs:element name="portType" type="wsdl:tPortType" />
  32.144 -      <xs:element name="binding"  type="wsdl:tBinding" />
  32.145 -      <xs:element name="service"  type="wsdl:tService" >
  32.146 -        <xs:unique name="port" >
  32.147 -          <xs:selector xpath="wsdl:port" />
  32.148 -          <xs:field xpath="@name" />
  32.149 -        </xs:unique>
  32.150 -	  </xs:element>
  32.151 -    </xs:choice>
  32.152 -  </xs:group>
  32.153 -
  32.154 -  <xs:complexType name="tDefinitions" >
  32.155 -    <xs:complexContent>
  32.156 -      <xs:extension base="wsdl:tExtensibleDocumented" >
  32.157 -        <xs:sequence>
  32.158 -          <xs:group ref="wsdl:anyTopLevelOptionalElement"  minOccurs="0"   maxOccurs="unbounded" />
  32.159 -        </xs:sequence>
  32.160 -        <xs:attribute name="targetNamespace" type="xs:anyURI" use="optional" />
  32.161 -        <xs:attribute name="name" type="xs:NCName" use="optional" />
  32.162 -      </xs:extension>
  32.163 -    </xs:complexContent>
  32.164 -  </xs:complexType>
  32.165 -   
  32.166 -  <xs:complexType name="tImport" >
  32.167 -    <xs:complexContent>
  32.168 -      <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
  32.169 -        <xs:attribute name="namespace" type="xs:anyURI" use="required" />
  32.170 -        <xs:attribute name="location" type="xs:anyURI" use="required" />
  32.171 -      </xs:extension>
  32.172 -    </xs:complexContent>
  32.173 -  </xs:complexType>
  32.174 -   
  32.175 -  <xs:complexType name="tTypes" >
  32.176 -    <xs:complexContent>   
  32.177 -      <xs:extension base="wsdl:tExtensibleDocumented" />
  32.178 -    </xs:complexContent>   
  32.179 -  </xs:complexType>
  32.180 -     
  32.181 -  <xs:complexType name="tMessage" >
  32.182 -    <xs:complexContent>   
  32.183 -      <xs:extension base="wsdl:tExtensibleDocumented" >
  32.184 -        <xs:sequence>
  32.185 -          <xs:element name="part" type="wsdl:tPart" minOccurs="0" maxOccurs="unbounded" />
  32.186 -        </xs:sequence>
  32.187 -        <xs:attribute name="name" type="xs:NCName" use="required" />
  32.188 -      </xs:extension>
  32.189 -    </xs:complexContent>   
  32.190 -  </xs:complexType>
  32.191 -
  32.192 -  <xs:complexType name="tPart" >
  32.193 -    <xs:complexContent>   
  32.194 -      <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
  32.195 -        <xs:attribute name="name" type="xs:NCName" use="required" />
  32.196 -        <xs:attribute name="element" type="xs:QName" use="optional" />
  32.197 -        <xs:attribute name="type" type="xs:QName" use="optional" />    
  32.198 -      </xs:extension>
  32.199 -    </xs:complexContent>   
  32.200 -  </xs:complexType>
  32.201 -
  32.202 -  <xs:complexType name="tPortType" >
  32.203 -    <xs:complexContent>   
  32.204 -      <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
  32.205 -        <xs:sequence>
  32.206 -          <xs:element name="operation" type="wsdl:tOperation" minOccurs="0" maxOccurs="unbounded" />
  32.207 -        </xs:sequence>
  32.208 -        <xs:attribute name="name" type="xs:NCName" use="required" />
  32.209 -      </xs:extension>
  32.210 -    </xs:complexContent>   
  32.211 -  </xs:complexType>
  32.212 -   
  32.213 -  <xs:complexType name="tOperation" >
  32.214 -    <xs:complexContent>   
  32.215 -      <xs:extension base="wsdl:tExtensibleDocumented" >
  32.216 -	    <xs:sequence>
  32.217 -          <xs:choice>
  32.218 -            <xs:group ref="wsdl:request-response-or-one-way-operation" />
  32.219 -            <xs:group ref="wsdl:solicit-response-or-notification-operation" />
  32.220 -          </xs:choice>
  32.221 -        </xs:sequence>
  32.222 -        <xs:attribute name="name" type="xs:NCName" use="required" />
  32.223 -        <xs:attribute name="parameterOrder" type="xs:NMTOKENS" use="optional" />
  32.224 -      </xs:extension>
  32.225 -    </xs:complexContent>   
  32.226 -  </xs:complexType>
  32.227 -    
  32.228 -  <xs:group name="request-response-or-one-way-operation" >
  32.229 -    <xs:sequence>
  32.230 -      <xs:element name="input" type="wsdl:tParam" />
  32.231 -	  <xs:sequence minOccurs='0' >
  32.232 -	    <xs:element name="output" type="wsdl:tParam" />
  32.233 -		<xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
  32.234 -      </xs:sequence>
  32.235 -    </xs:sequence>
  32.236 -  </xs:group>
  32.237 -
  32.238 -  <xs:group name="solicit-response-or-notification-operation" >
  32.239 -    <xs:sequence>
  32.240 -      <xs:element name="output" type="wsdl:tParam" />
  32.241 -	  <xs:sequence minOccurs='0' >
  32.242 -	    <xs:element name="input" type="wsdl:tParam" />
  32.243 -		<xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
  32.244 -	  </xs:sequence>
  32.245 -    </xs:sequence>
  32.246 -  </xs:group>
  32.247 -        
  32.248 -  <xs:complexType name="tParam" >
  32.249 -    <xs:complexContent>
  32.250 -      <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
  32.251 -        <xs:attribute name="name" type="xs:NCName" use="optional" />
  32.252 -        <xs:attribute name="message" type="xs:QName" use="required" />
  32.253 -      </xs:extension>
  32.254 -    </xs:complexContent>
  32.255 -  </xs:complexType>
  32.256 -
  32.257 -  <xs:complexType name="tFault" >
  32.258 -    <xs:complexContent>
  32.259 -      <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
  32.260 -        <xs:attribute name="name" type="xs:NCName"  use="required" />
  32.261 -        <xs:attribute name="message" type="xs:QName" use="required" />
  32.262 -      </xs:extension>
  32.263 -    </xs:complexContent>
  32.264 -  </xs:complexType>
  32.265 -     
  32.266 -  <xs:complexType name="tBinding" >
  32.267 -    <xs:complexContent>
  32.268 -      <xs:extension base="wsdl:tExtensibleDocumented" >
  32.269 -        <xs:sequence>
  32.270 -          <xs:element name="operation" type="wsdl:tBindingOperation" minOccurs="0" maxOccurs="unbounded" />
  32.271 -        </xs:sequence>
  32.272 -        <xs:attribute name="name" type="xs:NCName" use="required" />
  32.273 -        <xs:attribute name="type" type="xs:QName" use="required" />
  32.274 -      </xs:extension>
  32.275 -    </xs:complexContent>
  32.276 -  </xs:complexType>
  32.277 -    
  32.278 -  <xs:complexType name="tBindingOperationMessage" >
  32.279 -    <xs:complexContent>
  32.280 -      <xs:extension base="wsdl:tExtensibleDocumented" >
  32.281 -        <xs:attribute name="name" type="xs:NCName" use="optional" />
  32.282 -      </xs:extension>
  32.283 -    </xs:complexContent>
  32.284 -  </xs:complexType>
  32.285 -  
  32.286 -  <xs:complexType name="tBindingOperationFault" >
  32.287 -    <xs:complexContent>
  32.288 -      <xs:extension base="wsdl:tExtensibleDocumented" >
  32.289 -        <xs:attribute name="name" type="xs:NCName" use="required" />
  32.290 -      </xs:extension>
  32.291 -    </xs:complexContent>
  32.292 -  </xs:complexType>
  32.293 -
  32.294 -  <xs:complexType name="tBindingOperation" >
  32.295 -    <xs:complexContent>
  32.296 -      <xs:extension base="wsdl:tExtensibleDocumented" >
  32.297 -        <xs:sequence>
  32.298 -          <xs:element name="input" type="wsdl:tBindingOperationMessage" minOccurs="0" />
  32.299 -          <xs:element name="output" type="wsdl:tBindingOperationMessage" minOccurs="0" />
  32.300 -          <xs:element name="fault" type="wsdl:tBindingOperationFault" minOccurs="0" maxOccurs="unbounded" />
  32.301 -        </xs:sequence>
  32.302 -        <xs:attribute name="name" type="xs:NCName" use="required" />
  32.303 -      </xs:extension>
  32.304 -    </xs:complexContent>
  32.305 -  </xs:complexType>
  32.306 -     
  32.307 -  <xs:complexType name="tService" >
  32.308 -    <xs:complexContent>
  32.309 -      <xs:extension base="wsdl:tExtensibleDocumented" >
  32.310 -        <xs:sequence>
  32.311 -          <xs:element name="port" type="wsdl:tPort" minOccurs="0" maxOccurs="unbounded" />
  32.312 -        </xs:sequence>
  32.313 -        <xs:attribute name="name" type="xs:NCName" use="required" />
  32.314 -      </xs:extension>
  32.315 -    </xs:complexContent>
  32.316 -  </xs:complexType>
  32.317 -     
  32.318 -  <xs:complexType name="tPort" >
  32.319 -    <xs:complexContent>
  32.320 -      <xs:extension base="wsdl:tExtensibleDocumented" >
  32.321 -        <xs:attribute name="name" type="xs:NCName" use="required" />
  32.322 -        <xs:attribute name="binding" type="xs:QName" use="required" />
  32.323 -      </xs:extension>
  32.324 -    </xs:complexContent>
  32.325 -  </xs:complexType>
  32.326 -
  32.327 -  <xs:attribute name="arrayType" type="xs:string" />
  32.328 -  <xs:attribute name="required" type="xs:boolean" />
  32.329 -  <xs:complexType name="tExtensibilityElement" abstract="true" >
  32.330 -    <xs:attribute ref="wsdl:required" use="optional" />
  32.331 -  </xs:complexType>
  32.332 -
  32.333 -</xs:schema>
  32.334 \ No newline at end of file
    33.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/template/Bundle.properties	Tue Jul 08 18:18:05 2008 +0530
    33.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.3 @@ -1,28 +0,0 @@
    33.4 -#
    33.5 -# The contents of this file are subject to the terms of the Common Development
    33.6 -# and Distribution License (the License). You may not use this file except in
    33.7 -# compliance with the License.
    33.8 -# 
    33.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   33.10 -# or http://www.netbeans.org/cddl.txt.
   33.11 -# 
   33.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
   33.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
   33.14 -# If applicable, add the following below the CDDL Header, with the fields
   33.15 -# enclosed by brackets [] replaced by your own identifying information:
   33.16 -# "Portions Copyrighted [year] [name of copyright owner]"
   33.17 -# 
   33.18 -# The Original Software is NetBeans. The Initial Developer of the Original
   33.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   33.20 -# Microsystems, Inc. All Rights Reserved.
   33.21 -#
   33.22 -
   33.23 -MqTransport=MQ Transport
   33.24 -http_//schemas.sun.com/jbi/wsdl-extensions/mq/=MQ
   33.25 -
   33.26 -TEMPLATEGROUP_name=MQ
   33.27 -TEMPLATEGROUP_prefix_mq=mq
   33.28 -TEMPLATE_name_MqTransport=MQ Transport
   33.29 -
   33.30 -
   33.31 -
    34.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/template/MQTemplateProvider.java	Tue Jul 08 18:18:05 2008 +0530
    34.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    34.3 @@ -1,40 +0,0 @@
    34.4 -/*
    34.5 - * The contents of this file are subject to the terms of the Common Development
    34.6 - * and Distribution License (the License). You may not use this file except in
    34.7 - * compliance with the License.
    34.8 - * 
    34.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   34.10 - * or http://www.netbeans.org/cddl.txt.
   34.11 - * 
   34.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   34.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   34.14 - * If applicable, add the following below the CDDL Header, with the fields
   34.15 - * enclosed by brackets [] replaced by your own identifying information:
   34.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   34.17 - * 
   34.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   34.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   34.20 - * Microsystems, Inc. All Rights Reserved.
   34.21 - */
   34.22 -
   34.23 -package org.netbeans.modules.wsdlextensions.mq.template;
   34.24 -
   34.25 -import java.io.InputStream;
   34.26 -import org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider;
   34.27 -import org.openide.util.NbBundle;
   34.28 -
   34.29 -public class MQTemplateProvider extends ExtensibilityElementTemplateProvider {
   34.30 -    
   34.31 -    static final String mqTemplateUrl = "/org/netbeans/modules/wsdlextensions/mq/template/template.xml";
   34.32 -
   34.33 -    public InputStream getTemplateInputStream() {
   34.34 -        return MQTemplateProvider.class.getResourceAsStream(mqTemplateUrl);
   34.35 -    }
   34.36 -
   34.37 -    public String getLocalizedMessage(String str, Object[] objects) {
   34.38 -        return NbBundle.getMessage(MQTemplateProvider.class, str, objects);
   34.39 -    }
   34.40 -    
   34.41 -    
   34.42 -
   34.43 -}
    35.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/template/template.xml	Tue Jul 08 18:18:05 2008 +0530
    35.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    35.3 @@ -1,52 +0,0 @@
    35.4 -<?xml version="1.0" encoding="UTF-8"?>
    35.5 -
    35.6 -<!--
    35.7 - The contents of this file are subject to the terms of the Common Development
    35.8 - and Distribution License (the License). You may not use this file except in
    35.9 - compliance with the License.
   35.10 - 
   35.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   35.12 - or http://www.netbeans.org/cddl.txt.
   35.13 - 
   35.14 - When distributing Covered Code, include this CDDL Header Notice in each file
   35.15 - and include the License file at http://www.netbeans.org/cddl.txt.
   35.16 - If applicable, add the following below the CDDL Header, with the fields
   35.17 - enclosed by brackets [] replaced by your own identifying information:
   35.18 - "Portions Copyrighted [year] [name of copyright owner]"
   35.19 - 
   35.20 - The Original Software is NetBeans. The Initial Developer of the Original
   35.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   35.22 - Microsystems, Inc. All Rights Reserved.
   35.23 --->
   35.24 -
   35.25 -<!--
   35.26 -    Document   : template.xml
   35.27 -    Created on : August 25, 2006, 5:39 PM
   35.28 -    Author     : sweng
   35.29 -    Description: Describes the MQ Binding Component's extensibility element views on WSDL wizard
   35.30 --->
   35.31 -<templateGroup namespace="http://schemas.sun.com/jbi/wsdl-extensions/mq/" 
   35.32 -	       xmlns="http://xml.netbeans.org/schema/templates"
   35.33 -	       xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"
   35.34 -               xsi:schemaLocation="http://xml.netbeans.org/schema/templates 
   35.35 -               templates.xsd" prefix="mq">
   35.36 -    <template name="MqTransport">
   35.37 -         <wsdlElement name="Binding">
   35.38 -            <extensionElement name="binding"/>
   35.39 -        </wsdlElement>
   35.40 -        <wsdlElement name="BindingOperation">
   35.41 -            <extensionElement name="operation"/>
   35.42 -        </wsdlElement>
   35.43 -        <wsdlElement name="BindingOperationInput">
   35.44 -            <extensionElement name="body">
   35.45 -                <extensionAttr name="use" defaultValue="literal" />
   35.46 -                <extensionAttr name="MessageBody" defaultValue="Please specify a value" />
   35.47 -            </extensionElement>
   35.48 -        </wsdlElement>
   35.49 -        <wsdlElement name="ServicePort">
   35.50 -            <extensionElement name="address" >
   35.51 -                <extensionAttr name="queueManagerName"  defaultValue="Please specify a value"/>
   35.52 -            </extensionElement>
   35.53 -        </wsdlElement>
   35.54 -    </template>
   35.55 -</templateGroup>
    36.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/validator/Bundle.properties	Tue Jul 08 18:18:05 2008 +0530
    36.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    36.3 @@ -1,82 +0,0 @@
    36.4 -#
    36.5 -# The contents of this file are subject to the terms of the Common Development
    36.6 -# and Distribution License (the License). You may not use this file except in
    36.7 -# compliance with the License.
    36.8 -# 
    36.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   36.10 -# or http://www.netbeans.org/cddl.txt.
   36.11 -# 
   36.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
   36.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
   36.14 -# If applicable, add the following below the CDDL Header, with the fields
   36.15 -# enclosed by brackets [] replaced by your own identifying information:
   36.16 -# "Portions Copyrighted [year] [name of copyright owner]"
   36.17 -# 
   36.18 -# The Original Software is NetBeans. The Initial Developer of the Original
   36.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   36.20 -# Microsystems, Inc. All Rights Reserved.
   36.21 -#
   36.22 -
   36.23 -## put semantics validation messages here
   36.24 -MQBindingValidation.ONLY_ONE_MQ_BINDING_ALLOWED=Binding ''{0}'' has {1} MQ binding (mq:binding) defined; only one MQ binding per binding is allowed
   36.25 -MQBindingValidation.ATMOST_ONE_MQBODY_IN_INPUT=Binding operation ''{0}'' has a MQ binding operation (mq:operation) and contains {1} MQ body (mq:body) definitions for binding input ''{2}''; only one MQBody per binding input is allowed
   36.26 -MQBindingValidation.NO_MESSAGE_FOUND_IN_INPUT=Binding operation ''{0}'' has a MQ binding operation (mq:operation) but does not have a MQ body (mq:body) defined for binding input ''{1}''
   36.27 -MQBindingValidation.ATMOST_ONE_MESSAGE_IN_OUTPUT=Binding operation ''{0}'' has a MQ binding operation (mq:operation) and contains {1} MQ body (mq:body) definitions for binding output ''{2}''; only one MQ message per binding output is allowed
   36.28 -MQBindingValidation.NO_OUPUT_SUPPORTED=Binding operation ''{0}'' has a MQ binding operation (mq:operation) but does not support ''{1}''
   36.29 -MQBindingValidation.MISSING_MQ_OPERATION=Binding ''{0}'' has a MQ binding (mq:binding) defined but does not have a MQ binding operation (mq:operation) defined for its binding operation(s)
   36.30 -MQBindingValidation.MQ_OPERATION_WO_MQ_BINDING=Binding ''{0}'' does not have a MQ binding (mq:binding) defined but yet there is a MQ binding operation (mq:operation) defined
   36.31 -
   36.32 -MQAddressValidation.MISSING_MQ_ADDRESS=Port ''{0}'' has {1} MQ binding(s) defined but it has no MQ address (mq:address) defined
   36.33 -MQAddressValidation.ONLY_ONE_MQ_ADDRESS_ALLOWED=Port ''{0}'' has {1} MQ address(es) (mq:address) defined; only one MQ address per port is allowed
   36.34 -MQAddressValidation.ADVICE_HOSTNAME=MQ address (mq:address) has an unlikely hostName ''{0}'' Only in mq binding mode (v.s. tcp/ip mode) this field can be blank.
   36.35 -MQAddress.MISSING_PASSWORD=MQ address (mq:address) has username defined as ''{0}'' but no password is defined; a username and a password are needed for username/password authentication
   36.36 -MQAddress.NO_PROTOCOL_SPECIFIED=The MQ address (mq:address) has an invalid connectionURL ''{0}'' : no protocol is specified
   36.37 -MQAddress.PROVIDER_NOT_SUPPORTED=The MQ address (mq:address) has an invalid connectionURL ''{0}'' : the protocol ''{1}'' specifies a MQ provider that is not supported
   36.38 -MQAddress.NO_HOST_SPECIFIED=The MQ address (mq:address) has an invalid connectionURL ''{0}'' : no MQ server host is specified
   36.39 -MQAddress.NO_PORT_SPECIFIED=The MQ address (mq:address) has an invalid connectionURL ''{0}'' : no MQ server port is specified
   36.40 -MQAddressValidation.NO_QMGR_SPECIFIED=The MQ address (mq:address) is invalid  no queueManagerName is specified.
   36.41 -MQAddress.INVALID_PORT_SPECIFIED=The MQ address (mq:address) has an invalid connectionURL ''{0}'' : an invalid port number ''{1}'' is specified
   36.42 -
   36.43 -MQOperation.EMPTY_QUEUENAME_EMPTY=Binding operation ''{0}'' has an invalid MQ binding operation (mq:operation) : the value of the queueName attribute is empty
   36.44 -MQOperation.XA_NOT_SUPPORTED_FOR_IN_OUT_XCHANGE=Binding operation ''{0}'' has an invalid MQ binding operation (mq:operation) : XA transactions are not supported for In-Out operations (has input and output)
   36.45 -MQOperation.DURABLE_SUBSCRIBER_BUT_NO_SUBSCRIPTION_NAME=Binding operation ''{0}'' has an invalid MQ binding operation (mq:operation) : a durable subscriber is defined but the subscription name is not defined
   36.46 -MQOperation.DURABLE_SUBSCRIBER_BUT_NO_CLIENT_ID=Binding operation ''{0}'' has a durable subscriber defined but the clientID is not defined; note that the subscriptionName will be used as the clientID if clientID is not defined
   36.47 -MQOperation.BATCH_NOT_SUPPORTED_FOR_TOPICS=Binding operation ''{0}'' has an invalid MQ binding operation (mq:operation) : batching of received messages is not supported for Topics, batchSize is set to ''{1}}''
   36.48 -MQOperation.XA_NOT_SUPPORTED_FOR_BATCH=Binding operation ''{0}'' has an invalid MQ binding operation (mq:operation) : batching of received messages is not supported for XA transactions, batchSize is set to ''{1}}''
   36.49 -MQOperation.ATMOST_ONE_OPTIONS_ELEM_IN_MQ_OPERATION=Binding operation ''{0}'' has an invalid MQ binding operation (mq:operation) : only one MQ options element (mq:options) can be defined for a MQ binding operation but there were {1} found
   36.50 -
   36.51 -MQMessage.MESSAGE_TYPE_IS_NOT_SUPPORTED=Binding operation ''{0}'' has an invalid MQ binding {1}  (mq:body) : ''{2}'' defines MessageType  which is not supported
   36.52 -MQMessage.TEXT_MESSAGE_MESSAGEBODY_NOT_SPECIFIED=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' defines MessageType as ''TextMessage'' but the MessageBody attribute is not specified
   36.53 -MQMessage.TEXT_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' defines MessageBody as ''{3}'' which is a non-existent part in WSDL message ''{4}''
   36.54 -MQMessage.TEXT_MESSAGE_CANNOT_HAVE_MAPMESSAGE_ELEM=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' defines messageType as ''TextMessage'' but it contains a mq:mapmessage child element which is only valid for 'MapMessage' type
   36.55 -MQMessage.ENCODING_STYLE_NOT_SPECIFIED=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' defines the use attribute as ''encoded'' but the encodingStyle attribute is not specified
   36.56 -MQMessage.ENCODING_STYLE_INVALID_USE=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' defines the use attribute as ''literal'' but the encodingStyle attribute is defined which a value of ''{3}''
   36.57 -MQMessage.MAP_MESSAGE_CANNOT_HAVE_TEXTPART_ATTR=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' defines messageType as ''MapMessage'' but it defines the textPart attribute which is only valid for 'TextMessage' type
   36.58 -MQMessage.ATMOST_ONE_MAPMESSAGE_ELEM_IN_MQ_MESSAGE=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has more than one mq:mapmessage child elements defined for mq:body, only one mq:mapmessage child element can be defined but there were {3} found
   36.59 -MQMessage.MISSING_MAPMESSAGE_ELEM_IN_MQ_MESSAGE=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' defines messageType as ''MapMessage'' but it is missing a mq:mapmessage child element for mq:body
   36.60 -MQMessage.EMPTY_MAPMESSAGE_PARTS=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has an empty mq:mapmessage defined for mq:body, one or more mq:mappart child element(s) must be defined for mq:mapmessage
   36.61 -MQMessage.EMTPY_MAPPART_NAME=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has a mq:mappart with an empty value for the name attribute
   36.62 -MQMessage.EMTPY_MAPPART_TYPE=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has a mq:mappart with an empty value for the type attribute
   36.63 -MQMessage.EMTPY_MAPPART_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has a mq:mappart with an empty value for the part attribute
   36.64 -MQMessage.MAPPART_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has a mq:mappart with the part attribute value set to ''{3}'' which is a non-existent part in WSDL message ''{4}''
   36.65 -MQMessage.USE_IGNORED=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' defines messageType as ''MapMessage'' but the use attribute is defined as ''{3}'', use will be ignored because messageType is set to ''MapMessage''
   36.66 -MQMessage.ATMOST_ONE_PROPERTIES_ELEM_IN_MQ_MESSAGE=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has more than one mq:properties child elements defined for mq:body, only one mq:properties child element can be defined but there were {3} found
   36.67 -MQMessage.EMPTY_PROPERTIES_PARTS=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has an empty mq:properties defined for mq:body, one or more mq:property child element(s) must be defined for mq:properties
   36.68 -MQMessage.EMTPY_PROPERTY_NAME=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has a mq:property with an empty value for the name attribute
   36.69 -MQMessage.EMTPY_PROPERTY_TYPE=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has a mq:property with an empty value for the type attribute
   36.70 -MQMessage.EMTPY_PROPERTY_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has a mq:property with an empty value for the part attribute
   36.71 -MQMessage.PROPERTY_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has a mq:property with the part attribute value set to ''{3}'' which is a non-existent part in WSDL message ''{4}''
   36.72 -MQMessage.EMTPY_CORRELATIONID_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the correlationIDPart attribute defined with an empty part name
   36.73 -MQMessage.CORRELATIONID_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the correlationIDPart attribute defined with a part name ''{3}'' which is a non-existent part in WSDL message ''{4}''
   36.74 -MQMessage.EMTPY_DELIVERYMODE_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the deliveryModePart attribute defined with an empty part name
   36.75 -MQMessage.DELIVERYMODE_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the deliveryModePart attribute defined with a part name ''{3}'' which is a non-existent part in WSDL message ''{4}''
   36.76 -MQMessage.EMTPY_PRIORITY_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the priorityPart attribute defined with an empty part name
   36.77 -MQMessage.PRIORITY_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the priorityPart attribute defined with a part name ''{3}'' which is a non-existent part in WSDL message ''{4}''
   36.78 -MQMessage.EMTPY_TYPE_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the typePart attribute defined with an empty part name
   36.79 -MQMessage.TYPE_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the typePart attribute defined with a part name ''{3}'' which is a non-existent part in WSDL message ''{4}''
   36.80 -MQMessage.EMTPY_MESSAGEID_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the messageIDPart attribute defined with an empty part name
   36.81 -MQMessage.MESSAGEID_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the messageIDPart attribute defined with a part name ''{3}'' which is a non-existent part in WSDL message ''{4}''
   36.82 -MQMessage.EMTPY_REDELIVERED_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the redeliveredPart attribute defined with an empty part name
   36.83 -MQMessage.REDELIVERED_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the redeliveredPart attribute defined with a part name ''{3}'' which is a non-existent part in WSDL message ''{4}''
   36.84 -MQMessage.EMTPY_TIMESTAMP_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the timestampPart attribute defined with an empty part name
   36.85 -MQMessage.TIMESTAMP_PART_REFERENCES_NON_EXISTENT_PART=Binding operation ''{0}'' has an invalid MQ {1} binding (mq:body) : the {1} binding ''{2}'' has the timestampPart attribute defined with a part name ''{3}'' which is a non-existent part in WSDL message ''{4}''
    37.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/validator/MQComponentValidator.java	Tue Jul 08 18:18:05 2008 +0530
    37.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    37.3 @@ -1,413 +0,0 @@
    37.4 -/*
    37.5 - * The contents of this file are subject to the terms of the Common Development
    37.6 - * and Distribution License (the License). You may not use this file except in
    37.7 - * compliance with the License.
    37.8 - * 
    37.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   37.10 - * or http://www.netbeans.org/cddl.txt.
   37.11 - * 
   37.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   37.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   37.14 - * If applicable, add the following below the CDDL Header, with the fields
   37.15 - * enclosed by brackets [] replaced by your own identifying information:
   37.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   37.17 - * 
   37.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   37.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   37.20 - * Microsystems, Inc. All Rights Reserved.
   37.21 - */
   37.22 -package org.netbeans.modules.wsdlextensions.mq.validator;
   37.23 -
   37.24 -import java.net.URI;
   37.25 -import java.net.URL;
   37.26 -import java.text.MessageFormat;
   37.27 -import java.util.Collection;
   37.28 -import java.util.Collections;
   37.29 -import java.util.HashSet;
   37.30 -import java.util.Iterator;
   37.31 -import java.util.List;
   37.32 -import java.util.StringTokenizer;
   37.33 -import java.util.ResourceBundle;
   37.34 -
   37.35 -import org.netbeans.modules.xml.wsdl.model.Binding;
   37.36 -import org.netbeans.modules.xml.wsdl.model.BindingInput;
   37.37 -import org.netbeans.modules.xml.wsdl.model.BindingFault;
   37.38 -import org.netbeans.modules.xml.wsdl.model.BindingOperation;
   37.39 -import org.netbeans.modules.xml.wsdl.model.BindingOutput;
   37.40 -import org.netbeans.modules.xml.wsdl.model.Definitions;
   37.41 -import org.netbeans.modules.xml.wsdl.model.Input;
   37.42 -import org.netbeans.modules.xml.wsdl.model.Output;
   37.43 -import org.netbeans.modules.xml.wsdl.model.OperationParameter;
   37.44 -import org.netbeans.modules.xml.wsdl.model.Port;
   37.45 -import org.netbeans.modules.xml.wsdl.model.Service;
   37.46 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
   37.47 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
   37.48 -import org.netbeans.modules.xml.wsdl.model.Message;
   37.49 -import org.netbeans.modules.xml.wsdl.model.Part;
   37.50 -
   37.51 -import org.netbeans.modules.xml.xam.Component;
   37.52 -import org.netbeans.modules.xml.xam.Model;
   37.53 -import org.netbeans.modules.xml.xam.Model.State;
   37.54 -import org.netbeans.modules.xml.xam.dom.NamedComponentReference;
   37.55 -import org.netbeans.modules.xml.xam.spi.Validation;
   37.56 -import org.netbeans.modules.xml.xam.spi.Validation.ValidationType;
   37.57 -import org.netbeans.modules.xml.xam.spi.ValidationResult;
   37.58 -import org.netbeans.modules.xml.xam.spi.Validator;
   37.59 -import org.netbeans.modules.xml.xam.spi.Validator.ResultItem;
   37.60 -
   37.61 -import org.netbeans.modules.wsdlextensions.mq.MQComponent;
   37.62 -import org.netbeans.modules.wsdlextensions.mq.MQBinding;
   37.63 -import org.netbeans.modules.wsdlextensions.mq.MQOperation;
   37.64 -import org.netbeans.modules.wsdlextensions.mq.MQAddress;
   37.65 -import org.netbeans.modules.wsdlextensions.mq.MQBody;
   37.66 -
   37.67 -
   37.68 -
   37.69 -/**
   37.70 - * MQComponentValidator
   37.71 - * semantic validation, check WSDL elements & attributes values and
   37.72 - * any relationship between;
   37.73 - *
   37.74 - *
   37.75 - */
   37.76 -public class MQComponentValidator
   37.77 -        implements Validator {
   37.78 -    
   37.79 -    private static final ResourceBundle mMessages =
   37.80 -            ResourceBundle.getBundle("org.netbeans.modules.wsdlextensions.mq.validator.Bundle");
   37.81 -    
   37.82 -    private Validation mValidation;
   37.83 -    private ValidationType mValidationType;
   37.84 -    private ValidationResult mValidationResult;
   37.85 -    
   37.86 -    public static final ValidationResult EMPTY_RESULT =
   37.87 -            new ValidationResult( Collections.EMPTY_SET,
   37.88 -            Collections.EMPTY_SET);
   37.89 -    
   37.90 -    public MQComponentValidator() {}
   37.91 -    
   37.92 -    /**
   37.93 -     * Returns name of this validation service.
   37.94 -     */
   37.95 -    public String getName() {
   37.96 -        return getClass().getName();
   37.97 -    }
   37.98 -    
   37.99 -    /**
  37.100 -     * Validates given model.
  37.101 -     *
  37.102 -     * @param model model to validate.
  37.103 -     * @param validation reference to the validation context.
  37.104 -     * @param validationType the type of validation to perform
  37.105 -     * @return ValidationResult.
  37.106 -     */
  37.107 -    public ValidationResult validate(Model model, Validation validation,
  37.108 -            ValidationType validationType) {
  37.109 -        mValidation = validation;
  37.110 -        mValidationType = validationType;
  37.111 -        
  37.112 -        HashSet<ResultItem> results = new HashSet<ResultItem>();
  37.113 -        HashSet<Model> models = new HashSet<Model>();
  37.114 -        models.add(model);
  37.115 -        mValidationResult = new ValidationResult(results, models);
  37.116 -        
  37.117 -        // Traverse the model
  37.118 -        if (model instanceof WSDLModel) {
  37.119 -            WSDLModel wsdlModel = (WSDLModel)model;
  37.120 -            
  37.121 -            if (model.getState() == State.NOT_WELL_FORMED) {
  37.122 -                return EMPTY_RESULT;
  37.123 -            }
  37.124 -            
  37.125 -            Definitions defs = wsdlModel.getDefinitions();
  37.126 -            Iterator<Binding> bindings = defs.getBindings().iterator();
  37.127 -            
  37.128 -            while (bindings.hasNext()) {
  37.129 -                Binding binding = bindings.next();
  37.130 -                
  37.131 -                 if (binding.getType() == null || binding.getType().get() == null) {
  37.132 -                    continue;
  37.133 -                }
  37.134 -                
  37.135 -                int numMQBindings = binding.getExtensibilityElements(MQBinding.class).size();
  37.136 -                if ( numMQBindings == 0 )
  37.137 -                    continue;
  37.138 -                
  37.139 -                if (numMQBindings > 0 && numMQBindings != 1) {
  37.140 -                    results.add(
  37.141 -                            new Validator.ResultItem(this,
  37.142 -                            Validator.ResultType.ERROR,
  37.143 -                            binding,
  37.144 -                            getMessage("MQBindingValidation.ONLY_ONE_MQ_BINDING_ALLOWED",
  37.145 -                            new Object[]{binding.getName(),
  37.146 -                            new Integer(numMQBindings)})));
  37.147 -                }
  37.148 -                
  37.149 -                Iterator<BindingOperation> bindingOps =
  37.150 -                        binding.getBindingOperations().iterator();
  37.151 -                boolean foundMQOp = false;
  37.152 -                int bodyCnt = 0;
  37.153 -                while (bindingOps.hasNext()) {
  37.154 -                    BindingOperation bindingOp = bindingOps.next();
  37.155 -                    List <MQOperation> mqOpsList = bindingOp.getExtensibilityElements(MQOperation.class);
  37.156 -                    Iterator<MQOperation> mqOps =
  37.157 -                            mqOpsList.iterator();
  37.158 -                    
  37.159 -                    while (mqOps.hasNext()) {
  37.160 -                        validate(bindingOp, mqOps.next());
  37.161 -                    }
  37.162 -                    
  37.163 -                    if(mqOpsList.size() > 0) {
  37.164 -                        foundMQOp = true;
  37.165 -                        BindingInput bindingInput = bindingOp.getBindingInput();
  37.166 -                        if (bindingInput != null) {
  37.167 -                            bodyCnt = 0;
  37.168 -                            // assumption:
  37.169 -                            // under <input>, there could be one of the following:
  37.170 -                            // <mq:body>
  37.171 -                            // but only one is allowed;
  37.172 -                            //
  37.173 -                            Iterator<MQBody> mqBodies =
  37.174 -                                    bindingInput.getExtensibilityElements(MQBody.class).iterator();
  37.175 -                            
  37.176 -                            if ( mqBodies != null ) {
  37.177 -                                while (mqBodies.hasNext()) {
  37.178 -                                    bodyCnt++;
  37.179 -                                    MQBody mqBody = mqBodies.next();
  37.180 -                                    validate(bindingOp, bindingInput.getInput().get(), mqBody);
  37.181 -                                }
  37.182 -                                if ( bodyCnt > 1 ) {
  37.183 -                                    results.add(
  37.184 -                                            new Validator.ResultItem(this,
  37.185 -                                            Validator.ResultType.ERROR,
  37.186 -                                            bindingInput,
  37.187 -                                            getMessage("MQBindingValidation.ATMOST_ONE_MQBODY_IN_INPUT",
  37.188 -                                            new Object [] {bindingOp.getName(),
  37.189 -                                            new Integer(bodyCnt),
  37.190 -                                            bindingInput.getName()})));
  37.191 -                                }
  37.192 -                                
  37.193 -                            }
  37.194 -                            
  37.195 -                            
  37.196 -                        }
  37.197 -                        
  37.198 -                        BindingOutput bindingOutput = bindingOp.getBindingOutput();
  37.199 -                          if (bindingOutput != null) {
  37.200 -                             results.add(
  37.201 -                                        new Validator.ResultItem(this,
  37.202 -                                        Validator.ResultType.ERROR,
  37.203 -                                        bindingInput,
  37.204 -                                        getMessage("MQBindingValidation.NO_OUPUT_SUPPORTED",
  37.205 -                                                  new Object [] {bindingOp.getName(),
  37.206 -                                                                 bindingOutput.getName()})));
  37.207 -                          }
  37.208 -                        
  37.209 -                    }
  37.210 -                }
  37.211 -                // there is mq:binding but no mp:operation
  37.212 -                if ( numMQBindings > 0 && !foundMQOp ) {
  37.213 -                    results.add(
  37.214 -                            new Validator.ResultItem(this,
  37.215 -                            Validator.ResultType.ERROR,
  37.216 -                            binding,
  37.217 -                            getMessage("MQBindingValidation.MISSING_MQ_OPERATION",
  37.218 -                            new Object[]{binding.getName()})));
  37.219 -                }
  37.220 -                // there is no mp:binding but there are mp:operation
  37.221 -                if ( numMQBindings == 0 && foundMQOp ) {
  37.222 -                    results.add(
  37.223 -                            new Validator.ResultItem(this,
  37.224 -                            Validator.ResultType.ERROR,
  37.225 -                            binding,
  37.226 -                            getMessage("MQBindingValidation.MQ_OPERATION_WO_MQ_BINDING",
  37.227 -                            new Object[]{binding.getName()})));
  37.228 -                }
  37.229 -            }
  37.230 -            
  37.231 -            Iterator<Service> services = defs.getServices().iterator();
  37.232 -            while (services.hasNext()) {
  37.233 -                Iterator<Port> ports = services.next().getPorts().iterator();
  37.234 -                while (ports.hasNext()) {
  37.235 -                    Port port = ports.next();
  37.236 -                    if(port.getBinding() != null) {
  37.237 -                        Binding binding = port.getBinding().get();
  37.238 -                        if(binding != null) {
  37.239 -                            int numRelatedMQBindings = binding.getExtensibilityElements(MQBinding.class).size();
  37.240 -                            List <MQAddress> mqAddressList = port.getExtensibilityElements(MQAddress.class);
  37.241 -                            Iterator<MQAddress> mqAddresses = mqAddressList.iterator();
  37.242 -                            if((numRelatedMQBindings > 0) && (mqAddressList.size()==0)){
  37.243 -                                results.add(
  37.244 -                                        new Validator.ResultItem(this,
  37.245 -                                        Validator.ResultType.ERROR,
  37.246 -                                        port,
  37.247 -                                        getMessage("MQAddressValidation.MISSING_MQ_ADDRESS",
  37.248 -                                        new Object[]{port.getName(),
  37.249 -                                        new Integer(numRelatedMQBindings)})));
  37.250 -                            }
  37.251 -                            
  37.252 -                            if(mqAddressList.size() > 1){
  37.253 -                                results.add(
  37.254 -                                        new Validator.ResultItem(this,
  37.255 -                                        Validator.ResultType.ERROR,
  37.256 -                                        port,
  37.257 -                                        getMessage("MQAddressValidation.ONLY_ONE_MQ_ADDRESS_ALLOWED",
  37.258 -                                        new Object[]{port.getName(),
  37.259 -                                        new Integer(mqAddressList.size())})));
  37.260 -                            }
  37.261 -                            while (mqAddresses.hasNext()) {
  37.262 -                                validate(mqAddresses.next());
  37.263 -                            }
  37.264 -                        }
  37.265 -                    }
  37.266 -                }
  37.267 -            }
  37.268 -        }
  37.269 -        // Clear out our state
  37.270 -        mValidation = null;
  37.271 -        mValidationType = null;
  37.272 -        
  37.273 -        return mValidationResult;
  37.274 -    }
  37.275 -    
  37.276 -    private void validate(MQAddress target) {
  37.277 -        // validate mq:address
  37.278 -        Collection<ResultItem> results =
  37.279 -                mValidationResult.getValidationResult();
  37.280 -        String qMgrNm = target.getQueueManagerName();
  37.281 -        if (qMgrNm == null || qMgrNm.length() == 0 || qMgrNm.startsWith("Please specify a value") )
  37.282 -        {
  37.283 -             results.add(new Validator.ResultItem(this,
  37.284 -                    Validator.ResultType.ERROR,
  37.285 -                    target,
  37.286 -                    getMessage("MQAddressValidation.NO_QMGR_SPECIFIED","")));
  37.287 -                    
  37.288 -        
  37.289 -        }
  37.290 -        String hostname = target.getHostName();
  37.291 -        if (hostname == null || hostname.length() == 0 || hostname.startsWith("Please specify a value")){
  37.292 -            results.add(
  37.293 -                    new Validator.ResultItem(this,
  37.294 -                    Validator.ResultType.WARNING,
  37.295 -                    target,
  37.296 -                    getMessage("MQAddressValidation.ADVICE_HOSTNAME",
  37.297 -                    new Object[]{hostname == null?"":hostname})));
  37.298 -            
  37.299 -        }
  37.300 -        
  37.301 -    }
  37.302 -    
  37.303 -    private void validate(MQBinding target) {
  37.304 -        // for mq binding tag - nothing to validate at this point
  37.305 -    }
  37.306 -    
  37.307 -    
  37.308 -    private void validate(BindingOperation bindingOp, MQOperation target) {
  37.309 -        Collection<ResultItem> results =
  37.310 -                mValidationResult.getValidationResult();
  37.311 -        
  37.312 -        // ToDo: validate MQ operation
  37.313 -        String mep = "in-only";
  37.314 -        boolean hasInput = bindingOp.getBindingInput() != null;
  37.315 -        boolean hasOutput = bindingOp.getBindingOutput() != null;
  37.316 -        
  37.317 -        if (hasInput && hasOutput) {
  37.318 -            mep = "in-out";
  37.319 -        }
  37.320 -        
  37.321 -        String queuename = target.getQueueName();
  37.322 -        
  37.323 -        
  37.324 -        if (queuename == null) {
  37.325 -            results.add(new Validator.ResultItem(this,
  37.326 -                    Validator.ResultType.ERROR,
  37.327 -                    target,
  37.328 -                    getMessage("MQOperation.EMPTY_QUEUENAME_EMPTY",
  37.329 -                    new Object[] {bindingOp.getName()})));
  37.330 -        }
  37.331 -        
  37.332 -        String transaction = target.getTransaction();
  37.333 -        if (transaction != null &&
  37.334 -                transaction.equals("XATransaction") && mep.equals("in-out")) {
  37.335 -            results.add(new Validator.ResultItem(this,
  37.336 -                    Validator.ResultType.ERROR,
  37.337 -                    target,
  37.338 -                    getMessage("MQOperation.XA_NOT_SUPPORTED_FOR_IN_OUT_XCHANGE",
  37.339 -                    new Object[] {bindingOp.getName()})));
  37.340 -        }
  37.341 -        
  37.342 -    }
  37.343 -    
  37.344 -    private void validate(BindingOperation bindingOp,
  37.345 -            OperationParameter opParam,
  37.346 -            MQBody target) {
  37.347 -        Collection<ResultItem> results =
  37.348 -                mValidationResult.getValidationResult();
  37.349 -        
  37.350 -        // get mq:body type
  37.351 -        String mqMsgType = target.getMessageType();
  37.352 -        if(mqMsgType == null) {
  37.353 -             results.add(new Validator.ResultItem(this,
  37.354 -                        Validator.ResultType.ERROR,
  37.355 -                        target,
  37.356 -                        getMessage("MQMessage.MESSAGE_TYPE_IS_NOT_SUPPORTED",
  37.357 -                        new Object[] {bindingOp.getName(),
  37.358 -                        (opParam instanceof Input)? "input":"output",
  37.359 -                        "null"})));
  37.360 -             return;
  37.361 -        }
  37.362 -        if (mqMsgType.equals(MQBody.TEXT_MESSAGE)) {
  37.363 -            String MessageBodyPart = target.getMessageBodyPart();
  37.364 -            if (MessageBodyPart == null || MessageBodyPart.length() == 0) {
  37.365 -                results.add(new Validator.ResultItem(this,
  37.366 -                        Validator.ResultType.ERROR,
  37.367 -                        target,
  37.368 -                        getMessage("MQMessage.TEXT_MESSAGE_MESSAGEBODY_NOT_SPECIFIED",
  37.369 -                        new Object[] {bindingOp.getName(),
  37.370 -                        (opParam instanceof Input)? "input":"output",
  37.371 -                        opParam.getName()})));
  37.372 -            } else {
  37.373 -                 // make sure textPart references a vald wsdl message part
  37.374 -                if (!referencesValidMessagePart(opParam.getMessage(), MessageBodyPart)) {
  37.375 -                    results.add(new Validator.ResultItem(this,
  37.376 -                            Validator.ResultType.ERROR,
  37.377 -                            target,
  37.378 -                            getMessage("MQMessage.TEXT_PART_REFERENCES_NON_EXISTENT_PART",
  37.379 -                                       new Object[] {bindingOp.getName(),
  37.380 -                                                     (opParam instanceof Input)? "input":"output",
  37.381 -                                                     opParam.getName(),
  37.382 -                                                     MessageBodyPart,
  37.383 -                                                     opParam.getMessage().getQName()})));                    
  37.384 -                }
  37.385 -                
  37.386 -            }
  37.387 -        }
  37.388 -    }
  37.389 -    
  37.390 -    private boolean referencesValidMessagePart(NamedComponentReference<Message> wsdlMessage,
  37.391 -            String partName) {
  37.392 -        boolean isValdPartReference = false;
  37.393 -        Iterator<Part> partIter = wsdlMessage.get().getParts().iterator();
  37.394 -        while(partIter.hasNext()) {
  37.395 -            Part p = partIter.next();
  37.396 -            if (p.getName().equals(partName)) {
  37.397 -                isValdPartReference = true;
  37.398 -                break;
  37.399 -            }
  37.400 -        }
  37.401 -        return isValdPartReference;
  37.402 -    }
  37.403 -    
  37.404 -    private String getMessage(String key, String param) {
  37.405 -        return getMessage(key, new Object[] {param});
  37.406 -    }
  37.407 -    
  37.408 -    private String getMessage(String key, Object[] params) {
  37.409 -        String fmt = mMessages.getString(key);
  37.410 -        if ( params != null ) {
  37.411 -            return MessageFormat.format(fmt, params);
  37.412 -        } else {
  37.413 -            return fmt;
  37.414 -        }
  37.415 -    }
  37.416 -}
    38.1 --- a/wsdlextensions.mq/src/org/netbeans/modules/wsdlextensions/mq/validator/MQValidatorSchemaFactory.java	Tue Jul 08 18:18:05 2008 +0530
    38.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    38.3 @@ -1,54 +0,0 @@
    38.4 -/*
    38.5 - * The contents of this file are subject to the terms of the Common Development
    38.6 - * and Distribution License (the License). You may not use this file except in
    38.7 - * compliance with the License.
    38.8 - * 
    38.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   38.10 - * or http://www.netbeans.org/cddl.txt.
   38.11 - * 
   38.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   38.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   38.14 - * If applicable, add the following below the CDDL Header, with the fields
   38.15 - * enclosed by brackets [] replaced by your own identifying information:
   38.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   38.17 - * 
   38.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   38.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   38.20 - * Microsystems, Inc. All Rights Reserved.
   38.21 - */
   38.22 -
   38.23 -package org.netbeans.modules.wsdlextensions.mq.validator;
   38.24 -
   38.25 -
   38.26 -import java.io.InputStream;
   38.27 -import javax.xml.transform.Source;
   38.28 -import javax.xml.transform.stream.StreamSource;
   38.29 -import org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory;
   38.30 -
   38.31 -/**
   38.32 - * This class implements ValidatorSchemaFactory interface.
   38.33 - *
   38.34 - * @author sweng
   38.35 - */
   38.36 -public class MQValidatorSchemaFactory extends ValidatorSchemaFactory{
   38.37 -    static final String mqbcXSDUrl = "/org/netbeans/modules/wsdlextensions/mq/resources/mq-ext.xsd";
   38.38 -    
   38.39 -    public String getNamespaceURI() {
   38.40 -        return "http://schemas.sun.com/jbi/wsdl-extensions/mq/";
   38.41 -    }
   38.42 -    
   38.43 -    public InputStream getSchemaInputStream() {
   38.44 -         InputStream is = MQValidatorSchemaFactory.class.getResourceAsStream(mqbcXSDUrl);
   38.45 -         return is;
   38.46 -    }
   38.47 -    
   38.48 -     /**
   38.49 -     * Returns the Inputstream related to this schema
   38.50 -     */
   38.51 -    public Source getSchemaSource() {
   38.52 -        InputStream in = MQValidatorSchemaFactory.class.getResourceAsStream(mqbcXSDUrl);
   38.53 -        Source s = new StreamSource(in);
   38.54 -        s.setSystemId(MQValidatorSchemaFactory.class.getResource(mqbcXSDUrl).toString());
   38.55 -        return s;
   38.56 -    }
   38.57 -}
    39.1 --- a/wsdlextensions.mq/test/build-unit.xml	Tue Jul 08 18:18:05 2008 +0530
    39.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    39.3 @@ -1,72 +0,0 @@
    39.4 -<?xml version="1.0"?>
    39.5 -<!--
    39.6 - The contents of this file are subject to the terms of the Common Development
    39.7 - and Distribution License (the License). You may not use this file except in
    39.8 - compliance with the License.
    39.9 - 
   39.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   39.11 - or http://www.netbeans.org/cddl.txt.
   39.12 - 
   39.13 - When distributing Covered Code, include this CDDL Header Notice in each file
   39.14 - and include the License file at http://www.netbeans.org/cddl.txt.
   39.15 - If applicable, add the following below the CDDL Header, with the fields
   39.16 - enclosed by brackets [] replaced by your own identifying information:
   39.17 - "Portions Copyrighted [year] [name of copyright owner]"
   39.18 - 
   39.19 - The Original Software is NetBeans. The Initial Developer of the Original
   39.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   39.21 - Microsystems, Inc. All Rights Reserved.
   39.22 --->
   39.23 -
   39.24 -<project name="org.netbeans.modules.wsdlextensions.mq/test-unit" basedir="." default="all">
   39.25 -    <!-- ========= -->
   39.26 -    <!-- Compilers -->
   39.27 -    <!-- ========= -->
   39.28 -    <property name="build.compiler.source" value="1.5"/>
   39.29 -    <property file="../nbproject/project.properties"/>
   39.30 -    
   39.31 -    <target name="default-compiler">
   39.32 -        <!-- Build application before tests -->
   39.33 -        <ant dir=".." target="jar"/>
   39.34 -        <buildTests srcdir="unit/src" compileexcludes="**/data/**">
   39.35 -            <property name="javac.source" value="1.5"/>
   39.36 -	    <property name="package.tests.includes" value="**/*"/>
   39.37 -	    <property name="package.tests.excludes" value="**/*.java"/>
   39.38 -            <classpath>
   39.39 -                <!-- Add classpath elements needed to compile tests -->
   39.40 -                <pathelement path="${test.unit.cp}"/>
   39.41 -                <pathelement path="${test.unit.cp.extra}"/>
   39.42 -            </classpath>
   39.43 -        </buildTests>
   39.44 -    </target>
   39.45 -    
   39.46 -    <!-- ========= -->
   39.47 -    <!-- Executors -->
   39.48 -    <!-- ========= -->
   39.49 -    
   39.50 -    <target name="run-unit-test">
   39.51 -	<echo>NNNNNNNNNNNNNNNNNNNNtest.unit.cp.extra=${test.unit.cp.extra}</echo>
   39.52 -        <executeTests pluginname="jvm">
   39.53 -             <classpath>
   39.54 -                <!-- Add classpath elements needed to run tests -->
   39.55 -                <pathelement path="${test.unit.cp}"/>
   39.56 -                <pathelement path="${test.unit.cp.extra}"/>
   39.57 -                <pathelement path="${test.unit.run.cp.extra}"/>
   39.58 -            </classpath>
   39.59 -        </executeTests>
   39.60 -    </target>
   39.61 -
   39.62 -    <target name="run-ide-test">
   39.63 -        <property name="xtest.ide.use.classloader" value="org.netbeans.modules.wsdlextensions.mq"/>
   39.64 -        <executeTests pluginName="ide">
   39.65 -             <classpath>
   39.66 -                <!-- Add classpath elements needed to run tests -->
   39.67 -                <pathelement path="${test.unit.cp}"/>
   39.68 -                <pathelement path="${test.unit.cp.extra}"/>
   39.69 -                <pathelement path="${test.unit.run.cp.extra}"/>
   39.70 -            </classpath>
   39.71 -        </executeTests>
   39.72 -    </target>
   39.73 -    
   39.74 -</project>
   39.75 -
    40.1 --- a/wsdlextensions.mq/test/build.xml	Tue Jul 08 18:18:05 2008 +0530
    40.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    40.3 @@ -1,100 +0,0 @@
    40.4 -<?xml version="1.0"?>
    40.5 -<!--
    40.6 - The contents of this file are subject to the terms of the Common Development
    40.7 - and Distribution License (the License). You may not use this file except in
    40.8 - compliance with the License.
    40.9 - 
   40.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   40.11 - or http://www.netbeans.org/cddl.txt.
   40.12 - 
   40.13 - When distributing Covered Code, include this CDDL Header Notice in each file
   40.14 - and include the License file at http://www.netbeans.org/cddl.txt.
   40.15 - If applicable, add the following below the CDDL Header, with the fields
   40.16 - enclosed by brackets [] replaced by your own identifying information:
   40.17 - "Portions Copyrighted [year] [name of copyright owner]"
   40.18 - 
   40.19 - The Original Software is NetBeans. The Initial Developer of the Original
   40.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   40.21 - Microsystems, Inc. All Rights Reserved.
   40.22 --->
   40.23 -<project name="org.netbeans.modules.wsdlextensions.mq/test" basedir="." default="all">
   40.24 -
   40.25 -    <!-- Name of tested module -->
   40.26 -    <property name="xtest.module" value="org.netbeans.modules.wsdlextensions.mq"/>
   40.27 -    
   40.28 -    <!-- Home of XTest -->
   40.29 -    <property name="xtest.home" location="../../../xtest"/>
   40.30 -    <import file="${xtest.home}/lib/templates/xtest.xml"/>
   40.31 -
   40.32 -    <!-- default testtypes, attributes used when no value is supplied from command line -->
   40.33 -    <property name="xtest.testtype" value="unit"/>
   40.34 -    <property name="xtest.attribs" value="stable"/>
   40.35 -    <!--
   40.36 -    <property name="xtest.testtype" value="functional"/>
   40.37 -    <property name="xtest.attribs" value="stable,validation"/>
   40.38 -    -->
   40.39 -    
   40.40 -    <!-- Points to directory with IDE to test. Optional for IDE tests.  -->
   40.41 -    <property name="netbeans.dest.dir" location="${xtest.home}/../nbbuild/netbeans"/>
   40.42 -    
   40.43 -    <!--
   40.44 -    *****************************************************
   40.45 -    ** You should not change anything after this comment,
   40.46 -    **    unless you really know what you are doing
   40.47 -    ******************************************************
   40.48 -    -->
   40.49 -    
   40.50 -    <!-- Ant property. Value 'ignore' means that system classpath is ignored
   40.51 -         and only classpath specified in build file is used. -->
   40.52 -    <property name="build.sysclasspath" value="ignore"/>
   40.53 -
   40.54 -    <!-- Points to antfile with module's harness. 
   40.55 -         Targets from that antfile is called from this build.xml -->
   40.56 -    <property name="xtest.module_harness.antfile" location="${xtest.home}/lib/module_harness.xml"/>
   40.57 -
   40.58 -    <!-- before using xtest task, it has to be defined -->
   40.59 -    <taskdef name="xtest" classname="org.netbeans.xtest.usertasks.XTestActionTask" 
   40.60 -                 classpath="${xtest.home}/lib/xtest.jar"/>  
   40.61 -    
   40.62 -    <!-- ============ -->
   40.63 -    <!-- Main targets -->
   40.64 -    <!-- ============ -->
   40.65 -    
   40.66 -    <target name="all" depends="runtests"/>
   40.67 -    
   40.68 -    <!-- This calls target which will call compilers according to cfg file.
   40.69 -         You should not change this target unless you realy know what you are doing -->
   40.70 -    <target name="buildtests">
   40.71 -       <xtest executeAction="buildTests"/>
   40.72 -    </target>
   40.73 -    
   40.74 -    <!-- This calls common clean process. This cleans the tests -->
   40.75 -    <!-- You can write your own if you need something special -->
   40.76 -    <target name="cleantests">
   40.77 -       <xtest executeAction="cleanTests"/>
   40.78 -    </target> 
   40.79 -
   40.80 -    <!-- This target runs tests. You should not change this --> 
   40.81 -    <!-- target unless you realy know what you are doing -->
   40.82 -    <target name="runtests" depends="buildtests">
   40.83 -        <echo message="Module: Running tests for ${xtest.module}, testtype ${xtest.testtype}, attribs=${xtest.attribs}"/>
   40.84 -        <xtest executeAction="runTests"/>
   40.85 -    </target>
   40.86 -    
   40.87 -    <!-- This target cleans results -->
   40.88 -    <target name="cleanresults">
   40.89 -        <xtest executeAction="cleanResults"/>
   40.90 -    </target>
   40.91 -    
   40.92 -    <!-- This target cleans both tests and results -->
   40.93 -    <target name="realclean">
   40.94 -        <xtest executeAction="cleanAll"/>
   40.95 -    </target>
   40.96 -    
   40.97 -    <!-- This target prints out default xtest configuration which will be used to run the tests -->
   40.98 -    <target name="printconfig">
   40.99 -        <echo message="Default config is testtype: ${xtest.testtype}, attributes: ${xtest.attribs}."/>
  40.100 -    </target>
  40.101 -    
  40.102 -</project>
  40.103 -
    41.1 --- a/wsdlextensions.mq/test/cfg-unit.xml	Tue Jul 08 18:18:05 2008 +0530
    41.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    41.3 @@ -1,44 +0,0 @@
    41.4 -<?xml version="1.0" encoding="UTF-8"?>
    41.5 -<!--
    41.6 - The contents of this file are subject to the terms of the Common Development
    41.7 - and Distribution License (the License). You may not use this file except in
    41.8 - compliance with the License.
    41.9 - 
   41.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   41.11 - or http://www.netbeans.org/cddl.txt.
   41.12 - 
   41.13 - When distributing Covered Code, include this CDDL Header Notice in each file
   41.14 - and include the License file at http://www.netbeans.org/cddl.txt.
   41.15 - If applicable, add the following below the CDDL Header, with the fields
   41.16 - enclosed by brackets [] replaced by your own identifying information:
   41.17 - "Portions Copyrighted [year] [name of copyright owner]"
   41.18 - 
   41.19 - The Original Software is NetBeans. The Initial Developer of the Original
   41.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   41.21 - Microsystems, Inc. All Rights Reserved.
   41.22 --->
   41.23 -
   41.24 -<mconfig name="Unit config">
   41.25 -
   41.26 -    <testbag testattribs="stable" executor="unit-executor" name="Unit tests">
   41.27 -        <testset dir="unit/src">
   41.28 -            <patternset>
   41.29 -                <include name="**/*Test.class"/>
   41.30 -                <!-- exclude name="**/readwrite/*Test.class"/ -->
   41.31 -            </patternset>
   41.32 -        </testset>
   41.33 -    </testbag>
   41.34 -
   41.35 -    <testbag testattribs="ide" executor="ide-executor" name="IDE tests">
   41.36 -        <testset dir="unit/src">
   41.37 -            <patternset>
   41.38 -                <include name="**/*Test.class"/>
   41.39 -            </patternset>
   41.40 -        </testset>
   41.41 -    </testbag>
   41.42 -
   41.43 -    <compiler name="default-compiler" antfile="build-unit.xml" target="default-compiler" default="true"/>
   41.44 -    <executor name="unit-executor" antfile="build-unit.xml" target="run-unit-test"/>
   41.45 -    <executor name="ide-executor" antfile="build-unit.xml" target="run-ide-test"/>
   41.46 -
   41.47 -</mconfig>
    42.1 --- a/wsdlextensions.mq/test/unit/src/org/netbeans/modules/wsdlextensions/mq/validator/MQValidatorSchemaFactoryTest.java	Tue Jul 08 18:18:05 2008 +0530
    42.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    42.3 @@ -1,79 +0,0 @@
    42.4 -/*
    42.5 - * The contents of this file are subject to the terms of the Common Development
    42.6 - * and Distribution License (the License). You may not use this file except in
    42.7 - * compliance with the License.
    42.8 - * 
    42.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   42.10 - * or http://www.netbeans.org/cddl.txt.
   42.11 - * 
   42.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   42.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   42.14 - * If applicable, add the following below the CDDL Header, with the fields
   42.15 - * enclosed by brackets [] replaced by your own identifying information:
   42.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   42.17 - * 
   42.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   42.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   42.20 - * Microsystems, Inc. All Rights Reserved.
   42.21 - */
   42.22 -
   42.23 -/*
   42.24 - * MQValidatorSchemaFactoryTest.java
   42.25 - * JUnit based test
   42.26 - *
   42.27 - * Created on February 6, 2007, 11:37 PM
   42.28 - */
   42.29 -
   42.30 -package org.netbeans.modules.wsdlextensions.mq.validator;
   42.31 -
   42.32 -import javax.xml.transform.Source;
   42.33 -import junit.framework.*;
   42.34 -import java.io.InputStream;
   42.35 -import org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory;
   42.36 -import org.netbeans.modules.wsdlextensions.mq.MQQName;
   42.37 -
   42.38 -/**
   42.39 - *
   42.40 - * @author radval
   42.41 - */
   42.42 -public class MQValidatorSchemaFactoryTest extends TestCase {
   42.43 -    
   42.44 -    public MQValidatorSchemaFactoryTest(String testName) {
   42.45 -        super(testName);
   42.46 -    }
   42.47 -
   42.48 -    protected void setUp() throws Exception {
   42.49 -    }
   42.50 -
   42.51 -    protected void tearDown() throws Exception {
   42.52 -    }
   42.53 -
   42.54 -    /**
   42.55 -     * Test of getNamespaceURI method, of class org.netbeans.modules.wsdlextensions.mq.validator.MQValidatorSchemaFactory.
   42.56 -     */
   42.57 -    public void testGetNamespaceURI() {
   42.58 -        System.out.println("getNamespaceURI");
   42.59 -        
   42.60 -        MQValidatorSchemaFactory instance = new MQValidatorSchemaFactory();
   42.61 -        
   42.62 -      
   42.63 -        String result = instance.getNamespaceURI();
   42.64 -        assertNotNull(result);
   42.65 -        
   42.66 -    }
   42.67 -
   42.68 -    /**
   42.69 -     * Test of getSchemaInputStream method, of class org.netbeans.modules.wsdlextensions.mq.validator.MQValidatorSchemaFactory.
   42.70 -     */
   42.71 -    public void testGetSchemaSource() {
   42.72 -        System.out.println("getSchemaSource");
   42.73 -        
   42.74 -        MQValidatorSchemaFactory instance = new MQValidatorSchemaFactory();
   42.75 -        
   42.76 -       
   42.77 -        Source result = instance.getSchemaSource();
   42.78 -        assertNotNull(result);
   42.79 -        
   42.80 -    }
   42.81 -    
   42.82 -}
    43.1 --- a/wsdlextensions.mq/test/unit/src/org/netbeans/modules/wsdlextensions/mq/validator/SchemaTest.java	Tue Jul 08 18:18:05 2008 +0530
    43.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    43.3 @@ -1,95 +0,0 @@
    43.4 -/*
    43.5 - * The contents of this file are subject to the terms of the Common Development
    43.6 - * and Distribution License (the License). You may not use this file except in
    43.7 - * compliance with the License.
    43.8 - * 
    43.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   43.10 - * or http://www.netbeans.org/cddl.txt.
   43.11 - * 
   43.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   43.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   43.14 - * If applicable, add the following below the CDDL Header, with the fields
   43.15 - * enclosed by brackets [] replaced by your own identifying information:
   43.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   43.17 - * 
   43.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   43.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
   43.20 - * Microsystems, Inc. All Rights Reserved.
   43.21 - */
   43.22 -
   43.23 -/*
   43.24 - * SchemaTest.java
   43.25 - * JUnit based test
   43.26 - *
   43.27 - * Created on January 31, 2007, 6:25 PM
   43.28 - */
   43.29 -
   43.30 -package org.netbeans.modules.wsdlextensions.mq.validator;
   43.31 -
   43.32 -import java.net.URL;
   43.33 -import javax.xml.XMLConstants;
   43.34 -import javax.xml.transform.stream.StreamSource;
   43.35 -import javax.xml.validation.Schema;
   43.36 -import javax.xml.validation.SchemaFactory;
   43.37 -import junit.framework.*;
   43.38 -import org.xml.sax.ErrorHandler;
   43.39 -import org.xml.sax.SAXException;
   43.40 -import org.xml.sax.SAXParseException;
   43.41 -
   43.42 -/**
   43.43 - *
   43.44 - * @author radval
   43.45 - */
   43.46 -public class SchemaTest extends TestCase {
   43.47 -    
   43.48 -    private Exception mLastError;
   43.49 -    
   43.50 -    private URL schemaUrl = SchemaTest.class.getResource("/org/netbeans/modules/wsdlextensions/mq/resources/mq-ext.xsd");
   43.51 -    
   43.52 -    public SchemaTest(String testName) {
   43.53 -        super(testName);
   43.54 -    }
   43.55 -
   43.56 -    protected void setUp() throws Exception {
   43.57 -    }
   43.58 -
   43.59 -    protected void tearDown() throws Exception {
   43.60 -    }
   43.61 -    
   43.62 -    // TODO add test methods here. The name must begin with 'test'. For example:
   43.63 -    // public void testHello() {}
   43.64 -    
   43.65 -    public void testSchema() throws Exception {
   43.66 -        MyErrorHandler errorHandler = new MyErrorHandler();
   43.67 -        SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
   43.68 -        sf.setErrorHandler(errorHandler);
   43.69 -        MQValidatorSchemaFactory fac = new MQValidatorSchemaFactory();
   43.70 -        StreamSource s = new StreamSource(fac.getSchemaInputStream());
   43.71 -        s.setSystemId(MQValidatorSchemaFactory.class.getResource(MQValidatorSchemaFactory.mqbcXSDUrl).toString());
   43.72 -        Schema schema = sf.newSchema(s);
   43.73 -        assertNotNull("schema should not be null", schema);
   43.74 -        
   43.75 -        assertNull("No exception should occur in schema parsing", mLastError);
   43.76 -        
   43.77 -    }
   43.78 -    
   43.79 -    class MyErrorHandler implements ErrorHandler {
   43.80 -        
   43.81 -        public void error(SAXParseException exception) throws SAXException {
   43.82 -            mLastError = exception;
   43.83 -            exception.printStackTrace();
   43.84 -        }
   43.85 -
   43.86 -        public void fatalError(SAXParseException exception) throws SAXException {
   43.87 -            mLastError = exception;
   43.88 -            exception.printStackTrace();
   43.89 -        }
   43.90 -
   43.91 -        public void warning(SAXParseException exception) throws SAXException {
   43.92 -            exception.printStackTrace();
   43.93 -        }
   43.94 -        
   43.95 -
   43.96 -
   43.97 -    }
   43.98 -}