1.1 --- a/wsdlextensions.email/build.xml Mon Jul 14 01:11:23 2008 +0530
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,8 +0,0 @@
1.4 -<?xml version="1.0" encoding="UTF-8"?>
1.5 -<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
1.6 -<!-- for some information on what you could do (e.g. targets to override). -->
1.7 -<!-- If you delete this file and reopen the project it will be recreated. -->
1.8 -<project name="org.netbeans.modules.wsdlextensions.email" default="netbeans" basedir=".">
1.9 - <description>Builds, tests, and runs the project org.netbeans.modules.wsdlextensions.email.</description>
1.10 - <import file="../../nbbuild/templates/projectized.xml"/>
1.11 -</project>
2.1 --- a/wsdlextensions.email/manifest.mf Mon Jul 14 01:11:23 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.email
2.6 -OpenIDE-Module-Layer: org/netbeans/modules/wsdlextensions/email/resources/layer.xml
2.7 -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/wsdlextensions/email/resources/Bundle.properties
2.8 -OpenIDE-Module-Specification-Version: 1.0
2.9 -
3.1 --- a/wsdlextensions.email/nbproject/genfiles.properties Mon Jul 14 01:11:23 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=f7f46c9a
3.5 -build.xml.script.CRC32=5cef5850
3.6 -build.xml.stylesheet.CRC32=05353c81
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=f7f46c9a
3.10 -nbproject/build-impl.xml.script.CRC32=9bf32dbe
3.11 -nbproject/build-impl.xml.stylesheet.CRC32=3f8b4615
4.1 --- a/wsdlextensions.email/nbproject/platform.properties Mon Jul 14 01:11:23 2008 +0530
4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
4.3 @@ -1,20 +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 -nbplatform.active=default
5.1 --- a/wsdlextensions.email/nbproject/project.properties Mon Jul 14 01:11:23 2008 +0530
5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
5.3 @@ -1,54 +0,0 @@
5.4 -#
5.5 -# The contents of this file are subject to the terms of the Common Development
5.6 -# and Distribution License (the License). You may not use this file except in
5.7 -# compliance with the License.
5.8 -#
5.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
5.10 -# or http://www.netbeans.org/cddl.txt.
5.11 -#
5.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
5.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
5.14 -# If applicable, add the following below the CDDL Header, with the fields
5.15 -# enclosed by brackets [] replaced by your own identifying information:
5.16 -# "Portions Copyrighted [year] [name of copyright owner]"
5.17 -#
5.18 -# The Original Software is NetBeans. The Initial Developer of the Original
5.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
5.20 -# Microsystems, Inc. All Rights Reserved.
5.21 -#
5.22 -
5.23 -javac.compilerargs=-Xlint:unchecked
5.24 -javac.source=1.5
5.25 -
5.26 -file.reference.emailbc-src=src
5.27 -file.reference.emailbc-test=test
5.28 -
5.29 -src.dir=${file.reference.emailbc-src}
5.30 -test.src.dir=${file.reference.emailbc-test}
5.31 -test.unit.cp.extra=\
5.32 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-xdm.jar:\
5.33 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-xam.jar:\
5.34 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-retriever.jar:\
5.35 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-schema-model.jar:\
5.36 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-wsdl-model.jar:\
5.37 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor.jar:\
5.38 - ${netbeans.dest.dir}/platform6/lib/org-openide-modules.jar:\
5.39 - ${netbeans.dest.dir}/platform6/lib/org-openide-util.jar:\
5.40 - ${netbeans.dest.dir}/platform6/modules/org-openide-options.jar:\
5.41 - ${netbeans.dest.dir}/platform6/modules/org-openide-text.jar:\
5.42 - ${netbeans.dest.dir}/platform6/modules/org-openide-nodes.jar:\
5.43 - ${netbeans.dest.dir}/platform6/modules/org-openide-loaders.jar:\
5.44 - ${netbeans.dest.dir}/platform6/modules/org-openide-dialogs.jar:\
5.45 - ${netbeans.dest.dir}/platform6/modules/org-openide-windows.jar:\
5.46 - ${netbeans.dest.dir}/platform6/modules/org-openide-awt.jar:\
5.47 - ${netbeans.dest.dir}/platform6/modules/org-netbeans-modules-masterfs.jar:\
5.48 - ${netbeans.dest.dir}/platform6/core/org-openide-filesystems.jar:\
5.49 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-projectapi.jar:\
5.50 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor-util.jar:\
5.51 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-text.jar:\
5.52 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-core.jar:\
5.53 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor-lib.jar:\
5.54 - ${netbeans.dest.dir}/ide7/modules/org-apache-xml-resolver.jar:\
5.55 - ${netbeans.dest.dir}/soa1/modules/org-netbeans-modules-wsdlextensions-email.jar
5.56 -
5.57 -test.unit.run.cp=${test.unit.cp.extra}
6.1 --- a/wsdlextensions.email/nbproject/project.xml Mon Jul 14 01:11:23 2008 +0530
6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
6.3 @@ -1,73 +0,0 @@
6.4 -<?xml version="1.0" encoding="UTF-8"?>
6.5 -<!--
6.6 - The contents of this file are subject to the terms of the Common Development
6.7 - and Distribution License (the License). You may not use this file except in
6.8 - compliance with the License.
6.9 -
6.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
6.11 - or http://www.netbeans.org/cddl.txt.
6.12 -
6.13 - When distributing Covered Code, include this CDDL Header Notice in each file
6.14 - and include the License file at http://www.netbeans.org/cddl.txt.
6.15 - If applicable, add the following below the CDDL Header, with the fields
6.16 - enclosed by brackets [] replaced by your own identifying information:
6.17 - "Portions Copyrighted [year] [name of copyright owner]"
6.18 -
6.19 - The Original Software is NetBeans. The Initial Developer of the Original
6.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
6.21 - Microsystems, Inc. All Rights Reserved.
6.22 --->
6.23 -<project xmlns="http://www.netbeans.org/ns/project/1">
6.24 - <type>org.netbeans.modules.apisupport.project</type>
6.25 - <configuration>
6.26 - <data xmlns="http://www.netbeans.org/ns/nb-module-project/2">
6.27 - <code-name-base>org.netbeans.modules.wsdlextensions.email</code-name-base>
6.28 - <module-dependencies>
6.29 - <dependency>
6.30 - <code-name-base>org.netbeans.modules.xml.schema.model</code-name-base>
6.31 - <build-prerequisite/>
6.32 - <compile-dependency/>
6.33 - <run-dependency>
6.34 - <release-version>1</release-version>
6.35 - <specification-version>1.1.21</specification-version>
6.36 - </run-dependency>
6.37 - </dependency>
6.38 - <dependency>
6.39 - <code-name-base>org.netbeans.modules.xml.wsdl.model</code-name-base>
6.40 - <build-prerequisite/>
6.41 - <compile-dependency/>
6.42 - <run-dependency>
6.43 - <release-version>1</release-version>
6.44 - <specification-version>1.1.21</specification-version>
6.45 - </run-dependency>
6.46 - </dependency>
6.47 - <dependency>
6.48 - <code-name-base>org.netbeans.modules.xml.wsdl.bindingsupport.api</code-name-base>
6.49 - <build-prerequisite/>
6.50 - <compile-dependency/>
6.51 - <run-dependency>
6.52 - <specification-version>1.0</specification-version>
6.53 - </run-dependency>
6.54 - </dependency>
6.55 - <dependency>
6.56 - <code-name-base>org.netbeans.modules.xml.xam</code-name-base>
6.57 - <build-prerequisite/>
6.58 - <compile-dependency/>
6.59 - <run-dependency>
6.60 - <release-version>1</release-version>
6.61 - <specification-version>1.2</specification-version>
6.62 - </run-dependency>
6.63 - </dependency>
6.64 - <dependency>
6.65 - <code-name-base>org.openide.util</code-name-base>
6.66 - <build-prerequisite/>
6.67 - <compile-dependency/>
6.68 - <run-dependency>
6.69 - <specification-version>6.8.22</specification-version>
6.70 - </run-dependency>
6.71 - </dependency>
6.72 - </module-dependencies>
6.73 - <public-packages/>
6.74 - </data>
6.75 - </configuration>
6.76 -</project>
7.1 --- a/wsdlextensions.email/src/META-INF/services/org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider Mon Jul 14 01:11:23 2008 +0530
7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
7.3 @@ -1,1 +0,0 @@
7.4 -org.netbeans.modules.wsdlextensions.email.template.EmailTemplateProvider
7.5 \ No newline at end of file
8.1 --- a/wsdlextensions.email/src/META-INF/services/org.netbeans.modules.xml.wsdl.model.spi.ElementFactory Mon Jul 14 01:11:23 2008 +0530
8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
8.3 @@ -1,8 +0,0 @@
8.4 -org.netbeans.modules.wsdlextensions.email.impl.EMAILElementFactoryProvider$IMAPAddressFactory
8.5 -org.netbeans.modules.wsdlextensions.email.impl.EMAILElementFactoryProvider$IMAPBindingFactory
8.6 -org.netbeans.modules.wsdlextensions.email.impl.EMAILElementFactoryProvider$IMAPOperationFactory
8.7 -org.netbeans.modules.wsdlextensions.email.impl.EMAILElementFactoryProvider$IMAPInputFactory
8.8 -org.netbeans.modules.wsdlextensions.email.impl.EMAILElementFactoryProvider$POP3AddressFactory
8.9 -org.netbeans.modules.wsdlextensions.email.impl.EMAILElementFactoryProvider$POP3BindingFactory
8.10 -org.netbeans.modules.wsdlextensions.email.impl.EMAILElementFactoryProvider$POP3OperationFactory
8.11 -org.netbeans.modules.wsdlextensions.email.impl.EMAILElementFactoryProvider$POP3InputFactory
9.1 --- a/wsdlextensions.email/src/META-INF/services/org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory Mon Jul 14 01:11:23 2008 +0530
9.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
9.3 @@ -1,1 +0,0 @@
9.4 -org.netbeans.modules.wsdlextensions.email.validator.EmailValidatorSchemaFactory
10.1 --- a/wsdlextensions.email/src/META-INF/services/org.netbeans.modules.xml.xam.spi.Validator Mon Jul 14 01:11:23 2008 +0530
10.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
10.3 @@ -1,2 +0,0 @@
10.4 -org.netbeans.modules.wsdlextensions.email.validator.EMAILComponentValidator
10.5 -
11.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/imap/IMAPAddress.java Mon Jul 14 01:11:23 2008 +0530
11.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
11.3 @@ -1,37 +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.email.imap;
11.24 -
11.25 -//import org.netbeans.modules.wsdlextensions.email.validator.EMAILAddressURL;
11.26 -
11.27 -/**
11.28 - *
11.29 - * Represents the address element under the wsdl port for EMAIL binding
11.30 - * @author Sainath Adiraju
11.31 -*/
11.32 -public interface IMAPAddress extends IMAPComponent {
11.33 - public static final String ATTR_LOCATION = "location";
11.34 -
11.35 - // Attribute names
11.36 - public static final String ATTR_EMAILSERVER = "emailserver";
11.37 -
11.38 - public void setEMAILServer(String val);
11.39 - public String getEMAILServer();
11.40 -}
12.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/imap/IMAPBinding.java Mon Jul 14 01:11:23 2008 +0530
12.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
12.3 @@ -1,27 +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 -package org.netbeans.modules.wsdlextensions.email.imap;
12.24 -
12.25 -/**
12.26 - * @author Sainath.Adiraju
12.27 - *
12.28 - */
12.29 -public interface IMAPBinding extends IMAPComponent {
12.30 -}
13.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/imap/IMAPComponent.java Mon Jul 14 01:11:23 2008 +0530
13.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
13.3 @@ -1,40 +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.email.imap;
13.23 -
13.24 -import org.netbeans.modules.xml.wsdl.model.ExtensibilityElement;
13.25 -import org.netbeans.modules.xml.wsdl.model.OperationParameter;
13.26 -
13.27 -/**
13.28 - * @author Sainath Adiraju
13.29 - *
13.30 - */
13.31 -public interface IMAPComponent extends ExtensibilityElement {
13.32 -
13.33 - public interface Visitor {
13.34 - void visit(IMAPAddress target);
13.35 - void visit(IMAPBinding target);
13.36 - void visit(IMAPOperation target);
13.37 - void visit(IMAPInput target);
13.38 - // void visit(EMAILInput target, OperationParameter opParam);
13.39 - }
13.40 -
13.41 - void accept(Visitor visitor);
13.42 - //void accept(Visitor visitor,OperationParameter opParam);
13.43 -}
14.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/imap/IMAPInput.java Mon Jul 14 01:11:23 2008 +0530
14.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
14.3 @@ -1,77 +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-2006 Sun
14.20 - * Microsystems, Inc. All Rights Reserved.
14.21 - */
14.22 -
14.23 -package org.netbeans.modules.wsdlextensions.email.imap;
14.24 -
14.25 -/**
14.26 -* @author Sainath Adiraju
14.27 -*/
14.28 - public interface IMAPInput extends IMAPComponent{
14.29 -
14.30 - public static final String EMAIL_MESSAGE = "messageName";
14.31 - public static final String EMAIL_SUBJECT = "subjectName";
14.32 - public static final String EMAIL_FROM = "from";
14.33 - public static final String EMAIL_CHARSET = "charset";
14.34 - public static final String EMAIL_TO = "to";
14.35 - public static final String EMAIL_CC = "cc";
14.36 - public static final String EMAIL_BCC = "bcc";
14.37 - public static final String EMAIL_USE = "use";
14.38 - public static final String EMAIL_ENCSTYLE = "encodingStyle";
14.39 -
14.40 - public String getCharSet();
14.41 -
14.42 - public void setCharSet();
14.43 -
14.44 - public String getFrom();
14.45 -
14.46 - public void setFrom();
14.47 -
14.48 - public String getMessageName();
14.49 -
14.50 - public void setMessageName();
14.51 -
14.52 - public String getSubjectName();
14.53 -
14.54 - public void setSubjectName();
14.55 -
14.56 - public void setTo();
14.57 -
14.58 - public String getTo();
14.59 -
14.60 - public void setCc();
14.61 -
14.62 - public String getCc();
14.63 -
14.64 - public void setBcc();
14.65 -
14.66 - public String getBcc();
14.67 -
14.68 - public String getUse();
14.69 -
14.70 - public void setUse();
14.71 -
14.72 - public String getEncodingStyle();
14.73 -
14.74 - public void setEncodingStyle();
14.75 -
14.76 -
14.77 -
14.78 -
14.79 -}
14.80 -
15.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/imap/IMAPOperation.java Mon Jul 14 01:11:23 2008 +0530
15.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
15.3 @@ -1,27 +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.email.imap;
15.24 -
15.25 -/**
15.26 - * @author Sainath Adiraju
15.27 - *
15.28 - */
15.29 -public interface IMAPOperation extends IMAPComponent {
15.30 -}
16.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/imap/IMAPQName.java Mon Jul 14 01:11:23 2008 +0530
16.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
16.3 @@ -1,64 +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 -package org.netbeans.modules.wsdlextensions.email.imap;
16.24 -
16.25 -import java.util.HashSet;
16.26 -import java.util.Set;
16.27 -import javax.xml.namespace.QName;
16.28 -
16.29 -/**
16.30 - * @author Sainath Adiraju
16.31 - *
16.32 - */
16.33 -public enum IMAPQName {
16.34 - ADDRESS(createIMAPQName("IMAPaddress")),
16.35 - BINDING(createIMAPQName("IMAPbinding")),
16.36 - OPERATION(createIMAPQName("IMAPoperation")),
16.37 - INPUT(createIMAPQName("IMAPinput"));
16.38 -
16.39 -
16.40 - public static final String EMAIL_NS_URI = "http://schemas.sun.com/jbi/wsdl-extensions/email/";
16.41 - public static final String EMAIL_NS_PREFIX = "email";
16.42 -
16.43 - public static QName createIMAPQName(String localName){
16.44 - return new QName(EMAIL_NS_URI, localName, EMAIL_NS_PREFIX);
16.45 - }
16.46 -
16.47 - IMAPQName(QName name) {
16.48 - qName = name;
16.49 - }
16.50 -
16.51 - public QName getQName(){
16.52 - return qName;
16.53 - }
16.54 -
16.55 - private static Set<QName> qnames = null;
16.56 - public static Set<QName> getQNames() {
16.57 - if (qnames == null) {
16.58 - qnames = new HashSet<QName>();
16.59 - for (IMAPQName wq : values()) {
16.60 - qnames.add(wq.getQName());
16.61 - }
16.62 - }
16.63 - return qnames;
16.64 - }
16.65 -
16.66 - private final QName qName;
16.67 -}
17.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/EMAILAttribute.java Mon Jul 14 01:11:23 2008 +0530
17.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
17.3 @@ -1,76 +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-2006 Sun
17.20 - * Microsystems, Inc. All Rights Reserved.
17.21 - */
17.22 -
17.23 -package org.netbeans.modules.wsdlextensions.email.impl;
17.24 -
17.25 -import java.util.Collection;
17.26 -import org.netbeans.modules.xml.xam.dom.Attribute;
17.27 -
17.28 -/**
17.29 - * @author Sainath Adiraju
17.30 - *
17.31 - */
17.32 -public enum EMAILAttribute implements Attribute {
17.33 -
17.34 - EMAIL_MESSAGE_NAME("message"),
17.35 - EMAIL_SUBJECT_NAME("subject"),
17.36 - EMAIL_FROM_NAME("from"),
17.37 - EMAIL_CHARSET_NAME("charset"),
17.38 - EMAIL_TO_NAME("to"),
17.39 - EMAIL_CC_NAME("cc"),
17.40 - EMAIL_BCC_NAME("bcc"),
17.41 - EMAIL_USE_NAME("use"),
17.42 - EMAIL_ENCODING_STYLE("encodingStyle"),
17.43 - EMAIL_RECIEVER_LOCATIONURL("location"),
17.44 - EMAIL_SERVER_NAME("emailserver");
17.45 -
17.46 -
17.47 -
17.48 - private String name;
17.49 - private Class type;
17.50 - private Class subtype;
17.51 -
17.52 - EMAILAttribute(String name) {
17.53 - this(name, String.class);
17.54 - }
17.55 -
17.56 - EMAILAttribute(String name, Class type) {
17.57 - this(name, type, null);
17.58 - }
17.59 -
17.60 - EMAILAttribute(String name, Class type, Class subtype) {
17.61 - this.name = name;
17.62 - this.type = type;
17.63 - this.subtype = subtype;
17.64 - }
17.65 -
17.66 - public String toString() {
17.67 - return name;
17.68 - }
17.69 -
17.70 - public Class getType() {
17.71 - return type;
17.72 - }
17.73 -
17.74 - public String getName() {
17.75 - return name;
17.76 - }
17.77 -
17.78 - public Class getMemberType() { return subtype; }
17.79 -}
18.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/EMAILElementFactoryProvider.java Mon Jul 14 01:11:23 2008 +0530
18.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
18.3 @@ -1,119 +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.email.impl;
18.24 -
18.25 -import java.util.ArrayList;
18.26 -import java.util.Collection;
18.27 -import java.util.Collections;
18.28 -import java.util.Set;
18.29 -import javax.xml.namespace.QName;
18.30 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
18.31 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPQName;
18.32 -import org.netbeans.modules.wsdlextensions.email.impl.imap.IMAPBindingImpl;
18.33 -import org.netbeans.modules.wsdlextensions.email.impl.imap.IMAPAddressImpl;
18.34 -import org.netbeans.modules.wsdlextensions.email.impl.imap.IMAPInputImpl;
18.35 -import org.netbeans.modules.wsdlextensions.email.impl.imap.IMAPOperationImpl;
18.36 -import org.netbeans.modules.wsdlextensions.email.impl.pop3.POP3AddressImpl;
18.37 -import org.netbeans.modules.wsdlextensions.email.impl.pop3.POP3BindingImpl;
18.38 -import org.netbeans.modules.wsdlextensions.email.impl.pop3.POP3InputImpl;
18.39 -import org.netbeans.modules.wsdlextensions.email.impl.pop3.POP3OperationImpl;
18.40 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3QName;
18.41 -import org.netbeans.modules.xml.wsdl.model.spi.ElementFactory;
18.42 -import org.w3c.dom.Element;
18.43 -
18.44 -/**
18.45 -** @author Sainath Adiraju
18.46 -*/
18.47 -public class EMAILElementFactoryProvider {
18.48 -
18.49 - public static class IMAPBindingFactory extends ElementFactory {
18.50 - public Set<QName> getElementQNames() {
18.51 - return Collections.singleton(IMAPQName.BINDING.getQName());
18.52 - }
18.53 - public WSDLComponent create(WSDLComponent context, Element element) {
18.54 - return new IMAPBindingImpl(context.getModel(), element);
18.55 - }
18.56 - }
18.57 -
18.58 - public static class POP3BindingFactory extends ElementFactory {
18.59 - public Set<QName> getElementQNames() {
18.60 - return Collections.singleton(POP3QName.BINDING.getQName());
18.61 - }
18.62 - public WSDLComponent create(WSDLComponent context, Element element) {
18.63 - return new POP3BindingImpl(context.getModel(), element);
18.64 - }
18.65 - }
18.66 -
18.67 - public static class IMAPAddressFactory extends ElementFactory {
18.68 - public Set<QName> getElementQNames() {
18.69 - return Collections.singleton(IMAPQName.ADDRESS.getQName());
18.70 - }
18.71 - public WSDLComponent create(WSDLComponent context, Element element) {
18.72 - return new IMAPAddressImpl(context.getModel(), element);
18.73 - }
18.74 - }
18.75 -
18.76 - public static class POP3AddressFactory extends ElementFactory {
18.77 - public Set<QName> getElementQNames() {
18.78 - return Collections.singleton(POP3QName.ADDRESS.getQName());
18.79 - }
18.80 - public WSDLComponent create(WSDLComponent context, Element element) {
18.81 - return new POP3AddressImpl(context.getModel(), element);
18.82 - }
18.83 - }
18.84 -
18.85 - public static class IMAPOperationFactory extends ElementFactory{
18.86 - public Set<QName> getElementQNames() {
18.87 - return Collections.singleton(IMAPQName.OPERATION.getQName());
18.88 - }
18.89 - public WSDLComponent create(WSDLComponent context, Element element) {
18.90 - return new IMAPOperationImpl(context.getModel(), element);
18.91 - }
18.92 - }
18.93 -
18.94 - public static class POP3OperationFactory extends ElementFactory{
18.95 - public Set<QName> getElementQNames() {
18.96 - return Collections.singleton(POP3QName.OPERATION.getQName());
18.97 - }
18.98 - public WSDLComponent create(WSDLComponent context, Element element) {
18.99 - return new POP3OperationImpl(context.getModel(), element);
18.100 - }
18.101 - }
18.102 -
18.103 - public static class IMAPInputFactory extends ElementFactory{
18.104 - public Set<QName> getElementQNames() {
18.105 - return Collections.singleton(IMAPQName.INPUT.getQName());
18.106 - }
18.107 - public WSDLComponent create(WSDLComponent context, Element element) {
18.108 - return new IMAPInputImpl(context.getModel(), element);
18.109 - }
18.110 - }
18.111 -
18.112 - public static class POP3InputFactory extends ElementFactory{
18.113 - public Set<QName> getElementQNames() {
18.114 - return Collections.singleton(POP3QName.INPUT.getQName());
18.115 - }
18.116 - public WSDLComponent create(WSDLComponent context, Element element) {
18.117 - return new POP3InputImpl(context.getModel(), element);
18.118 - }
18.119 - }
18.120 -
18.121 - }
18.122 -
19.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/imap/IMAPAddressImpl.java Mon Jul 14 01:11:23 2008 +0530
19.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
19.3 @@ -1,56 +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 -package org.netbeans.modules.wsdlextensions.email.impl.imap;
19.24 -
19.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
19.26 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPAddress;
19.27 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPComponent;
19.28 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPQName;
19.29 -//import org.netbeans.modules.wsdlextensions.email.validator.EMAILAddressURL;
19.30 -import org.netbeans.modules.wsdlextensions.email.impl.EMAILAttribute;
19.31 -import org.w3c.dom.Element;
19.32 -
19.33 -/**
19.34 - *
19.35 - * @author Sainath Adiraju
19.36 - */
19.37 -
19.38 -public class IMAPAddressImpl extends IMAPComponentImpl implements IMAPAddress {
19.39 - public IMAPAddressImpl(WSDLModel model, Element e) {
19.40 - super(model, e);
19.41 - }
19.42 -
19.43 - public IMAPAddressImpl(WSDLModel model){
19.44 - this(model, createPrefixedElement(IMAPQName.ADDRESS.getQName(), model));
19.45 - }
19.46 -
19.47 - public void accept(IMAPComponent.Visitor visitor) {
19.48 - visitor.visit(this);
19.49 - }
19.50 -
19.51 -
19.52 - public String getEMAILServer() {
19.53 - return getAttribute(IMAPAddress.ATTR_EMAILSERVER);
19.54 - }
19.55 -
19.56 - public void setEMAILServer(String val) {
19.57 - setAttribute(IMAPAddress.ATTR_EMAILSERVER, EMAILAttribute.EMAIL_SERVER_NAME, val);
19.58 - }
19.59 -}
20.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/imap/IMAPBindingImpl.java Mon Jul 14 01:11:23 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 -
20.24 -package org.netbeans.modules.wsdlextensions.email.impl.imap;
20.25 -
20.26 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
20.27 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPBinding;
20.28 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPComponent;
20.29 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPQName;
20.30 -import org.w3c.dom.Element;
20.31 -
20.32 -/**
20.33 - * @author Sainath Adiraju
20.34 - *
20.35 - */
20.36 -public class IMAPBindingImpl extends IMAPComponentImpl implements IMAPBinding {
20.37 - public IMAPBindingImpl(WSDLModel model, Element e) {
20.38 - super(model, e);
20.39 - }
20.40 -
20.41 - public IMAPBindingImpl(WSDLModel model){
20.42 - this(model, createPrefixedElement(IMAPQName.BINDING.getQName(), model));
20.43 - }
20.44 -
20.45 - public void accept(IMAPComponent.Visitor visitor) {
20.46 - visitor.visit(this);
20.47 - }
20.48 -}
21.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/imap/IMAPComponentImpl.java Mon Jul 14 01:11:23 2008 +0530
21.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
21.3 @@ -1,39 +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.email.impl.imap;
21.24 -
21.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
21.26 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPComponent;
21.27 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPQName;
21.28 -import org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement;
21.29 -import org.w3c.dom.Element;
21.30 -
21.31 -/**
21.32 -* @author Sainath Adiraju
21.33 -*/
21.34 -public abstract class IMAPComponentImpl extends GenericExtensibilityElement implements IMAPComponent {
21.35 - public IMAPComponentImpl(WSDLModel model, Element e) {
21.36 - super(model, e);
21.37 - }
21.38 -
21.39 - protected String getNamespaceURI() {
21.40 - return IMAPQName.EMAIL_NS_URI;
21.41 - }
21.42 -}
22.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/imap/IMAPInputImpl.java Mon Jul 14 01:11:23 2008 +0530
22.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
22.3 @@ -1,122 +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-2006 Sun
22.20 - * Microsystems, Inc. All Rights Reserved.
22.21 - */
22.22 -
22.23 -package org.netbeans.modules.wsdlextensions.email.impl.imap;
22.24 -
22.25 -import java.util.Collection;
22.26 -import org.netbeans.modules.xml.wsdl.model.Binding;
22.27 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
22.28 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
22.29 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPComponent;
22.30 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPInput;
22.31 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPQName;
22.32 -import org.netbeans.modules.wsdlextensions.email.impl.EMAILAttribute;
22.33 -import org.netbeans.modules.xml.wsdl.model.OperationParameter;
22.34 -import org.w3c.dom.Element;
22.35 -
22.36 -/**
22.37 - * @author Sainath Adiraju
22.38 - */
22.39 -public class IMAPInputImpl extends IMAPComponentImpl implements IMAPInput {
22.40 -
22.41 - public IMAPInputImpl(WSDLModel model, Element e) {
22.42 - super(model, e);
22.43 - }
22.44 -
22.45 - public IMAPInputImpl(WSDLModel model){
22.46 - this(model, createPrefixedElement(IMAPQName.INPUT.getQName(), model));
22.47 - }
22.48 -
22.49 - public void accept(IMAPComponent.Visitor visitor) {
22.50 - visitor.visit(this);
22.51 - }
22.52 -
22.53 - public String getMessageName() {
22.54 - return getAttribute(EMAILAttribute.EMAIL_MESSAGE_NAME);
22.55 - }
22.56 -
22.57 - public void setMessageName() {
22.58 - setAttribute(IMAPInput.EMAIL_MESSAGE, EMAILAttribute.EMAIL_MESSAGE_NAME, "message");
22.59 - }
22.60 -
22.61 - public String getSubjectName() {
22.62 - return getAttribute(EMAILAttribute.EMAIL_SUBJECT_NAME);
22.63 - }
22.64 -
22.65 - public void setSubjectName() {
22.66 - setAttribute(IMAPInput.EMAIL_SUBJECT, EMAILAttribute.EMAIL_SUBJECT_NAME, "subject");
22.67 - }
22.68 -
22.69 - public String getFrom() {
22.70 - return getAttribute(EMAILAttribute.EMAIL_FROM_NAME);
22.71 - }
22.72 -
22.73 - public void setFrom() {
22.74 - setAttribute(IMAPInput.EMAIL_FROM, EMAILAttribute.EMAIL_FROM_NAME, "from");
22.75 - }
22.76 -
22.77 - public String getCharSet() {
22.78 - return getAttribute(EMAILAttribute.EMAIL_CHARSET_NAME);
22.79 - }
22.80 -
22.81 - public void setCharSet() {
22.82 - setAttribute(IMAPInput.EMAIL_CHARSET, EMAILAttribute.EMAIL_CHARSET_NAME, "charset");
22.83 - }
22.84 -
22.85 - public void setTo(){
22.86 - setAttribute(IMAPInput.EMAIL_TO, EMAILAttribute.EMAIL_TO_NAME, "to");
22.87 - }
22.88 -
22.89 - public String getTo(){
22.90 - return getAttribute(EMAILAttribute.EMAIL_TO_NAME);
22.91 - }
22.92 -
22.93 - public void setCc(){
22.94 - setAttribute(IMAPInput.EMAIL_CC, EMAILAttribute.EMAIL_CC_NAME, "cc");
22.95 - }
22.96 -
22.97 - public String getCc(){
22.98 - return getAttribute(EMAILAttribute.EMAIL_CC_NAME);
22.99 - }
22.100 -
22.101 - public void setBcc(){
22.102 - setAttribute(IMAPInput.EMAIL_BCC, EMAILAttribute.EMAIL_BCC_NAME, "bcc");
22.103 - }
22.104 -
22.105 - public String getBcc(){
22.106 - return getAttribute(EMAILAttribute.EMAIL_BCC_NAME);
22.107 - }
22.108 -
22.109 - public String getUse(){
22.110 - return getAttribute(EMAILAttribute.EMAIL_USE_NAME);
22.111 - }
22.112 -
22.113 - public void setUse(){
22.114 - setAttribute(IMAPInput.EMAIL_USE, EMAILAttribute.EMAIL_USE_NAME, "use");
22.115 - }
22.116 -
22.117 - public String getEncodingStyle(){
22.118 - return getAttribute(EMAILAttribute.EMAIL_ENCODING_STYLE);
22.119 - }
22.120 -
22.121 - public void setEncodingStyle(){
22.122 - setAttribute(IMAPInput.EMAIL_ENCSTYLE, EMAILAttribute.EMAIL_USE_NAME, "encodingStyle");
22.123 - }
22.124 -
22.125 -}
23.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/imap/IMAPOperationImpl.java Mon Jul 14 01:11:23 2008 +0530
23.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
23.3 @@ -1,50 +0,0 @@
23.4 -/*
23.5 - * The contents of this file are subject to the terms of the Common Development
23.6 - * and Distribution License (the License). You may not use this file except in
23.7 - * compliance with the License.
23.8 - *
23.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
23.10 - * or http://www.netbeans.org/cddl.txt.
23.11 - *
23.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
23.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
23.14 - * If applicable, add the following below the CDDL Header, with the fields
23.15 - * enclosed by brackets [] replaced by your own identifying information:
23.16 - * "Portions Copyrighted [year] [name of copyright owner]"
23.17 - *
23.18 - * The Original Software is NetBeans. The Initial Developer of the Original
23.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
23.20 - * Microsystems, Inc. All Rights Reserved.
23.21 - */
23.22 -
23.23 -package org.netbeans.modules.wsdlextensions.email.impl.imap;
23.24 -
23.25 -import java.util.Collection;
23.26 -import org.netbeans.modules.xml.wsdl.model.Binding;
23.27 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
23.28 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
23.29 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPBinding;
23.30 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPComponent;
23.31 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPOperation;
23.32 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPQName;
23.33 -import org.w3c.dom.Element;
23.34 -
23.35 -/**
23.36 - * @author Sainath Adiraju
23.37 - *
23.38 - */
23.39 -public class IMAPOperationImpl extends IMAPComponentImpl implements IMAPOperation {
23.40 -
23.41 - public IMAPOperationImpl(WSDLModel model, Element e) {
23.42 - super(model, e);
23.43 - }
23.44 -
23.45 - public IMAPOperationImpl(WSDLModel model){
23.46 - this(model, createPrefixedElement(IMAPQName.OPERATION.getQName(), model));
23.47 - }
23.48 -
23.49 - public void accept(IMAPComponent.Visitor visitor) {
23.50 - visitor.visit(this);
23.51 - }
23.52 -
23.53 -}
24.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/pop3/POP3AddressImpl.java Mon Jul 14 01:11:23 2008 +0530
24.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
24.3 @@ -1,56 +0,0 @@
24.4 -/*
24.5 - * The contents of this file are subject to the terms of the Common Development
24.6 - * and Distribution License (the License). You may not use this file except in
24.7 - * compliance with the License.
24.8 - *
24.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
24.10 - * or http://www.netbeans.org/cddl.txt.
24.11 - *
24.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
24.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
24.14 - * If applicable, add the following below the CDDL Header, with the fields
24.15 - * enclosed by brackets [] replaced by your own identifying information:
24.16 - * "Portions Copyrighted [year] [name of copyright owner]"
24.17 - *
24.18 - * The Original Software is NetBeans. The Initial Developer of the Original
24.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
24.20 - * Microsystems, Inc. All Rights Reserved.
24.21 - */
24.22 -
24.23 -package org.netbeans.modules.wsdlextensions.email.impl.pop3;
24.24 -
24.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
24.26 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Address;
24.27 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Component;
24.28 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3QName;
24.29 -import org.netbeans.modules.wsdlextensions.email.impl.EMAILAttribute;
24.30 -//import org.netbeans.modules.wsdlextensions.email.validator.EMAILAddressURL;
24.31 -import org.w3c.dom.Element;
24.32 -
24.33 -/**
24.34 - *
24.35 - * @author Sainath Adiraju
24.36 - */
24.37 -
24.38 -public class POP3AddressImpl extends POP3ComponentImpl implements POP3Address {
24.39 - public POP3AddressImpl(WSDLModel model, Element e) {
24.40 - super(model, e);
24.41 - }
24.42 -
24.43 - public POP3AddressImpl(WSDLModel model){
24.44 - this(model, createPrefixedElement(POP3QName.ADDRESS.getQName(), model));
24.45 - }
24.46 -
24.47 - public void accept(POP3Component.Visitor visitor) {
24.48 - visitor.visit(this);
24.49 - }
24.50 -
24.51 -
24.52 - public String getEMAILServer() {
24.53 - return getAttribute(POP3Address.ATTR_EMAILSERVER);
24.54 - }
24.55 -
24.56 - public void setEMAILServer(String val) {
24.57 - setAttribute(POP3Address.ATTR_EMAILSERVER, EMAILAttribute.EMAIL_SERVER_NAME, val);
24.58 - }
24.59 -}
25.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/pop3/POP3BindingImpl.java Mon Jul 14 01:11:23 2008 +0530
25.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
25.3 @@ -1,45 +0,0 @@
25.4 -/*
25.5 - * The contents of this file are subject to the terms of the Common Development
25.6 - * and Distribution License (the License). You may not use this file except in
25.7 - * compliance with the License.
25.8 - *
25.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
25.10 - * or http://www.netbeans.org/cddl.txt.
25.11 - *
25.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
25.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
25.14 - * If applicable, add the following below the CDDL Header, with the fields
25.15 - * enclosed by brackets [] replaced by your own identifying information:
25.16 - * "Portions Copyrighted [year] [name of copyright owner]"
25.17 - *
25.18 - * The Original Software is NetBeans. The Initial Developer of the Original
25.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
25.20 - * Microsystems, Inc. All Rights Reserved.
25.21 - */
25.22 -
25.23 -
25.24 -package org.netbeans.modules.wsdlextensions.email.impl.pop3;
25.25 -
25.26 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
25.27 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Binding;
25.28 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Component;
25.29 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3QName;
25.30 -import org.w3c.dom.Element;
25.31 -
25.32 -/**
25.33 - * @author Sainath Adiraju
25.34 - *
25.35 - */
25.36 -public class POP3BindingImpl extends POP3ComponentImpl implements POP3Binding {
25.37 - public POP3BindingImpl(WSDLModel model, Element e) {
25.38 - super(model, e);
25.39 - }
25.40 -
25.41 - public POP3BindingImpl(WSDLModel model){
25.42 - this(model, createPrefixedElement(POP3QName.BINDING.getQName(), model));
25.43 - }
25.44 -
25.45 - public void accept(POP3Component.Visitor visitor) {
25.46 - visitor.visit(this);
25.47 - }
25.48 -}
26.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/pop3/POP3ComponentImpl.java Mon Jul 14 01:11:23 2008 +0530
26.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
26.3 @@ -1,39 +0,0 @@
26.4 -/*
26.5 - * The contents of this file are subject to the terms of the Common Development
26.6 - * and Distribution License (the License). You may not use this file except in
26.7 - * compliance with the License.
26.8 - *
26.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
26.10 - * or http://www.netbeans.org/cddl.txt.
26.11 - *
26.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
26.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
26.14 - * If applicable, add the following below the CDDL Header, with the fields
26.15 - * enclosed by brackets [] replaced by your own identifying information:
26.16 - * "Portions Copyrighted [year] [name of copyright owner]"
26.17 - *
26.18 - * The Original Software is NetBeans. The Initial Developer of the Original
26.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
26.20 - * Microsystems, Inc. All Rights Reserved.
26.21 - */
26.22 -
26.23 -package org.netbeans.modules.wsdlextensions.email.impl.pop3;
26.24 -
26.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
26.26 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Component;
26.27 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3QName;
26.28 -import org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement;
26.29 -import org.w3c.dom.Element;
26.30 -
26.31 -/**
26.32 -* @author Sainath Adiraju
26.33 -*/
26.34 -public abstract class POP3ComponentImpl extends GenericExtensibilityElement implements POP3Component {
26.35 - public POP3ComponentImpl(WSDLModel model, Element e) {
26.36 - super(model, e);
26.37 - }
26.38 -
26.39 - protected String getNamespaceURI() {
26.40 - return POP3QName.EMAIL_NS_URI;
26.41 - }
26.42 -}
27.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/pop3/POP3InputImpl.java Mon Jul 14 01:11:23 2008 +0530
27.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
27.3 @@ -1,98 +0,0 @@
27.4 -/*
27.5 - * The contents of this file are subject to the terms of the Common Development
27.6 - * and Distribution License (the License). You may not use this file except in
27.7 - * compliance with the License.
27.8 - *
27.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
27.10 - * or http://www.netbeans.org/cddl.txt.
27.11 - *
27.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
27.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
27.14 - * If applicable, add the following below the CDDL Header, with the fields
27.15 - * enclosed by brackets [] replaced by your own identifying information:
27.16 - * "Portions Copyrighted [year] [name of copyright owner]"
27.17 - *
27.18 - * The Original Software is NetBeans. The Initial Developer of the Original
27.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
27.20 - * Microsystems, Inc. All Rights Reserved.
27.21 - */
27.22 -
27.23 -package org.netbeans.modules.wsdlextensions.email.impl.pop3;
27.24 -
27.25 -import java.util.Collection;
27.26 -import org.netbeans.modules.xml.wsdl.model.Binding;
27.27 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
27.28 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
27.29 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Component;
27.30 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Input;
27.31 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3QName;
27.32 -import org.netbeans.modules.xml.wsdl.model.OperationParameter;
27.33 -import org.netbeans.modules.wsdlextensions.email.impl.EMAILAttribute;
27.34 -import org.w3c.dom.Element;
27.35 -
27.36 -/**
27.37 - * @author Sainath Adiraju
27.38 - */
27.39 -public class POP3InputImpl extends POP3ComponentImpl implements POP3Input {
27.40 -
27.41 - public POP3InputImpl(WSDLModel model, Element e) {
27.42 - super(model, e);
27.43 - }
27.44 -
27.45 - public POP3InputImpl(WSDLModel model){
27.46 - this(model, createPrefixedElement(POP3QName.INPUT.getQName(), model));
27.47 - }
27.48 -
27.49 - public void accept(POP3Component.Visitor visitor) {
27.50 - visitor.visit(this);
27.51 - }
27.52 - public String getMessageName() {
27.53 - return getAttribute(EMAILAttribute.EMAIL_MESSAGE_NAME);
27.54 - }
27.55 -
27.56 - public void setMessageName() {
27.57 - setAttribute(POP3Input.EMAIL_MESSAGE, EMAILAttribute.EMAIL_MESSAGE_NAME, "message");
27.58 - }
27.59 -
27.60 - public String getSubjectName() {
27.61 - return getAttribute(EMAILAttribute.EMAIL_SUBJECT_NAME);
27.62 - }
27.63 -
27.64 - public void setSubjectName() {
27.65 - setAttribute(POP3Input.EMAIL_SUBJECT, EMAILAttribute.EMAIL_SUBJECT_NAME, "subject");
27.66 - }
27.67 -
27.68 - public String getFrom() {
27.69 - return getAttribute(EMAILAttribute.EMAIL_FROM_NAME);
27.70 - }
27.71 -
27.72 - public void setFrom() {
27.73 - setAttribute(POP3Input.EMAIL_FROM, EMAILAttribute.EMAIL_FROM_NAME, "from");
27.74 - }
27.75 -
27.76 - public void setTo(){
27.77 - setAttribute(POP3Input.EMAIL_TO, EMAILAttribute.EMAIL_TO_NAME, "to");
27.78 - }
27.79 -
27.80 - public String getTo(){
27.81 - return getAttribute(EMAILAttribute.EMAIL_TO_NAME);
27.82 - }
27.83 -
27.84 - public void setCc(){
27.85 - setAttribute(POP3Input.EMAIL_CC, EMAILAttribute.EMAIL_CC_NAME, "cc");
27.86 - }
27.87 -
27.88 - public String getCc(){
27.89 - return getAttribute(EMAILAttribute.EMAIL_CC_NAME);
27.90 - }
27.91 -
27.92 - public void setBcc(){
27.93 - setAttribute(POP3Input.EMAIL_BCC, EMAILAttribute.EMAIL_BCC_NAME, "bcc");
27.94 - }
27.95 -
27.96 - public String getBcc(){
27.97 - return getAttribute(EMAILAttribute.EMAIL_BCC_NAME);
27.98 - }
27.99 -
27.100 -
27.101 -}
28.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/impl/pop3/POP3OperationImpl.java Mon Jul 14 01:11:23 2008 +0530
28.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
28.3 @@ -1,50 +0,0 @@
28.4 -/*
28.5 - * The contents of this file are subject to the terms of the Common Development
28.6 - * and Distribution License (the License). You may not use this file except in
28.7 - * compliance with the License.
28.8 - *
28.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
28.10 - * or http://www.netbeans.org/cddl.txt.
28.11 - *
28.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
28.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
28.14 - * If applicable, add the following below the CDDL Header, with the fields
28.15 - * enclosed by brackets [] replaced by your own identifying information:
28.16 - * "Portions Copyrighted [year] [name of copyright owner]"
28.17 - *
28.18 - * The Original Software is NetBeans. The Initial Developer of the Original
28.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
28.20 - * Microsystems, Inc. All Rights Reserved.
28.21 - */
28.22 -
28.23 -package org.netbeans.modules.wsdlextensions.email.impl.pop3;
28.24 -
28.25 -import java.util.Collection;
28.26 -import org.netbeans.modules.xml.wsdl.model.Binding;
28.27 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
28.28 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
28.29 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Binding;
28.30 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Component;
28.31 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Operation;
28.32 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3QName;
28.33 -import org.w3c.dom.Element;
28.34 -
28.35 -/**
28.36 - * @author Sainath Adiraju
28.37 - *
28.38 - */
28.39 -public class POP3OperationImpl extends POP3ComponentImpl implements POP3Operation {
28.40 -
28.41 - public POP3OperationImpl(WSDLModel model, Element e) {
28.42 - super(model, e);
28.43 - }
28.44 -
28.45 - public POP3OperationImpl(WSDLModel model){
28.46 - this(model, createPrefixedElement(POP3QName.OPERATION.getQName(), model));
28.47 - }
28.48 -
28.49 - public void accept(POP3Component.Visitor visitor) {
28.50 - visitor.visit(this);
28.51 - }
28.52 -
28.53 -}
29.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/pop3/POP3Address.java Mon Jul 14 01:11:23 2008 +0530
29.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
29.3 @@ -1,37 +0,0 @@
29.4 -/*
29.5 - * The contents of this file are subject to the terms of the Common Development
29.6 - * and Distribution License (the License). You may not use this file except in
29.7 - * compliance with the License.
29.8 - *
29.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
29.10 - * or http://www.netbeans.org/cddl.txt.
29.11 - *
29.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
29.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
29.14 - * If applicable, add the following below the CDDL Header, with the fields
29.15 - * enclosed by brackets [] replaced by your own identifying information:
29.16 - * "Portions Copyrighted [year] [name of copyright owner]"
29.17 - *
29.18 - * The Original Software is NetBeans. The Initial Developer of the Original
29.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
29.20 - * Microsystems, Inc. All Rights Reserved.
29.21 - */
29.22 -
29.23 -package org.netbeans.modules.wsdlextensions.email.pop3;
29.24 -
29.25 -//import org.netbeans.modules.wsdlextensions.email.validator.EMAILAddressURL;
29.26 -
29.27 -/**
29.28 - *
29.29 - * Represents the address element under the wsdl port for EMAIL binding
29.30 - * @author Sainath Adiraju
29.31 -*/
29.32 -public interface POP3Address extends POP3Component {
29.33 - public static final String ATTR_LOCATION = "location";
29.34 -
29.35 - // Attribute names
29.36 - public static final String ATTR_EMAILSERVER = "emailserver";
29.37 -
29.38 - public void setEMAILServer(String val);
29.39 - public String getEMAILServer();
29.40 -}
30.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/pop3/POP3Binding.java Mon Jul 14 01:11:23 2008 +0530
30.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
30.3 @@ -1,27 +0,0 @@
30.4 -/*
30.5 - * The contents of this file are subject to the terms of the Common Development
30.6 - * and Distribution License (the License). You may not use this file except in
30.7 - * compliance with the License.
30.8 - *
30.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
30.10 - * or http://www.netbeans.org/cddl.txt.
30.11 - *
30.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
30.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
30.14 - * If applicable, add the following below the CDDL Header, with the fields
30.15 - * enclosed by brackets [] replaced by your own identifying information:
30.16 - * "Portions Copyrighted [year] [name of copyright owner]"
30.17 - *
30.18 - * The Original Software is NetBeans. The Initial Developer of the Original
30.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
30.20 - * Microsystems, Inc. All Rights Reserved.
30.21 - */
30.22 -
30.23 -package org.netbeans.modules.wsdlextensions.email.pop3;
30.24 -
30.25 -/**
30.26 - * @author Sainath.Adiraju
30.27 - *
30.28 - */
30.29 -public interface POP3Binding extends POP3Component {
30.30 -}
31.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/pop3/POP3Component.java Mon Jul 14 01:11:23 2008 +0530
31.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
31.3 @@ -1,40 +0,0 @@
31.4 -/*
31.5 - * The contents of this file are subject to the terms of the Common Development
31.6 - * and Distribution License (the License). You may not use this file except in
31.7 - * compliance with the License.
31.8 - *
31.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
31.10 - * or http://www.netbeans.org/cddl.txt.
31.11 - *
31.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
31.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
31.14 - * If applicable, add the following below the CDDL Header, with the fields
31.15 - * enclosed by brackets [] replaced by your own identifying information:
31.16 - * "Portions Copyrighted [year] [name of copyright owner]"
31.17 - *
31.18 - * The Original Software is NetBeans. The Initial Developer of the Original
31.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
31.20 - * Microsystems, Inc. All Rights Reserved.
31.21 - */
31.22 -package org.netbeans.modules.wsdlextensions.email.pop3;
31.23 -
31.24 -import org.netbeans.modules.xml.wsdl.model.ExtensibilityElement;
31.25 -import org.netbeans.modules.xml.wsdl.model.OperationParameter;
31.26 -
31.27 -/**
31.28 - * @author Sainath Adiraju
31.29 - *
31.30 - */
31.31 -public interface POP3Component extends ExtensibilityElement {
31.32 -
31.33 - public interface Visitor {
31.34 - void visit(POP3Address target);
31.35 - void visit(POP3Binding target);
31.36 - void visit(POP3Operation target);
31.37 - void visit(POP3Input target);
31.38 - // void visit(EMAILInput target, OperationParameter opParam);
31.39 - }
31.40 -
31.41 - void accept(Visitor visitor);
31.42 - //void accept(Visitor visitor,OperationParameter opParam);
31.43 -}
32.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/pop3/POP3Input.java Mon Jul 14 01:11:23 2008 +0530
32.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
32.3 @@ -1,62 +0,0 @@
32.4 -/*
32.5 - * The contents of this file are subject to the terms of the Common Development
32.6 - * and Distribution License (the License). You may not use this file except in
32.7 - * compliance with the License.
32.8 - *
32.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
32.10 - * or http://www.netbeans.org/cddl.txt.
32.11 - *
32.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
32.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
32.14 - * If applicable, add the following below the CDDL Header, with the fields
32.15 - * enclosed by brackets [] replaced by your own identifying information:
32.16 - * "Portions Copyrighted [year] [name of copyright owner]"
32.17 - *
32.18 - * The Original Software is NetBeans. The Initial Developer of the Original
32.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
32.20 - * Microsystems, Inc. All Rights Reserved.
32.21 - */
32.22 -
32.23 -package org.netbeans.modules.wsdlextensions.email.pop3;
32.24 -
32.25 -/**
32.26 -* @author Sainath Adiraju
32.27 -*/
32.28 - public interface POP3Input extends POP3Component{
32.29 -
32.30 - public static final String EMAIL_MESSAGE = "messageName";
32.31 - public static final String EMAIL_SUBJECT = "subjectName";
32.32 - public static final String EMAIL_FROM = "from";
32.33 - public static final String EMAIL_TO = "to";
32.34 - public static final String EMAIL_CC = "cc";
32.35 - public static final String EMAIL_BCC = "bcc";
32.36 -
32.37 -
32.38 -
32.39 - public String getFrom();
32.40 -
32.41 - public void setFrom();
32.42 -
32.43 - public String getMessageName();
32.44 -
32.45 - public void setMessageName();
32.46 -
32.47 - public String getSubjectName();
32.48 -
32.49 - public void setSubjectName();
32.50 -
32.51 - public void setTo();
32.52 -
32.53 - public String getTo();
32.54 -
32.55 - public void setCc();
32.56 -
32.57 - public String getCc();
32.58 -
32.59 - public void setBcc();
32.60 -
32.61 - public String getBcc();
32.62 -
32.63 -
32.64 -}
32.65 -
33.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/pop3/POP3Operation.java Mon Jul 14 01:11:23 2008 +0530
33.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
33.3 @@ -1,27 +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 -package org.netbeans.modules.wsdlextensions.email.pop3;
33.24 -
33.25 -/**
33.26 - * @author Sainath Adiraju
33.27 - *
33.28 - */
33.29 -public interface POP3Operation extends POP3Component {
33.30 -}
34.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/pop3/POP3QName.java Mon Jul 14 01:11:23 2008 +0530
34.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
34.3 @@ -1,64 +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.email.pop3;
34.24 -
34.25 -import java.util.HashSet;
34.26 -import java.util.Set;
34.27 -import javax.xml.namespace.QName;
34.28 -
34.29 -/**
34.30 - * @author Sainath Adiraju
34.31 - *
34.32 - */
34.33 -public enum POP3QName {
34.34 - ADDRESS(createPOP3QName("POP3address")),
34.35 - BINDING(createPOP3QName("POP3binding")),
34.36 - OPERATION(createPOP3QName("POP3operation")),
34.37 - INPUT(createPOP3QName("POP3input"));
34.38 -
34.39 -
34.40 - public static final String EMAIL_NS_URI = "http://schemas.sun.com/jbi/wsdl-extensions/email/";
34.41 - public static final String EMAIL_NS_PREFIX = "email";
34.42 -
34.43 - public static QName createPOP3QName(String localName){
34.44 - return new QName(EMAIL_NS_URI, localName, EMAIL_NS_PREFIX);
34.45 - }
34.46 -
34.47 - POP3QName(QName name) {
34.48 - qName = name;
34.49 - }
34.50 -
34.51 - public QName getQName(){
34.52 - return qName;
34.53 - }
34.54 -
34.55 - private static Set<QName> qnames = null;
34.56 - public static Set<QName> getQNames() {
34.57 - if (qnames == null) {
34.58 - qnames = new HashSet<QName>();
34.59 - for (POP3QName wq : values()) {
34.60 - qnames.add(wq.getQName());
34.61 - }
34.62 - }
34.63 - return qnames;
34.64 - }
34.65 -
34.66 - private final QName qName;
34.67 -}
35.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/Bundle.properties Mon Jul 14 01:11:23 2008 +0530
35.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
35.3 @@ -1,68 +0,0 @@
35.4 -
35.5 -#
35.6 -# The contents of this file are subject to the terms of the Common Development
35.7 -# and Distribution License (the License). You may not use this file except in
35.8 -# compliance with the License.
35.9 -#
35.10 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
35.11 -# or http://www.netbeans.org/cddl.txt.
35.12 -#
35.13 -# When distributing Covered Code, include this CDDL Header Notice in each file
35.14 -# and include the License file at http://www.netbeans.org/cddl.txt.
35.15 -# If applicable, add the following below the CDDL Header, with the fields
35.16 -# enclosed by brackets [] replaced by your own identifying information:
35.17 -# "Portions Copyrighted [year] [name of copyright owner]"
35.18 -#
35.19 -# The Original Software is NetBeans. The Initial Developer of the Original
35.20 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
35.21 -# Microsystems, Inc. All Rights Reserved.
35.22 -#
35.23 -
35.24 -OpenIDE-Module-Name=EMAIL WSDL Extension
35.25 -OpenIDE-Module-Short-Description=Email Extension for WSDL Editor.
35.26 -OpenIDE-Module-Long-Description=This module provides Email BC's schema and plugs into WSDL Editor.
35.27 -OpenIDE-Module-Display-Category=CAPS
35.28 -WSDLEditor/Binding/EMAILIMAPBinding= EMAIL IMAPBinding
35.29 -WSDLEditor/BindingOperation/EMAILIMAPBindingOperation= EMAIL IMAPOperation
35.30 -WSDLEditor/BindingOperationInput/EMAILIMAPBindingOperationInput= EMAIL IMAPOperationInput
35.31 -WSDLEditor/ServicePort/EMAILIMAPServicePort= EMAIL IMAPAddress
35.32 -WSDLEditor/Binding/EMAILPOP3Binding= EMAIL POP3Binding
35.33 -WSDLEditor/BindingOperation/EMAILPOP3BindingOperation= EMAIL POP3Operation
35.34 -WSDLEditor/BindingOperationInput/EMAILPOP3BindingOperationInput= EMAIL POP3Operation Input
35.35 -WSDLEditor/ServicePort/EMAILPOP3ServicePort= EMAIL POP3Address
35.36 -WSDLEditor/Binding/EMAILSMTPBinding= EMAIL SMTPBinding
35.37 -WSDLEditor/BindingOperation/EMAILSMTPBindingOperation= EMAIL SMTPOperation
35.38 -WSDLEditor/BindingOperationInput/EMAILSMTPBindingOperationInput= EMAIL SMTPOperationInput
35.39 -WSDLEditor/ServicePort/EMAILSMTPServicePort= EMAIL SMTPAddress
35.40 -DESC_Element_IMAPbinding="binding" indicates a email IMAP protocol based binding.
35.41 -DESC_Element_POP3binding="binding" indicates a email POP3 protocol based binding.
35.42 -DESC_Element_SMTPbinding="binding" indicates a email SMTP protocol based binding.
35.43 -DESC_Element_IMAPoperation="operation" indicates a imap protocol based operation.
35.44 -DESC_Element_POP3operation="operation" indicates a pop3 protocol based operation.
35.45 -DESC_Element_SMTPoperation="operation" indicates a smtp protocol based operation.
35.46 -DESC_Element_IMAPinput="input" indicates a email protocol based operation input.
35.47 -DESC_Attribute_message=Refers to the message part containing the email message to be sent.
35.48 -DESC_Attribute_subject=Refers to the message part containing the subject of the email message.
35.49 -DESC_Attribute_from=Refers to the message part containing the sender of the email message. This is generally an email address
35.50 -DESC_Attribute_to=Specifies to whom the mail is addressed .
35.51 -DESC_Attribute_cc=Specifies to whom the mail is addressed in the cc field .
35.52 -DESC_Attribute_bcc=Specifies to whom the mail is addressed in bcc.
35.53 -DESC_Element_POP3input="input" indicates a email protocol based operation input.
35.54 -DESC_Element_SMTPinput="input" indicates a smtp protocol based operation input.
35.55 -DESC_Attribute_charset=Specifies the value for charset
35.56 -DESC_Attribute_use=Specifies whether to use encoding
35.57 -DESC_Attribute_encodingStyle=Specifies the encoding style
35.58 -DESC_Element_IMAPaddress="address" indicates a email protocol based service address.
35.59 -DESC_Attribute_emailServer=Specifies the email server to use to route email messages
35.60 -DESC_Attribute_port=Specifies the email server's port to route email messages
35.61 -DESC_Attribute_userName=Specifies the username for the emailserver to send mail
35.62 -DESC_Attribute_password=Specifies the password to connect to the emailserver
35.63 -DESC_Attribute_useSSL=Specifies whether to use ssl for connection
35.64 -DESC_Attribute_mailFolder=The folder in the EMAIL server to poll for new messages
35.65 -DESC_Attribute_maxMessageCount=The folder in the EMAIL server to poll for new messages
35.66 -DESC_Attribute_messageAckMode=Specifies Message ack based on the response from NMR
35.67 -DESC_Attribute_messageAckOperation=operation used to acknowledge the message
35.68 -DESC_Attribute_pollingInterval=Interval between EMAIL server pols for new messages
35.69 -DESC_Element_POP3address="address" indicates a email protocol based service address.
35.70 -DESC_Element_SMTPaddress="address" indicates a email protocol based service address.
35.71 -DESC_Attribute_location=Specifies the location of the receiver using the standard "mailto" URL Scheme (RFC 2368)
36.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/Copy of email-ext.xsd Mon Jul 14 01:11:23 2008 +0530
36.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
36.3 @@ -1,272 +0,0 @@
36.4 -<?xml version="1.0" encoding="UTF-8"?>
36.5 -<!--
36.6 - The contents of this file are subject to the terms of the Common Development
36.7 - and Distribution License (the License). You may not use this file except in
36.8 - compliance with the License.
36.9 -
36.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
36.11 - or http://www.netbeans.org/cddl.txt.
36.12 -
36.13 - When distributing Covered Code, include this CDDL Header Notice in each file
36.14 - and include the License file at http://www.netbeans.org/cddl.txt.
36.15 - If applicable, add the following below the CDDL Header, with the fields
36.16 - enclosed by brackets [] replaced by your own identifying information:
36.17 - "Portions Copyrighted [year] [name of copyright owner]"
36.18 -
36.19 - The Original Software is NetBeans. The Initial Developer of the Original
36.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
36.21 - Microsystems, Inc. All Rights Reserved.
36.22 --->
36.23 -
36.24 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:email="http://schemas.sun.com/jbi/wsdl-extensions/email/" targetNamespace="http://schemas.sun.com/jbi/wsdl-extensions/email/">
36.25 - <xs:import namespace="http://schemas.xmlsoap.org/wsdl/" schemaLocation="wsdl.xsd"/>
36.26 -
36.27 -
36.28 - <!-- Extensibility Element for the WSDL Binding -->
36.29 - <xs:element name="smtpbinding" type="email:tBinding">
36.30 - <xs:annotation>
36.31 - <xs:documentation>
36.32 - "binding" indicates a email protocol based binding.
36.33 - </xs:documentation>
36.34 - </xs:annotation>
36.35 - </xs:element>
36.36 - <xs:element name="imapbinding" type="email:tBinding">
36.37 - <xs:annotation>
36.38 - <xs:documentation>
36.39 - "binding" indicates a email protocol based binding.
36.40 - </xs:documentation>
36.41 - </xs:annotation>
36.42 - </xs:element>
36.43 - <xs:element name="pop3binding" type="email:tBinding">
36.44 - <xs:annotation>
36.45 - <xs:documentation>
36.46 - "binding" indicates a email protocol based binding.
36.47 - </xs:documentation>
36.48 - </xs:annotation>
36.49 - </xs:element>
36.50 - <xs:complexType name="tBinding">
36.51 - <xs:complexContent>
36.52 - <xs:extension base="wsdl:tExtensibilityElement">
36.53 - </xs:extension>
36.54 - </xs:complexContent>
36.55 - </xs:complexType>
36.56 -
36.57 - <!-- Extensibility Element for the WSDL Operation -->
36.58 - <xs:element name="smtpoperation" type="email:tOperation">
36.59 - <xs:annotation>
36.60 - <xs:documentation>
36.61 - "operation" indicates a smtp protocol based operation.
36.62 - </xs:documentation>
36.63 - </xs:annotation>
36.64 - </xs:element>
36.65 - <xs:element name="imapoperation" type="email:tOperation">
36.66 - <xs:annotation>
36.67 - <xs:documentation>
36.68 - "operation" indicates a imap protocol based operation.
36.69 - </xs:documentation>
36.70 - </xs:annotation>
36.71 - </xs:element>
36.72 - <xs:element name="pop3operation" type="email:tOperation">
36.73 - <xs:annotation>
36.74 - <xs:documentation>
36.75 - "operation" indicates a pop3 protocol based operation.
36.76 - </xs:documentation>
36.77 - </xs:annotation>
36.78 - </xs:element>
36.79 - <xs:complexType name="tOperation">
36.80 - <xs:complexContent>
36.81 - <xs:extension base="wsdl:tExtensibilityElement">
36.82 - </xs:extension>
36.83 - </xs:complexContent>
36.84 - </xs:complexType>
36.85 -
36.86 - <!-- Extensibility Element for the WSDL Operation Input -->
36.87 - <xs:element name="smtpinput" type="email:tInput">
36.88 - <xs:annotation>
36.89 - <xs:documentation>
36.90 - "input" indicates a email protocol based operation input.
36.91 - </xs:documentation>
36.92 - </xs:annotation>
36.93 - </xs:element>
36.94 - <xs:element name="imapinput" type="email:tInput">
36.95 - <xs:annotation>
36.96 - <xs:documentation>
36.97 - "input" indicates a email protocol based operation input.
36.98 - </xs:documentation>
36.99 - </xs:annotation>
36.100 - </xs:element>
36.101 - <xs:element name="pop3input" type="email:tInput">
36.102 - <xs:annotation>
36.103 - <xs:documentation>
36.104 - "input" indicates a email protocol based operation input.
36.105 - </xs:documentation>
36.106 - </xs:annotation>
36.107 - </xs:element>
36.108 - <xs:complexType name="tInput">
36.109 - <xs:complexContent>
36.110 - <xs:extension base="wsdl:tExtensibilityElement">
36.111 -
36.112 - <xs:attribute name="message" type="xs:string" use="optional">
36.113 - <xs:annotation>
36.114 - <xs:documentation>Refers to the message part containing the email message to be sent.</xs:documentation>
36.115 - </xs:annotation>
36.116 - </xs:attribute>
36.117 - <xs:attribute name="subject" type="xs:string" use="optional">
36.118 - <xs:annotation>
36.119 - <xs:documentation>Refers to the message part containing the subject of the email message.</xs:documentation>
36.120 - </xs:annotation>
36.121 - </xs:attribute>
36.122 - <xs:attribute name="from" type="xs:string" use="optional">
36.123 - <xs:annotation>
36.124 - <xs:documentation>Refers to the message part containing the sender of the email message. This is generally an email address</xs:documentation>
36.125 - </xs:annotation>
36.126 - </xs:attribute>
36.127 - <xs:attribute name="charset" type="xs:string" use="optional">
36.128 - <xs:annotation>
36.129 - <xs:documentation>Refers to the message part containing the character set of the email message.</xs:documentation>
36.130 - </xs:annotation>
36.131 - </xs:attribute>
36.132 - <xs:attribute name="use" type="xs:string" use="optional">
36.133 - <xs:annotation>
36.134 - <xs:documentation>Refers to the use type. Whether encoder or literal.</xs:documentation>
36.135 - </xs:annotation>
36.136 - </xs:attribute>
36.137 - <xs:attribute name="encodingStyle" type="xs:string" use="optional">
36.138 - <xs:annotation>
36.139 - <xs:documentation>Specifies the encoding type associated with the email Message. This also defines the encoder type responsible to process the encoded data. </xs:documentation>
36.140 - </xs:annotation>
36.141 - </xs:attribute>
36.142 - <xs:attribute name="to" type="xs:string" use="optional">
36.143 - <xs:annotation>
36.144 - <xs:documentation>Specifies to whom the mail is addressed . </xs:documentation>
36.145 - </xs:annotation>
36.146 - </xs:attribute>
36.147 - <xs:attribute name="cc" type="xs:string" use="optional">
36.148 - <xs:annotation>
36.149 - <xs:documentation>Specifies to whom the mail is addressed in the cc field . </xs:documentation>
36.150 - </xs:annotation>
36.151 - </xs:attribute>
36.152 - <xs:attribute name="bcc" type="xs:string" use="optional">
36.153 - <xs:annotation>
36.154 - <xs:documentation>Specifies to whom the mail is addressed in bcc. </xs:documentation>
36.155 - </xs:annotation>
36.156 - </xs:attribute>
36.157 - </xs:extension>
36.158 - </xs:complexContent>
36.159 - </xs:complexType>
36.160 -
36.161 - <!-- Extensibility Element for the WSDL Port -->
36.162 - <xs:element name="smtpaddress" type="email:tAddresssmtp">
36.163 - <xs:annotation>
36.164 - <xs:documentation>
36.165 - "address" indicates a smtp protocol based service address.
36.166 - </xs:documentation>
36.167 - </xs:annotation>
36.168 - </xs:element>
36.169 - <xs:element name="pop3address" type="email:tAddresssmtp">
36.170 - <xs:annotation>
36.171 - <xs:documentation>
36.172 - "address" indicates a pop3 protocol based service address.
36.173 - </xs:documentation>
36.174 - </xs:annotation>
36.175 - </xs:element>
36.176 - <xs:complexType name="tAddresssmtp">
36.177 - <xs:complexContent>
36.178 - <xs:extension base="wsdl:tExtensibilityElement">
36.179 - <xs:attribute name="location" type="xs:string" use="required">
36.180 - <xs:annotation>
36.181 - <xs:documentation>Specifies the location of the receiver using the standard "mailto" URL Scheme (RFC 2368) </xs:documentation>
36.182 - </xs:annotation>
36.183 - </xs:attribute>
36.184 - <xs:attribute name="smtpserver" type="xs:string" use="optional">
36.185 - <xs:annotation>
36.186 - <xs:documentation>Specifies the SMTP server to use to route SMTP messages</xs:documentation>
36.187 - </xs:annotation>
36.188 - </xs:attribute>
36.189 - <xs:attribute name="smtpport" type="xs:int" use="optional">
36.190 - <xs:annotation>
36.191 - <xs:documentation>Specifies the SMTP server's port to route SMTP messages</xs:documentation>
36.192 - </xs:annotation>
36.193 - </xs:attribute>
36.194 - <xs:attribute name="username" type="xs:string" use="optional">
36.195 - <xs:annotation>
36.196 - <xs:documentation>Specifies the username for the smtpserver to send mail</xs:documentation>
36.197 - </xs:annotation>
36.198 - </xs:attribute>
36.199 - <xs:attribute name="password" type="xs:string" use="optional">
36.200 - <xs:annotation>
36.201 - <xs:documentation>Specifies the password to connect to the SMTPserver</xs:documentation>
36.202 - </xs:annotation>
36.203 - </xs:attribute>
36.204 - <xs:attribute name="useSSL" type="xs:boolean" use="optional">
36.205 - <xs:annotation>
36.206 - <xs:documentation>Specifies whether to use ssl for connection</xs:documentation>
36.207 - </xs:annotation>
36.208 - </xs:attribute>
36.209 - </xs:extension>
36.210 - </xs:complexContent>
36.211 - </xs:complexType>
36.212 - <xs:element name="imapaddress" type="email:tAddressimap">
36.213 - <xs:annotation>
36.214 - <xs:documentation>
36.215 - "address" indicates a email protocol based service address.
36.216 - </xs:documentation>
36.217 - </xs:annotation>
36.218 - </xs:element>
36.219 - <xs:complexType name="tAddressimap">
36.220 - <xs:complexContent>
36.221 - <xs:extension base="wsdl:tExtensibilityElement">
36.222 - <xs:attribute name="emailserver" type="xs:string" use="optional">
36.223 - <xs:annotation>
36.224 - <xs:documentation>Specifies the email server to use to route email messages</xs:documentation>
36.225 - </xs:annotation>
36.226 - </xs:attribute>
36.227 - <xs:attribute name="port" type="xs:int" use="optional">
36.228 - <xs:annotation>
36.229 - <xs:documentation>Specifies the email server's port to route email messages</xs:documentation>
36.230 - </xs:annotation>
36.231 - </xs:attribute>
36.232 - <xs:attribute name="username" type="xs:string" use="optional">
36.233 - <xs:annotation>
36.234 - <xs:documentation>Specifies the username for the emailserver to send mail</xs:documentation>
36.235 - </xs:annotation>
36.236 - </xs:attribute>
36.237 - <xs:attribute name="password" type="xs:string" use="optional">
36.238 - <xs:annotation>
36.239 - <xs:documentation>Specifies the password to connect to the emailserver</xs:documentation>
36.240 - </xs:annotation>
36.241 - </xs:attribute>
36.242 - <xs:attribute name="useSSL" type="xs:boolean" use="optional">
36.243 - <xs:annotation>
36.244 - <xs:documentation>Specifies whether to use ssl for connection</xs:documentation>
36.245 - </xs:annotation>
36.246 - </xs:attribute>
36.247 - <xs:attribute name="MailFolder" type="xs:string" use="optional">
36.248 - <xs:annotation>
36.249 - <xs:documentation>The folder in the EMAIL server to poll for new messages</xs:documentation>
36.250 - </xs:annotation>
36.251 - </xs:attribute>
36.252 - <xs:attribute name="MessageAkMode" type="xs:boolean" use="optional">
36.253 - <xs:annotation>
36.254 - <xs:documentation>Specifies Message ack based on the response from NMR</xs:documentation>
36.255 - </xs:annotation>
36.256 - </xs:attribute>
36.257 - <xs:attribute name="MarkAsRead" type="xs:boolean" use="optional">
36.258 - <xs:annotation>
36.259 - <xs:documentation>message marked as read on the server</xs:documentation>
36.260 - </xs:annotation>
36.261 - </xs:attribute>
36.262 - <xs:attribute name="MessageAckOperation" type="xs:string" use="optional">
36.263 - <xs:annotation>
36.264 - <xs:documentation>operation used to acknowledge the message</xs:documentation>
36.265 - </xs:annotation>
36.266 - </xs:attribute>
36.267 - <xs:attribute name="PollingInterval" type="xs:string" use="optional">
36.268 - <xs:annotation>
36.269 - <xs:documentation>Interval between EMAIL server pols for new messages</xs:documentation>
36.270 - </xs:annotation>
36.271 - </xs:attribute>
36.272 - </xs:extension>
36.273 - </xs:complexContent>
36.274 - </xs:complexType>
36.275 -</xs:schema>
37.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/Copy of layer.xml Mon Jul 14 01:11:23 2008 +0530
37.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
37.3 @@ -1,139 +0,0 @@
37.4 -<?xml version="1.0" encoding="UTF-8"?>
37.5 -
37.6 -<!--
37.7 - The contents of this file are subject to the terms of the Common Development
37.8 - and Distribution License (the License). You may not use this file except in
37.9 - compliance with the License.
37.10 -
37.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
37.12 - or http://www.netbeans.org/cddl.txt.
37.13 -
37.14 - When distributing Covered Code, include this CDDL Header Notice in each file
37.15 - and include the License file at http://www.netbeans.org/cddl.txt.
37.16 - If applicable, add the following below the CDDL Header, with the fields
37.17 - enclosed by brackets [] replaced by your own identifying information:
37.18 - "Portions Copyrighted [year] [name of copyright owner]"
37.19 -
37.20 - The Original Software is NetBeans. The Initial Developer of the Original
37.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
37.22 - Microsystems, Inc. All Rights Reserved.
37.23 --->
37.24 -
37.25 -<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
37.26 -<filesystem>
37.27 - <folder name="WSDLEditor">
37.28 - <file name="email-ext.xsd" url="email-ext.xsd">
37.29 - <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/email/" />
37.30 - <attr name="prefix" stringvalue="email" />
37.31 - </file>
37.32 -
37.33 - <folder name="Binding">
37.34 - <file name="EmailBinding" >
37.35 - <attr name="xsdFileName" stringvalue="email-ext" />
37.36 - <attr name="element" stringvalue="smtpbinding"/>
37.37 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.38 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/Start_16.png"/>
37.39 - </file>
37.40 - </folder>
37.41 - <folder name="Binding">
37.42 - <file name="EmailBinding" >
37.43 - <attr name="xsdFileName" stringvalue="email-ext" />
37.44 - <attr name="element" stringvalue="imapbinding"/>
37.45 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.46 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/Start_16.png"/>
37.47 - </file>
37.48 - </folder>
37.49 - <folder name="Binding">
37.50 - <file name="EmailBinding" >
37.51 - <attr name="xsdFileName" stringvalue="email-ext" />
37.52 - <attr name="element" stringvalue="pop3binding"/>
37.53 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.54 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/Start_16.png"/>
37.55 - </file>
37.56 - </folder>
37.57 - <folder name="BindingOperation">
37.58 - <file name="EmailBindingOperation" >
37.59 - <attr name="xsdFileName" stringvalue="email-ext" />
37.60 - <attr name="element" stringvalue="smtpoperation"/>
37.61 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.62 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/End_16.png"/>
37.63 - </file>
37.64 - </folder>
37.65 - <folder name="BindingOperation">
37.66 - <file name="EmailBindingOperation" >
37.67 - <attr name="xsdFileName" stringvalue="email-ext" />
37.68 - <attr name="element" stringvalue="imapoperation"/>
37.69 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.70 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/End_16.png"/>
37.71 - </file>
37.72 - </folder>
37.73 - <folder name="BindingOperation">
37.74 - <file name="EmailBindingOperation" >
37.75 - <attr name="xsdFileName" stringvalue="email-ext" />
37.76 - <attr name="element" stringvalue="pop3operation"/>
37.77 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.78 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/End_16.png"/>
37.79 - </file>
37.80 - </folder>
37.81 - <folder name="BindingOperationInput">
37.82 - <file name="EmailBindingOperationInput">
37.83 - <attr name="xsdFileName" stringvalue="email-ext" />
37.84 - <attr name="element" stringvalue="smtpinput"/>
37.85 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.86 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/PageFlow.png"/>
37.87 - </file>
37.88 - </folder>
37.89 - <folder name="BindingOperationInput">
37.90 - <file name="EmailBindingOperationInput">
37.91 - <attr name="xsdFileName" stringvalue="email-ext" />
37.92 - <attr name="element" stringvalue="imapinput"/>
37.93 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.94 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/PageFlow.png"/>
37.95 - </file>
37.96 - </folder>
37.97 - <folder name="BindingOperationInput">
37.98 - <file name="EmailBindingOperationInput">
37.99 - <attr name="xsdFileName" stringvalue="email-ext" />
37.100 - <attr name="element" stringvalue="pop3input"/>
37.101 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.102 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/PageFlow.png"/>
37.103 - </file>
37.104 - </folder>
37.105 - <folder name="ServicePort">
37.106 - <file name="EmailServicePort">
37.107 - <attr name="xsdFileName" stringvalue="email-ext" />
37.108 - <attr name="element" stringvalue="smtpaddress"/>
37.109 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.110 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/mapping16.png"/>
37.111 - </file>
37.112 - </folder>
37.113 - <folder name="ServicePort">
37.114 - <file name="EmailServicePort">
37.115 - <attr name="xsdFileName" stringvalue="email-ext" />
37.116 - <attr name="element" stringvalue="imapaddress"/>
37.117 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.118 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/mapping16.png"/>
37.119 - </file>
37.120 - </folder>
37.121 - <folder name="ServicePort">
37.122 - <file name="EmailServicePort">
37.123 - <attr name="xsdFileName" stringvalue="email-ext" />
37.124 - <attr name="element" stringvalue="pop3address"/>
37.125 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
37.126 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/mapping16.png"/>
37.127 - </file>
37.128 - </folder>
37.129 - </folder>
37.130 - <folder name="SeeBeyondJbiComponents">
37.131 - <!-- JBI Component -->
37.132 - <folder name="sun-email-binding">
37.133 - <attr name="id" stringvalue="sun-email-binding"/>
37.134 - <attr name="description" stringvalue="Email Binding"/>
37.135 - <attr name="type" stringvalue="Binding"/>
37.136 - <file name="email.binding-1.0">
37.137 - <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/email/"/>
37.138 - </file>
37.139 - </folder>
37.140 - </folder>
37.141 -</filesystem>
37.142 -
38.1 Binary file wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/End_16.png has changed
39.1 Binary file wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/PageFlow.png has changed
40.1 Binary file wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/Start_16.png has changed
41.1 Binary file wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/choose.png has changed
42.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/email-ext.xsd Mon Jul 14 01:11:23 2008 +0530
42.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
42.3 @@ -1,424 +0,0 @@
42.4 -<?xml version="1.0" encoding="UTF-8"?>
42.5 -<!--
42.6 - The contents of this file are subject to the terms of the Common Development
42.7 - and Distribution License (the License). You may not use this file except in
42.8 - compliance with the License.
42.9 -
42.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
42.11 - or http://www.netbeans.org/cddl.txt.
42.12 -
42.13 - When distributing Covered Code, include this CDDL Header Notice in each file
42.14 - and include the License file at http://www.netbeans.org/cddl.txt.
42.15 - If applicable, add the following below the CDDL Header, with the fields
42.16 - enclosed by brackets [] replaced by your own identifying information:
42.17 - "Portions Copyrighted [year] [name of copyright owner]"
42.18 -
42.19 - The Original Software is NetBeans. The Initial Developer of the Original
42.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
42.21 - Microsystems, Inc. All Rights Reserved.
42.22 --->
42.23 -
42.24 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:email="http://schemas.sun.com/jbi/wsdl-extensions/email/" targetNamespace="http://schemas.sun.com/jbi/wsdl-extensions/email/">
42.25 - <xs:import namespace="http://schemas.xmlsoap.org/wsdl/" schemaLocation="wsdl.xsd"/>
42.26 -
42.27 -
42.28 - <!-- Extensibility Element for the WSDL Binding -->
42.29 -
42.30 - <xs:element name="IMAPbinding" type="email:tBinding">
42.31 - <xs:annotation>
42.32 - <xs:documentation>DESC_Element_IMAPbinding</xs:documentation>
42.33 - </xs:annotation>
42.34 - </xs:element>
42.35 - <xs:element name="POP3binding" type="email:tBinding">
42.36 - <xs:annotation>
42.37 - <xs:documentation>DESC_Element_POP3binding</xs:documentation>
42.38 - </xs:annotation>
42.39 - </xs:element>
42.40 - <xs:element name="SMTPbinding" type="email:tBinding">
42.41 - <xs:annotation>
42.42 - <xs:documentation>DESC_Element_SMTPbinding</xs:documentation>
42.43 - </xs:annotation>
42.44 - </xs:element>
42.45 -
42.46 - <xs:complexType name="tBinding">
42.47 - <xs:complexContent>
42.48 - <xs:extension base="wsdl:tExtensibilityElement">
42.49 - </xs:extension>
42.50 - </xs:complexContent>
42.51 - </xs:complexType>
42.52 -
42.53 - <!-- Extensibility Element for the WSDL Operation -->
42.54 -
42.55 - <xs:element name="IMAPoperation" type="email:tOperation">
42.56 - <xs:annotation>
42.57 - <xs:documentation>DESC_Element_IMAPoperation</xs:documentation>
42.58 - </xs:annotation>
42.59 - </xs:element>
42.60 - <xs:element name="POP3operation" type="email:tOperation">
42.61 - <xs:annotation>
42.62 - <xs:documentation>DESC_Element_POP3operation</xs:documentation>
42.63 - </xs:annotation>
42.64 - </xs:element>
42.65 - <xs:element name="SMTPoperation" type="email:tOperation">
42.66 - <xs:annotation>
42.67 - <xs:documentation>DESC_Element_SMTPoperation</xs:documentation>
42.68 - </xs:annotation>
42.69 - </xs:element>
42.70 - <xs:complexType name="tOperation">
42.71 - <xs:complexContent>
42.72 - <xs:extension base="wsdl:tExtensibilityElement">
42.73 - </xs:extension>
42.74 - </xs:complexContent>
42.75 - </xs:complexType>
42.76 -
42.77 - <!-- Extensibility Element for the WSDL Operation Input -->
42.78 -
42.79 - <xs:element name="IMAPinput" type="email:tInput">
42.80 - <xs:annotation>
42.81 - <xs:documentation>DESC_Element_IMAPinput</xs:documentation>
42.82 - <xs:appinfo>
42.83 - <prop:ElementProperties xmlns:prop="http://xml.netbeans.org/schema/wsdlui/property">
42.84 - <prop:Property attributeName="message" propertyOrder="1" >
42.85 - <prop:BuiltInCustomizer>
42.86 - <prop:SimpleCustomizer name="PartChooser"/>
42.87 - </prop:BuiltInCustomizer>
42.88 - </prop:Property>
42.89 - <prop:Property attributeName="subject" propertyOrder="2" >
42.90 - <prop:BuiltInCustomizer>
42.91 - <prop:SimpleCustomizer name="PartChooser"/>
42.92 - </prop:BuiltInCustomizer>
42.93 - </prop:Property>
42.94 - <prop:Property attributeName="from" propertyOrder="3">
42.95 - <prop:BuiltInCustomizer>
42.96 - <prop:SimpleCustomizer name="PartChooser"/>
42.97 - </prop:BuiltInCustomizer>
42.98 - </prop:Property>
42.99 - <prop:Property attributeName="to" propertyOrder="4">
42.100 - <prop:BuiltInCustomizer>
42.101 - <prop:SimpleCustomizer name="PartChooser"/>
42.102 - </prop:BuiltInCustomizer>
42.103 - </prop:Property>
42.104 - <prop:Property attributeName="cc" propertyOrder="5">
42.105 - <prop:BuiltInCustomizer>
42.106 - <prop:SimpleCustomizer name="PartChooser"/>
42.107 - </prop:BuiltInCustomizer>
42.108 - </prop:Property>
42.109 - <prop:Property attributeName="bcc" propertyOrder="6">
42.110 - <prop:BuiltInCustomizer>
42.111 - <prop:SimpleCustomizer name="PartChooser"/>
42.112 - </prop:BuiltInCustomizer>
42.113 - </prop:Property>
42.114 - </prop:ElementProperties>
42.115 - </xs:appinfo>
42.116 - </xs:annotation>
42.117 - </xs:element>
42.118 - <xs:element name="POP3input" type="email:tInput">
42.119 - <xs:annotation>
42.120 - <xs:documentation>DESC_Element_POP3input</xs:documentation>
42.121 - <xs:appinfo>
42.122 - <prop:ElementProperties xmlns:prop="http://xml.netbeans.org/schema/wsdlui/property">
42.123 - <prop:Property attributeName="message" propertyOrder="1" >
42.124 - <prop:BuiltInCustomizer>
42.125 - <prop:SimpleCustomizer name="PartChooser"/>
42.126 - </prop:BuiltInCustomizer>
42.127 - </prop:Property>
42.128 - <prop:Property attributeName="subject" propertyOrder="2" >
42.129 - <prop:BuiltInCustomizer>
42.130 - <prop:SimpleCustomizer name="PartChooser"/>
42.131 - </prop:BuiltInCustomizer>
42.132 - </prop:Property>
42.133 - <prop:Property attributeName="from" propertyOrder="3">
42.134 - <prop:BuiltInCustomizer>
42.135 - <prop:SimpleCustomizer name="PartChooser"/>
42.136 - </prop:BuiltInCustomizer>
42.137 - </prop:Property>
42.138 - <prop:Property attributeName="to" propertyOrder="4">
42.139 - <prop:BuiltInCustomizer>
42.140 - <prop:SimpleCustomizer name="PartChooser"/>
42.141 - </prop:BuiltInCustomizer>
42.142 - </prop:Property>
42.143 - <prop:Property attributeName="cc" propertyOrder="5">
42.144 - <prop:BuiltInCustomizer>
42.145 - <prop:SimpleCustomizer name="PartChooser"/>
42.146 - </prop:BuiltInCustomizer>
42.147 - </prop:Property>
42.148 - <prop:Property attributeName="bcc" propertyOrder="6">
42.149 - <prop:BuiltInCustomizer>
42.150 - <prop:SimpleCustomizer name="PartChooser"/>
42.151 - </prop:BuiltInCustomizer>
42.152 - </prop:Property>
42.153 - </prop:ElementProperties>
42.154 - </xs:appinfo>
42.155 - </xs:annotation>
42.156 - </xs:element>
42.157 -
42.158 - <xs:element name="SMTPinput" type="email:tSmtpInput">
42.159 - <xs:annotation>
42.160 - <xs:documentation>DESC_Element_SMTPinput</xs:documentation>
42.161 - <xs:appinfo>
42.162 - <prop:ElementProperties xmlns:prop="http://xml.netbeans.org/schema/wsdlui/property">
42.163 - <prop:Property attributeName="message" propertyOrder="1" >
42.164 - <prop:BuiltInCustomizer>
42.165 - <prop:SimpleCustomizer name="PartChooser"/>
42.166 - </prop:BuiltInCustomizer>
42.167 - </prop:Property>
42.168 - <prop:Property attributeName="subject" propertyOrder="2" >
42.169 - <prop:BuiltInCustomizer>
42.170 - <prop:SimpleCustomizer name="PartChooser"/>
42.171 - </prop:BuiltInCustomizer>
42.172 - </prop:Property>
42.173 - <prop:Property attributeName="from" propertyOrder="3">
42.174 - <prop:BuiltInCustomizer>
42.175 - <prop:SimpleCustomizer name="PartChooser"/>
42.176 - </prop:BuiltInCustomizer>
42.177 - </prop:Property>
42.178 - <prop:Property attributeName="to" propertyOrder="4">
42.179 - <prop:BuiltInCustomizer>
42.180 - <prop:SimpleCustomizer name="PartChooser"/>
42.181 - </prop:BuiltInCustomizer>
42.182 - </prop:Property>
42.183 - <prop:Property attributeName="cc" propertyOrder="5">
42.184 - <prop:BuiltInCustomizer>
42.185 - <prop:SimpleCustomizer name="PartChooser"/>
42.186 - </prop:BuiltInCustomizer>
42.187 - </prop:Property>
42.188 - <prop:Property attributeName="bcc" propertyOrder="6">
42.189 - <prop:BuiltInCustomizer>
42.190 - <prop:SimpleCustomizer name="PartChooser"/>
42.191 - </prop:BuiltInCustomizer>
42.192 - </prop:Property>
42.193 - </prop:ElementProperties>
42.194 - </xs:appinfo>
42.195 - </xs:annotation>
42.196 - </xs:element>
42.197 -
42.198 - <xs:complexType name="tInput">
42.199 - <xs:complexContent>
42.200 - <xs:extension base="wsdl:tExtensibilityElement">
42.201 - <xs:attribute name="message" type="xs:string" use="optional">
42.202 - <xs:annotation>
42.203 - <xs:documentation>DESC_Attribute_message</xs:documentation>
42.204 - </xs:annotation>
42.205 - </xs:attribute>
42.206 - <xs:attribute name="subject" type="xs:string" use="optional">
42.207 - <xs:annotation>
42.208 - <xs:documentation>DESC_Attribute_subject</xs:documentation>
42.209 - </xs:annotation>
42.210 - </xs:attribute>
42.211 - <xs:attribute name="from" type="xs:string" use="optional">
42.212 - <xs:annotation>
42.213 - <xs:documentation>DESC_Attribute_from</xs:documentation>
42.214 - </xs:annotation>
42.215 - </xs:attribute>
42.216 - <xs:attribute name="to" type="xs:string" use="optional">
42.217 - <xs:annotation>
42.218 - <xs:documentation>DESC_Attribute_to</xs:documentation>
42.219 - </xs:annotation>
42.220 - </xs:attribute>
42.221 - <xs:attribute name="cc" type="xs:string" use="optional">
42.222 - <xs:annotation>
42.223 - <xs:documentation>DESC_Attribute_cc</xs:documentation>
42.224 - </xs:annotation>
42.225 - </xs:attribute>
42.226 - <xs:attribute name="bcc" type="xs:string" use="optional">
42.227 - <xs:annotation>
42.228 - <xs:documentation>DESC_Attribute_bcc</xs:documentation>
42.229 - </xs:annotation>
42.230 - </xs:attribute>
42.231 - </xs:extension>
42.232 - </xs:complexContent>
42.233 - </xs:complexType>
42.234 -
42.235 - <xs:complexType name="tSmtpInput">
42.236 - <xs:complexContent>
42.237 - <xs:extension base="wsdl:tExtensibilityElement">
42.238 - <xs:attribute name="message" type="xs:string" use="optional">
42.239 - <xs:annotation>
42.240 - <xs:documentation>DESC_Attribute_message</xs:documentation>
42.241 - </xs:annotation>
42.242 - </xs:attribute>
42.243 - <xs:attribute name="subject" type="xs:string" use="optional">
42.244 - <xs:annotation>
42.245 - <xs:documentation>DESC_Attribute_subject</xs:documentation>
42.246 - </xs:annotation>
42.247 - </xs:attribute>
42.248 - <xs:attribute name="from" type="xs:string" use="optional">
42.249 - <xs:annotation>
42.250 - <xs:documentation>DESC_Attribute_from</xs:documentation>
42.251 - </xs:annotation>
42.252 - </xs:attribute>
42.253 - <xs:attribute name="to" type="xs:string" use="optional">
42.254 - <xs:annotation>
42.255 - <xs:documentation>DESC_Attribute_to</xs:documentation>
42.256 - </xs:annotation>
42.257 - </xs:attribute>
42.258 - <xs:attribute name="cc" type="xs:string" use="optional">
42.259 - <xs:annotation>
42.260 - <xs:documentation>DESC_Attribute_cc</xs:documentation>
42.261 - </xs:annotation>
42.262 - </xs:attribute>
42.263 - <xs:attribute name="bcc" type="xs:string" use="optional">
42.264 - <xs:annotation>
42.265 - <xs:documentation>DESC_Attribute_bcc</xs:documentation>
42.266 - </xs:annotation>
42.267 - </xs:attribute>
42.268 - <xs:attribute name="charset" type="xs:string" use="optional">
42.269 - <xs:annotation>
42.270 - <xs:documentation>DESC_Attribute_charset</xs:documentation>
42.271 - </xs:annotation>
42.272 - </xs:attribute>
42.273 - <xs:attribute name="use" type="email:useTypes" use="optional">
42.274 - <xs:annotation>
42.275 - <xs:documentation>DESC_Attribute_use</xs:documentation>
42.276 - </xs:annotation>
42.277 - </xs:attribute>
42.278 - <xs:attribute name="encodingStyle" type="xs:string" use="optional">
42.279 - <xs:annotation>
42.280 - <xs:documentation>DESC_Attribute_encodingStyle</xs:documentation>
42.281 - </xs:annotation>
42.282 - </xs:attribute>
42.283 - </xs:extension>
42.284 - </xs:complexContent>
42.285 - </xs:complexType>
42.286 -
42.287 - <!-- <xs:complexType name="extendedSMTPtInput">
42.288 - <xs:complexContent>
42.289 - <xs:extension base="email:tInput">
42.290 - <xs:attribute name="charset" type="xs:string" use="optional">
42.291 - <xs:annotation>
42.292 - <xs:documentation>Specifies to whom the mail is addressed in bcc. </xs:documentation>
42.293 - </xs:annotation>
42.294 - </xs:attribute>
42.295 - </xs:extension>
42.296 - </xs:complexContent>
42.297 - </xs:complexType>
42.298 - -->
42.299 - <!-- Extensibility Element for the WSDL Port -->
42.300 -
42.301 - <xs:element name="IMAPaddress" type="email:tAddressimap">
42.302 - <xs:annotation>
42.303 - <xs:documentation>DESC_Element_IMAPaddress</xs:documentation>
42.304 - </xs:annotation>
42.305 - </xs:element>
42.306 - <xs:element name="POP3address" type="email:tAddressimap">
42.307 - <xs:annotation>
42.308 - <xs:documentation>DESC_Element_POP3address</xs:documentation>
42.309 - </xs:annotation>
42.310 - </xs:element>
42.311 - <xs:element name="SMTPaddress" type="email:tSMTPAddress">
42.312 - <xs:annotation>
42.313 - <xs:documentation>DESC_Element_SMTPaddress</xs:documentation>
42.314 - </xs:annotation>
42.315 - </xs:element>
42.316 -
42.317 - <xs:complexType name="tAddressimap">
42.318 - <xs:complexContent>
42.319 - <xs:extension base="wsdl:tExtensibilityElement">
42.320 - <xs:attribute name="emailServer" type="xs:string" use="optional">
42.321 - <xs:annotation>
42.322 - <xs:documentation>DESC_Attribute_emailServer</xs:documentation>
42.323 - </xs:annotation>
42.324 - </xs:attribute>
42.325 - <xs:attribute name="port" type="xs:int" use="optional">
42.326 - <xs:annotation>
42.327 - <xs:documentation>DESC_Attribute_port</xs:documentation>
42.328 - </xs:annotation>
42.329 - </xs:attribute>
42.330 - <xs:attribute name="userName" type="xs:string" use="optional">
42.331 - <xs:annotation>
42.332 - <xs:documentation>DESC_Attribute_userName</xs:documentation>
42.333 - </xs:annotation>
42.334 - </xs:attribute>
42.335 - <xs:attribute name="password" type="xs:string" use="optional">
42.336 - <xs:annotation>
42.337 - <xs:documentation>DESC_Attribute_password</xs:documentation>
42.338 - </xs:annotation>
42.339 - </xs:attribute>
42.340 - <xs:attribute name="useSSL" type="xs:boolean" use="optional">
42.341 - <xs:annotation>
42.342 - <xs:documentation>DESC_Attribute_useSSL</xs:documentation>
42.343 - </xs:annotation>
42.344 - </xs:attribute>
42.345 - <xs:attribute name="mailFolder" type="xs:string" use="optional">
42.346 - <xs:annotation>
42.347 - <xs:documentation>DESC_Attribute_mailFolder</xs:documentation>
42.348 - </xs:annotation>
42.349 - </xs:attribute>
42.350 - <xs:attribute name="maxMessageCount" type="xs:int" use="optional">
42.351 - <xs:annotation>
42.352 - <xs:documentation>DESC_Attribute_maxMessageCount</xs:documentation>
42.353 - </xs:annotation>
42.354 - </xs:attribute>
42.355 - <xs:attribute name="messageAckMode" type="email:modeTypes" use="optional">
42.356 - <xs:annotation>
42.357 - <xs:documentation>DESC_Attribute_messageAckMode</xs:documentation>
42.358 - </xs:annotation>
42.359 - </xs:attribute>
42.360 - <xs:attribute name="messageAckOperation" type="email:ackOperation" use="optional">
42.361 - <xs:annotation>
42.362 - <xs:documentation>DESC_Attribute_messageAckOperation</xs:documentation>
42.363 - </xs:annotation>
42.364 - </xs:attribute>
42.365 - <xs:attribute name="pollingInterval" type="xs:string" use="optional">
42.366 - <xs:annotation>
42.367 - <xs:documentation>DESC_Attribute_pollingInterval</xs:documentation>
42.368 - </xs:annotation>
42.369 - </xs:attribute>
42.370 - </xs:extension>
42.371 - </xs:complexContent>
42.372 - </xs:complexType>
42.373 - <xs:complexType name="tSMTPAddress">
42.374 - <xs:complexContent>
42.375 - <xs:extension base="wsdl:tExtensibilityElement">
42.376 - <xs:attribute name="location" type="xs:string" use="required">
42.377 - <xs:annotation>
42.378 - <xs:documentation>DESC_Attribute_location</xs:documentation>
42.379 - </xs:annotation>
42.380 - </xs:attribute>
42.381 - <xs:attribute name="emailServer" type="xs:string" use="optional">
42.382 - <xs:annotation>
42.383 - <xs:documentation>DESC_Attribute_emailServer</xs:documentation>
42.384 - </xs:annotation>
42.385 - </xs:attribute>
42.386 - <xs:attribute name="port" type="xs:int" use="optional">
42.387 - <xs:annotation>
42.388 - <xs:documentation>DESC_Attribute_port</xs:documentation>
42.389 - </xs:annotation>
42.390 - </xs:attribute>
42.391 - <xs:attribute name="userName" type="xs:string" use="optional">
42.392 - <xs:annotation>
42.393 - <xs:documentation>DESC_Attribute_userName</xs:documentation>
42.394 - </xs:annotation>
42.395 - </xs:attribute>
42.396 - <xs:attribute name="password" type="xs:string" use="optional">
42.397 - <xs:annotation>
42.398 - <xs:documentation>DESC_Attribute_password</xs:documentation>
42.399 - </xs:annotation>
42.400 - </xs:attribute>
42.401 - <xs:attribute name="useSSL" type="xs:boolean" use="optional">
42.402 - <xs:annotation>
42.403 - <xs:documentation>DESC_Attribute_useSSL</xs:documentation>
42.404 - </xs:annotation>
42.405 - </xs:attribute>
42.406 - </xs:extension>
42.407 - </xs:complexContent>
42.408 - </xs:complexType>
42.409 - <xs:simpleType name="modeTypes">
42.410 - <xs:restriction base="xs:string">
42.411 - <xs:enumeration value="automatic"/>
42.412 - <xs:enumeration value="manual"/>
42.413 - </xs:restriction>
42.414 - </xs:simpleType>
42.415 - <xs:simpleType name="ackOperation">
42.416 - <xs:restriction base="xs:string">
42.417 - <xs:enumeration value="delete"/>
42.418 - <xs:enumeration value="markAsRead"/>
42.419 - </xs:restriction>
42.420 - </xs:simpleType>
42.421 - <xs:simpleType name="useTypes">
42.422 - <xs:restriction base="xs:string">
42.423 - <xs:enumeration value="literal"/>
42.424 - <xs:enumeration value="encoded"/>
42.425 - </xs:restriction>
42.426 - </xs:simpleType>
42.427 -</xs:schema>
43.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/layer.xml Mon Jul 14 01:11:23 2008 +0530
43.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
43.3 @@ -1,128 +0,0 @@
43.4 -<?xml version="1.0" encoding="UTF-8"?>
43.5 -
43.6 -<!--
43.7 - The contents of this file are subject to the terms of the Common Development
43.8 - and Distribution License (the License). You may not use this file except in
43.9 - compliance with the License.
43.10 -
43.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
43.12 - or http://www.netbeans.org/cddl.txt.
43.13 -
43.14 - When distributing Covered Code, include this CDDL Header Notice in each file
43.15 - and include the License file at http://www.netbeans.org/cddl.txt.
43.16 - If applicable, add the following below the CDDL Header, with the fields
43.17 - enclosed by brackets [] replaced by your own identifying information:
43.18 - "Portions Copyrighted [year] [name of copyright owner]"
43.19 -
43.20 - The Original Software is NetBeans. The Initial Developer of the Original
43.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
43.22 - Microsystems, Inc. All Rights Reserved.
43.23 --->
43.24 -
43.25 -<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
43.26 -<filesystem>
43.27 - <folder name="WSDLEditor">
43.28 - <file name="email-ext.xsd" url="email-ext.xsd">
43.29 - <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/email/" />
43.30 - <attr name="prefix" stringvalue="email" />
43.31 - </file>
43.32 -
43.33 - <folder name="Binding">
43.34 - <file name="EMAILIMAPBinding" >
43.35 - <attr name="xsdFileName" stringvalue="email-ext" />
43.36 - <attr name="element" stringvalue="IMAPbinding"/>
43.37 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.38 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/Start_16.png"/>
43.39 - </file>
43.40 - <file name="EMAILPOP3Binding" >
43.41 - <attr name="xsdFileName" stringvalue="email-ext" />
43.42 - <attr name="element" stringvalue="POP3binding"/>
43.43 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.44 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/Start_16.png"/>
43.45 - </file>
43.46 - <file name="EMAILSMTPBinding" >
43.47 - <attr name="xsdFileName" stringvalue="email-ext" />
43.48 - <attr name="element" stringvalue="SMTPbinding"/>
43.49 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.50 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/Start_16.png"/>
43.51 - </file>
43.52 - </folder>
43.53 - <folder name="BindingOperation">
43.54 - <file name="EMAILIMAPBindingOperation" >
43.55 - <attr name="xsdFileName" stringvalue="email-ext" />
43.56 - <attr name="element" stringvalue="IMAPoperation"/>
43.57 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.58 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/End_16.png"/>
43.59 - </file>
43.60 - <file name="EMAILPOP3BindingOperation" >
43.61 - <attr name="xsdFileName" stringvalue="email-ext" />
43.62 - <attr name="element" stringvalue="POP3operation"/>
43.63 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.64 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/End_16.png"/>
43.65 - </file>
43.66 - <file name="EMAILSMTPBindingOperation" >
43.67 - <attr name="xsdFileName" stringvalue="email-ext" />
43.68 - <attr name="element" stringvalue="SMTPoperation"/>
43.69 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.70 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/End_16.png"/>
43.71 - </file>
43.72 -
43.73 - </folder>
43.74 -
43.75 - <folder name="BindingOperationInput">
43.76 - <file name="EMAILIMAPBindingOperationInput">
43.77 - <attr name="xsdFileName" stringvalue="email-ext" />
43.78 - <attr name="element" stringvalue="IMAPinput"/>
43.79 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.80 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/PageFlow.png"/>
43.81 - </file>
43.82 -
43.83 - <file name="EMAILPOP3BindingOperationInput">
43.84 - <attr name="xsdFileName" stringvalue="email-ext" />
43.85 - <attr name="element" stringvalue="POP3input"/>
43.86 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.87 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/PageFlow.png"/>
43.88 - </file>
43.89 - <file name="EMAILSMTPBindingOperationInput">
43.90 - <attr name="xsdFileName" stringvalue="email-ext" />
43.91 - <attr name="element" stringvalue="SMTPinput"/>
43.92 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.93 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/PageFlow.png"/>
43.94 - </file>
43.95 -
43.96 - </folder>
43.97 -
43.98 - <folder name="ServicePort">
43.99 - <file name="EMAILIMAPServicePort">
43.100 - <attr name="xsdFileName" stringvalue="email-ext" />
43.101 - <attr name="element" stringvalue="IMAPaddress"/>
43.102 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.103 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/mapping16.png"/>
43.104 - </file>
43.105 - <file name="EMAILPOP3ServicePort">
43.106 - <attr name="xsdFileName" stringvalue="email-ext" />
43.107 - <attr name="element" stringvalue="POP3address"/>
43.108 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.109 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/mapping16.png"/>
43.110 - </file>
43.111 - <file name="EMAILSMTPServicePort">
43.112 - <attr name="xsdFileName" stringvalue="email-ext" />
43.113 - <attr name="element" stringvalue="SMTPaddress"/>
43.114 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.email.resources.Bundle"/>
43.115 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/email/resources/mapping16.png"/>
43.116 - </file>
43.117 - </folder>
43.118 - </folder>
43.119 - <folder name="SeeBeyondJbiComponents">
43.120 - <!-- JBI Component -->
43.121 - <folder name="sun-email-binding">
43.122 - <attr name="id" stringvalue="sun-email-binding"/>
43.123 - <attr name="description" stringvalue="Email Binding"/>
43.124 - <attr name="type" stringvalue="Binding"/>
43.125 - <file name="email.binding-1.0">
43.126 - <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/email/"/>
43.127 - </file>
43.128 - </folder>
43.129 - </folder>
43.130 -</filesystem>
43.131 -
44.1 Binary file wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/map.gif has changed
45.1 Binary file wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/mapping16.png has changed
46.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/resources/wsdl.xsd Mon Jul 14 01:11:23 2008 +0530
46.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
46.3 @@ -1,330 +0,0 @@
46.4 -<?xml version="1.0" encoding="UTF-8" ?>
46.5 -
46.6 -<!--
46.7 - The contents of this file are subject to the terms of the Common Development
46.8 - and Distribution License (the License). You may not use this file except in
46.9 - compliance with the License.
46.10 -
46.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
46.12 - or http://www.netbeans.org/cddl.txt.
46.13 -
46.14 - When distributing Covered Code, include this CDDL Header Notice in each file
46.15 - and include the License file at http://www.netbeans.org/cddl.txt.
46.16 - If applicable, add the following below the CDDL Header, with the fields
46.17 - enclosed by brackets [] replaced by your own identifying information:
46.18 - "Portions Copyrighted [year] [name of copyright owner]"
46.19 -
46.20 - The Original Software is NetBeans. The Initial Developer of the Original
46.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
46.22 - Microsystems, Inc. All Rights Reserved.
46.23 --->
46.24 -
46.25 -<!--
46.26 -
46.27 -Copyright 2001 - 2005, International Business Machines Corporation and Microsoft Corporation
46.28 -All Rights Reserved
46.29 -
46.30 -License for WSDL Schema Files
46.31 -
46.32 -The Authors grant permission to copy and distribute the WSDL Schema
46.33 -Files in any medium without fee or royalty as long as this notice and
46.34 -license are distributed with them. The originals of these files can
46.35 -be located at:
46.36 -
46.37 -http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd
46.38 -
46.39 -THESE SCHEMA FILES ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO REPRESENTATIONS
46.40 -OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THESE FILES, INCLUDING, BUT NOT
46.41 -LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
46.42 -NON-INFRINGEMENT OR TITLE. THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT,
46.43 -INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR
46.44 -RELATING TO ANY USE OR DISTRIBUTION OF THESE FILES.
46.45 -
46.46 -The name and trademarks of the Authors may NOT be used in any manner,
46.47 -including advertising or publicity pertaining to these files or any program
46.48 -or service that uses these files, written prior permission. Title to copyright
46.49 -in these files will at all times remain with the Authors.
46.50 -
46.51 -No other rights are granted by implication, estoppel or otherwise.
46.52 -
46.53 -
46.54 --->
46.55 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
46.56 - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
46.57 - targetNamespace="http://schemas.xmlsoap.org/wsdl/"
46.58 - elementFormDefault="qualified" >
46.59 -
46.60 - <xs:complexType mixed="true" name="tDocumentation" >
46.61 - <xs:sequence>
46.62 - <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
46.63 - </xs:sequence>
46.64 - </xs:complexType>
46.65 -
46.66 - <xs:complexType name="tDocumented" >
46.67 - <xs:annotation>
46.68 - <xs:documentation>
46.69 - This type is extended by component types to allow them to be documented
46.70 - </xs:documentation>
46.71 - </xs:annotation>
46.72 - <xs:sequence>
46.73 - <xs:element name="documentation" type="wsdl:tDocumentation" minOccurs="0" />
46.74 - </xs:sequence>
46.75 - </xs:complexType>
46.76 -
46.77 - <xs:complexType name="tExtensibleAttributesDocumented" abstract="true" >
46.78 - <xs:complexContent>
46.79 - <xs:extension base="wsdl:tDocumented" >
46.80 - <xs:annotation>
46.81 - <xs:documentation>
46.82 - This type is extended by component types to allow attributes from other namespaces to be added.
46.83 - </xs:documentation>
46.84 - </xs:annotation>
46.85 - <xs:anyAttribute namespace="##other" processContents="lax" />
46.86 - </xs:extension>
46.87 - </xs:complexContent>
46.88 - </xs:complexType>
46.89 -
46.90 - <xs:complexType name="tExtensibleDocumented" abstract="true" >
46.91 - <xs:complexContent>
46.92 - <xs:extension base="wsdl:tDocumented" >
46.93 - <xs:annotation>
46.94 - <xs:documentation>
46.95 - This type is extended by component types to allow elements from other namespaces to be added.
46.96 - </xs:documentation>
46.97 - </xs:annotation>
46.98 - <xs:sequence>
46.99 - <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
46.100 - </xs:sequence>
46.101 - </xs:extension>
46.102 - </xs:complexContent>
46.103 - </xs:complexType>
46.104 -
46.105 - <xs:element name="definitions" type="wsdl:tDefinitions" >
46.106 - <xs:key name="message" >
46.107 - <xs:selector xpath="wsdl:message" />
46.108 - <xs:field xpath="@name" />
46.109 - </xs:key>
46.110 - <xs:key name="portType" >
46.111 - <xs:selector xpath="wsdl:portType" />
46.112 - <xs:field xpath="@name" />
46.113 - </xs:key>
46.114 - <xs:key name="binding" >
46.115 - <xs:selector xpath="wsdl:binding" />
46.116 - <xs:field xpath="@name" />
46.117 - </xs:key>
46.118 - <xs:key name="service" >
46.119 - <xs:selector xpath="wsdl:service" />
46.120 - <xs:field xpath="@name" />
46.121 - </xs:key>
46.122 - <xs:key name="import" >
46.123 - <xs:selector xpath="wsdl:import" />
46.124 - <xs:field xpath="@namespace" />
46.125 - </xs:key>
46.126 - </xs:element>
46.127 -
46.128 - <xs:group name="anyTopLevelOptionalElement" >
46.129 - <xs:annotation>
46.130 - <xs:documentation>
46.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.
46.132 - </xs:documentation>
46.133 - </xs:annotation>
46.134 - <xs:choice>
46.135 - <xs:element name="import" type="wsdl:tImport" />
46.136 - <xs:element name="types" type="wsdl:tTypes" />
46.137 - <xs:element name="message" type="wsdl:tMessage" >
46.138 - <xs:unique name="part" >
46.139 - <xs:selector xpath="wsdl:part" />
46.140 - <xs:field xpath="@name" />
46.141 - </xs:unique>
46.142 - </xs:element>
46.143 - <xs:element name="portType" type="wsdl:tPortType" />
46.144 - <xs:element name="binding" type="wsdl:tBinding" />
46.145 - <xs:element name="service" type="wsdl:tService" >
46.146 - <xs:unique name="port" >
46.147 - <xs:selector xpath="wsdl:port" />
46.148 - <xs:field xpath="@name" />
46.149 - </xs:unique>
46.150 - </xs:element>
46.151 - </xs:choice>
46.152 - </xs:group>
46.153 -
46.154 - <xs:complexType name="tDefinitions" >
46.155 - <xs:complexContent>
46.156 - <xs:extension base="wsdl:tExtensibleDocumented" >
46.157 - <xs:sequence>
46.158 - <xs:group ref="wsdl:anyTopLevelOptionalElement" minOccurs="0" maxOccurs="unbounded" />
46.159 - </xs:sequence>
46.160 - <xs:attribute name="targetNamespace" type="xs:anyURI" use="optional" />
46.161 - <xs:attribute name="name" type="xs:NCName" use="optional" />
46.162 - </xs:extension>
46.163 - </xs:complexContent>
46.164 - </xs:complexType>
46.165 -
46.166 - <xs:complexType name="tImport" >
46.167 - <xs:complexContent>
46.168 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
46.169 - <xs:attribute name="namespace" type="xs:anyURI" use="required" />
46.170 - <xs:attribute name="location" type="xs:anyURI" use="required" />
46.171 - </xs:extension>
46.172 - </xs:complexContent>
46.173 - </xs:complexType>
46.174 -
46.175 - <xs:complexType name="tTypes" >
46.176 - <xs:complexContent>
46.177 - <xs:extension base="wsdl:tExtensibleDocumented" />
46.178 - </xs:complexContent>
46.179 - </xs:complexType>
46.180 -
46.181 - <xs:complexType name="tMessage" >
46.182 - <xs:complexContent>
46.183 - <xs:extension base="wsdl:tExtensibleDocumented" >
46.184 - <xs:sequence>
46.185 - <xs:element name="part" type="wsdl:tPart" minOccurs="0" maxOccurs="unbounded" />
46.186 - </xs:sequence>
46.187 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.188 - </xs:extension>
46.189 - </xs:complexContent>
46.190 - </xs:complexType>
46.191 -
46.192 - <xs:complexType name="tPart" >
46.193 - <xs:complexContent>
46.194 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
46.195 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.196 - <xs:attribute name="element" type="xs:QName" use="optional" />
46.197 - <xs:attribute name="type" type="xs:QName" use="optional" />
46.198 - </xs:extension>
46.199 - </xs:complexContent>
46.200 - </xs:complexType>
46.201 -
46.202 - <xs:complexType name="tPortType" >
46.203 - <xs:complexContent>
46.204 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
46.205 - <xs:sequence>
46.206 - <xs:element name="operation" type="wsdl:tOperation" minOccurs="0" maxOccurs="unbounded" />
46.207 - </xs:sequence>
46.208 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.209 - </xs:extension>
46.210 - </xs:complexContent>
46.211 - </xs:complexType>
46.212 -
46.213 - <xs:complexType name="tOperation" >
46.214 - <xs:complexContent>
46.215 - <xs:extension base="wsdl:tExtensibleDocumented" >
46.216 - <xs:sequence>
46.217 - <xs:choice>
46.218 - <xs:group ref="wsdl:request-response-or-one-way-operation" />
46.219 - <xs:group ref="wsdl:solicit-response-or-notification-operation" />
46.220 - </xs:choice>
46.221 - </xs:sequence>
46.222 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.223 - <xs:attribute name="parameterOrder" type="xs:NMTOKENS" use="optional" />
46.224 - </xs:extension>
46.225 - </xs:complexContent>
46.226 - </xs:complexType>
46.227 -
46.228 - <xs:group name="request-response-or-one-way-operation" >
46.229 - <xs:sequence>
46.230 - <xs:element name="input" type="wsdl:tParam" />
46.231 - <xs:sequence minOccurs='0' >
46.232 - <xs:element name="output" type="wsdl:tParam" />
46.233 - <xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
46.234 - </xs:sequence>
46.235 - </xs:sequence>
46.236 - </xs:group>
46.237 -
46.238 - <xs:group name="solicit-response-or-notification-operation" >
46.239 - <xs:sequence>
46.240 - <xs:element name="output" type="wsdl:tParam" />
46.241 - <xs:sequence minOccurs='0' >
46.242 - <xs:element name="input" type="wsdl:tParam" />
46.243 - <xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
46.244 - </xs:sequence>
46.245 - </xs:sequence>
46.246 - </xs:group>
46.247 -
46.248 - <xs:complexType name="tParam" >
46.249 - <xs:complexContent>
46.250 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
46.251 - <xs:attribute name="name" type="xs:NCName" use="optional" />
46.252 - <xs:attribute name="message" type="xs:QName" use="required" />
46.253 - </xs:extension>
46.254 - </xs:complexContent>
46.255 - </xs:complexType>
46.256 -
46.257 - <xs:complexType name="tFault" >
46.258 - <xs:complexContent>
46.259 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
46.260 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.261 - <xs:attribute name="message" type="xs:QName" use="required" />
46.262 - </xs:extension>
46.263 - </xs:complexContent>
46.264 - </xs:complexType>
46.265 -
46.266 - <xs:complexType name="tBinding" >
46.267 - <xs:complexContent>
46.268 - <xs:extension base="wsdl:tExtensibleDocumented" >
46.269 - <xs:sequence>
46.270 - <xs:element name="operation" type="wsdl:tBindingOperation" minOccurs="0" maxOccurs="unbounded" />
46.271 - </xs:sequence>
46.272 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.273 - <xs:attribute name="type" type="xs:QName" use="required" />
46.274 - </xs:extension>
46.275 - </xs:complexContent>
46.276 - </xs:complexType>
46.277 -
46.278 - <xs:complexType name="tBindingOperationMessage" >
46.279 - <xs:complexContent>
46.280 - <xs:extension base="wsdl:tExtensibleDocumented" >
46.281 - <xs:attribute name="name" type="xs:NCName" use="optional" />
46.282 - </xs:extension>
46.283 - </xs:complexContent>
46.284 - </xs:complexType>
46.285 -
46.286 - <xs:complexType name="tBindingOperationFault" >
46.287 - <xs:complexContent>
46.288 - <xs:extension base="wsdl:tExtensibleDocumented" >
46.289 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.290 - </xs:extension>
46.291 - </xs:complexContent>
46.292 - </xs:complexType>
46.293 -
46.294 - <xs:complexType name="tBindingOperation" >
46.295 - <xs:complexContent>
46.296 - <xs:extension base="wsdl:tExtensibleDocumented" >
46.297 - <xs:sequence>
46.298 - <xs:element name="input" type="wsdl:tBindingOperationMessage" minOccurs="0" />
46.299 - <xs:element name="output" type="wsdl:tBindingOperationMessage" minOccurs="0" />
46.300 - <xs:element name="fault" type="wsdl:tBindingOperationFault" minOccurs="0" maxOccurs="unbounded" />
46.301 - </xs:sequence>
46.302 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.303 - </xs:extension>
46.304 - </xs:complexContent>
46.305 - </xs:complexType>
46.306 -
46.307 - <xs:complexType name="tService" >
46.308 - <xs:complexContent>
46.309 - <xs:extension base="wsdl:tExtensibleDocumented" >
46.310 - <xs:sequence>
46.311 - <xs:element name="port" type="wsdl:tPort" minOccurs="0" maxOccurs="unbounded" />
46.312 - </xs:sequence>
46.313 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.314 - </xs:extension>
46.315 - </xs:complexContent>
46.316 - </xs:complexType>
46.317 -
46.318 - <xs:complexType name="tPort" >
46.319 - <xs:complexContent>
46.320 - <xs:extension base="wsdl:tExtensibleDocumented" >
46.321 - <xs:attribute name="name" type="xs:NCName" use="required" />
46.322 - <xs:attribute name="binding" type="xs:QName" use="required" />
46.323 - </xs:extension>
46.324 - </xs:complexContent>
46.325 - </xs:complexType>
46.326 -
46.327 - <xs:attribute name="arrayType" type="xs:string" />
46.328 - <xs:attribute name="required" type="xs:boolean" />
46.329 - <xs:complexType name="tExtensibilityElement" abstract="true" >
46.330 - <xs:attribute ref="wsdl:required" use="optional" />
46.331 - </xs:complexType>
46.332 -
46.333 -</xs:schema>
46.334 \ No newline at end of file
47.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/template/Bundle.properties Mon Jul 14 01:11:23 2008 +0530
47.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
47.3 @@ -1,29 +0,0 @@
47.4 -#
47.5 -# The contents of this file are subject to the terms of the Common Development
47.6 -# and Distribution License (the License). You may not use this file except in
47.7 -# compliance with the License.
47.8 -#
47.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
47.10 -# or http://www.netbeans.org/cddl.txt.
47.11 -#
47.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
47.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
47.14 -# If applicable, add the following below the CDDL Header, with the fields
47.15 -# enclosed by brackets [] replaced by your own identifying information:
47.16 -# "Portions Copyrighted [year] [name of copyright owner]"
47.17 -#
47.18 -# The Original Software is NetBeans. The Initial Developer of the Original
47.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
47.20 -# Microsystems, Inc. All Rights Reserved.
47.21 -#
47.22 -
47.23 -#Smtp=Smtp
47.24 -#Imap=Imap
47.25 -#Pop=Pop
47.26 -http_//schemas.sun.com/jbi/wsdl-extensions/email/=Email
47.27 -
47.28 -TEMPLATEGROUP_name=EMAIL
47.29 -TEMPLATEGROUP_prefix_email=email
47.30 -TEMPLATE_name_SMTP=SMTP Transport
47.31 -TEMPLATE_name_IMAP=Imap Transport
47.32 -TEMPLATE_name_POP3=POP3 Transport
47.33 \ No newline at end of file
48.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/template/EmailTemplateProvider.java Mon Jul 14 01:11:23 2008 +0530
48.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
48.3 @@ -1,40 +0,0 @@
48.4 -/*
48.5 - * The contents of this file are subject to the terms of the Common Development
48.6 - * and Distribution License (the License). You may not use this file except in
48.7 - * compliance with the License.
48.8 - *
48.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
48.10 - * or http://www.netbeans.org/cddl.txt.
48.11 - *
48.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
48.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
48.14 - * If applicable, add the following below the CDDL Header, with the fields
48.15 - * enclosed by brackets [] replaced by your own identifying information:
48.16 - * "Portions Copyrighted [year] [name of copyright owner]"
48.17 - *
48.18 - * The Original Software is NetBeans. The Initial Developer of the Original
48.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
48.20 - * Microsystems, Inc. All Rights Reserved.
48.21 - */
48.22 -
48.23 -package org.netbeans.modules.wsdlextensions.email.template;
48.24 -
48.25 -import java.io.InputStream;
48.26 -import org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider;
48.27 -import org.openide.util.NbBundle;
48.28 -
48.29 -public class EmailTemplateProvider extends ExtensibilityElementTemplateProvider {
48.30 -
48.31 - static final String emailTemplateUrl = "/org/netbeans/modules/wsdlextensions/email/template/template.xml";
48.32 -
48.33 - public InputStream getTemplateInputStream() {
48.34 - return EmailTemplateProvider.class.getResourceAsStream(emailTemplateUrl);
48.35 - }
48.36 -
48.37 - public String getLocalizedMessage(String str, Object[] objects) {
48.38 - return NbBundle.getMessage(EmailTemplateProvider.class, str, objects);
48.39 - }
48.40 -
48.41 -
48.42 -
48.43 -}
49.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/template/template.xml Mon Jul 14 01:11:23 2008 +0530
49.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
49.3 @@ -1,85 +0,0 @@
49.4 -<?xml version="1.0" encoding="UTF-8"?>
49.5 -
49.6 -<!--
49.7 - The contents of this file are subject to the terms of the Common Development
49.8 - and Distribution License (the License). You may not use this file except in
49.9 - compliance with the License.
49.10 -
49.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
49.12 - or http://www.netbeans.org/cddl.txt.
49.13 -
49.14 - When distributing Covered Code, include this CDDL Header Notice in each file
49.15 - and include the License file at http://www.netbeans.org/cddl.txt.
49.16 - If applicable, add the following below the CDDL Header, with the fields
49.17 - enclosed by brackets [] replaced by your own identifying information:
49.18 - "Portions Copyrighted [year] [name of copyright owner]"
49.19 -
49.20 - The Original Software is NetBeans. The Initial Developer of the Original
49.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
49.22 - Microsystems, Inc. All Rights Reserved.
49.23 --->
49.24 -
49.25 -<!--
49.26 - Document : template.xml
49.27 - Created on : August 25, 2006, 5:39 PM
49.28 - Author : sweng
49.29 - Description: Describes the EMAIL Binding Component's extensibility element views on WSDL wizard
49.30 --->
49.31 -<templateGroup namespace="http://schemas.sun.com/jbi/wsdl-extensions/email/"
49.32 - xmlns="http://xml.netbeans.org/schema/templates"
49.33 - xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"
49.34 - xsi:schemaLocation="http://xml.netbeans.org/schema/templates
49.35 - templates.xsd" prefix="email">
49.36 - <template name="ImapTransport">
49.37 - <wsdlElement name="Binding">
49.38 - <extensionElement name="IMAPbinding"/>
49.39 - </wsdlElement>
49.40 - <wsdlElement name="BindingOperation">
49.41 - <extensionElement name="IMAPoperation"/>
49.42 - </wsdlElement>
49.43 - <wsdlElement name="BindingOperationInput">
49.44 - <extensionElement name="IMAPinput"/>
49.45 - </wsdlElement>
49.46 - <wsdlElement name="ServicePort">
49.47 - <extensionElement name="IMAPaddress">
49.48 - <extensionAttr name="emailServer" defaultValue="localhost"/>
49.49 - <extensionAttr name="useSSL" defaultValue="false"/>
49.50 - </extensionElement>
49.51 - </wsdlElement>
49.52 - </template>
49.53 - <template name="POP3Transport">
49.54 - <wsdlElement name="Binding">
49.55 - <extensionElement name="POP3binding"/>
49.56 - </wsdlElement>
49.57 - <wsdlElement name="BindingOperation">
49.58 - <extensionElement name="POP3operation"/>
49.59 - </wsdlElement>
49.60 - <wsdlElement name="BindingOperationInput">
49.61 - <extensionElement name="POP3input"/>
49.62 - </wsdlElement>
49.63 - <wsdlElement name="ServicePort">
49.64 - <extensionElement name="POP3address">
49.65 - <extensionAttr name="emailServer" defaultValue="localhost"/>
49.66 - <extensionAttr name="useSSL" defaultValue="false"/>
49.67 - </extensionElement>
49.68 - </wsdlElement>
49.69 - </template>
49.70 - <template name="SMTPTransport">
49.71 - <wsdlElement name="Binding">
49.72 - <extensionElement name="SMTPbinding"/>
49.73 - </wsdlElement>
49.74 - <wsdlElement name="BindingOperation">
49.75 - <extensionElement name="SMTPoperation"/>
49.76 - </wsdlElement>
49.77 - <wsdlElement name="BindingOperationInput">
49.78 - <extensionElement name="SMTPinput"/>
49.79 - </wsdlElement>
49.80 - <wsdlElement name="ServicePort">
49.81 - <extensionElement name="SMTPaddress">
49.82 - <extensionAttr name="location" defaultValue="mailto:someUser@localhost.com"/>
49.83 - <extensionAttr name="emailServer" defaultValue="localhost"/>
49.84 - <extensionAttr name="useSSL" defaultValue="false"/>
49.85 - </extensionElement>
49.86 - </wsdlElement>
49.87 - </template>
49.88 -</templateGroup>
49.89 \ No newline at end of file
50.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/validator/Bundle.properties Mon Jul 14 01:11:23 2008 +0530
50.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
50.3 @@ -1,46 +0,0 @@
50.4 -# The contents of this file are subject to the terms of the Common Development
50.5 -# and Distribution License (the License). You may not use this file except in
50.6 -# compliance with the License.
50.7 -#
50.8 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
50.9 -# or http://www.netbeans.org/cddl.txt.
50.10 -#
50.11 -# When distributing Covered Code, include this CDDL Header Notice in each file
50.12 -# and include the License file at http://www.netbeans.org/cddl.txt.
50.13 -# If applicable, add the following below the CDDL Header, with the fields
50.14 -# enclosed by brackets [] replaced by your own identifying information:
50.15 -# "Portions Copyrighted [year] [name of copyright owner]"
50.16 -#
50.17 -# The Original Software is NetBeans. The Initial Developer of the Original
50.18 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
50.19 -# Microsystems, Inc. All Rights Reserved.
50.20 -
50.21 -## put semantics validation messages here
50.22 -EMAILAddress.MISSING_EMAIL_URL= In the provided "email:address" location URL, "mailto:" is missing.
50.23 -EMAILHeader.MISSING_HEADER_VALUE= Value is missing for one of the specified header.
50.24 -EMAILHeader.MISSING_HEADER_KEY=Header Key is missing
50.25 -EMAILMAILBOX.NOT_VALID_MAILBOX= Please provide a valid "email:address" location.
50.26 -EMAILAddress.NOT_VALID_MAIL_ADDRESS=Mail id is not valid.
50.27 -EMAILAddress.NOT_VALID_MAIL_ADDRESS_MORE_@ =Mail id has more then one '@' symbol , it is not valid.
50.28 -EMAILAddress.NOT_VALID_MAIL_ADDRESS_HAS_EQUALS=Mail id contains '=' which is not allowed.
50.29 -EMAILAddress.NOT_VALID_MAIL_ADDRESS_NO_DOT=Mail id should contain a '.'
50.30 -EMAILAddress.NOT_VALID_MAIL_ADDRESS_MORE_DOT=Mail id should not contain more than one '.'
50.31 -EMAILAddress.NEED_VALUE_FOR_LOCATION=Location value is missing in the address specified
50.32 -EMAILAddress.NEED_VALUE_FOR_EMAILSERVER=EMAILServer needs to be specified
50.33 -EMAILBindingValidation.ONLY_ONE_EMAIL_BINDING_ALLOWED=Only one EMAIL binding allowed
50.34 -EMAILExtValidation.MISSING_EMAIL_ADDRESS=Missing "email:address" attribute.
50.35 -EMAILExtValidation.ONLY_ONE_EMAILADDRESS_ALLOWED=Only one "email:address" is allowed
50.36 -EMAILBindingValidation.ATMOST_ONE_Message_IN_INPUT=Only one email input message is allowed
50.37 -EMAILBindingValidation.EMAIL_OPERATION_WO_EMAIL_BINDING=Email operation without a binding is not allowed
50.38 - EMAILBindingValidation.MISSING_EMAIL_OPERATION=Missing email operation for binding
50.39 -EMAILInput.NOT_VALID_MAIL_ADDRESS=Mail id does not contain '@'.
50.40 -EMAILInput.NOT_VALID_MAIL_ADDRESS_MORE_@ =Mail id has more then one '@' symbol , it is not valid.
50.41 -EMAILInput.NOT_VALID_MAIL_ADDRESS_NO_DOT=Mail id should contain a '.'
50.42 -EMAILInput.NOT_VALID_MAIL_ADDRESS_MORE_DOT=Mail id should not contain more than one '.'
50.43 -EMAILINPUTValidation.ENCODING_STYLE_NOT_SPECIFIED=Encoding style not specified.
50.44 -EMAILBindingValidation.BINDING_REFERENCES_INVALID_PORTTYPE=Multiple bindings are not supported
50.45 -EMAILINPUTValidation.INVALID_FROM_ADDRESS=From attribute should be a valid part name
50.46 -EMAILINPUTValidation.INVALID_TO_ADDRESS=To attribute should be a valid part name
50.47 -EMAILINPUTValidation.INVALID_CC_ADDRESS=CC attribute should be a valid part name
50.48 -EMAILINPUTValidation.INVALID_BCC_ADDRESS=BCC attribute should be a valid part name
50.49 -EMAILINPUTValidation.INVALID_PART_NAME=part name should be selected from the list of available parts
50.50 \ No newline at end of file
51.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/validator/EMAILComponentValidator.java Mon Jul 14 01:11:23 2008 +0530
51.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
51.3 @@ -1,602 +0,0 @@
51.4 -/*
51.5 - * The contents of this file are subject to the terms of the Common Development
51.6 - * and Distribution License (the License). You may not use this file except in
51.7 - * compliance with the License.
51.8 - *
51.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
51.10 - * or http://www.netbeans.org/cddl.txt.
51.11 - *
51.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
51.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
51.14 - * If applicable, add the following below the CDDL Header, with the fields
51.15 - * enclosed by brackets [] replaced by your own identifying information:
51.16 - * "Portions Copyrighted [year] [name of copyright owner]"
51.17 - *
51.18 - * The Original Software is NetBeans. The Initial Developer of the Original
51.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
51.20 - * Microsystems, Inc. All Rights Reserved.
51.21 - */
51.22 -package org.netbeans.modules.wsdlextensions.email.validator;
51.23 -
51.24 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPAddress;
51.25 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPBinding;
51.26 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPComponent;
51.27 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPInput;
51.28 -import org.netbeans.modules.wsdlextensions.email.imap.IMAPOperation;
51.29 -
51.30 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Address;
51.31 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Binding;
51.32 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Component;
51.33 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Input;
51.34 -import org.netbeans.modules.wsdlextensions.email.pop3.POP3Operation;
51.35 -import java.net.URI;
51.36 -import java.net.URL;
51.37 -import java.util.Collection;
51.38 -import java.util.Collections;
51.39 -import java.util.HashSet;
51.40 -import java.util.Iterator;
51.41 -import java.util.List;
51.42 -import java.util.StringTokenizer;
51.43 -import java.util.ResourceBundle;
51.44 -
51.45 -import org.netbeans.modules.xml.wsdl.model.Binding;
51.46 -import org.netbeans.modules.xml.wsdl.model.BindingInput;
51.47 -import org.netbeans.modules.xml.wsdl.model.BindingFault;
51.48 -import org.netbeans.modules.xml.wsdl.model.BindingOperation;
51.49 -import org.netbeans.modules.xml.wsdl.model.BindingOutput;
51.50 -import org.netbeans.modules.xml.wsdl.model.PortType;
51.51 -import org.netbeans.modules.xml.wsdl.model.Definitions;
51.52 -import org.netbeans.modules.xml.wsdl.model.Input;
51.53 -import org.netbeans.modules.xml.wsdl.model.Output;
51.54 -import org.netbeans.modules.xml.wsdl.model.Port;
51.55 -
51.56 -import org.netbeans.modules.xml.wsdl.model.Service;
51.57 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
51.58 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
51.59 -
51.60 -import org.netbeans.modules.xml.xam.Component;
51.61 -import org.netbeans.modules.xml.xam.Model;
51.62 -import org.netbeans.modules.xml.xam.Model.State;
51.63 -import org.netbeans.modules.xml.xam.dom.NamedComponentReference;
51.64 -import org.netbeans.modules.xml.wsdl.model.Message;
51.65 -import org.netbeans.modules.xml.xam.spi.Validation;
51.66 -import org.netbeans.modules.xml.xam.spi.Validation.ValidationType;
51.67 -import org.netbeans.modules.xml.xam.spi.ValidationResult;
51.68 -import org.netbeans.modules.xml.xam.spi.Validator;
51.69 -import org.netbeans.modules.xml.xam.spi.Validator.ResultItem;
51.70 -
51.71 -//import com.sun.jbi.ui.devtool.wsdl.email.EMAILBinding;
51.72 -import org.netbeans.modules.xml.wsdl.model.OperationParameter;
51.73 -import org.netbeans.modules.xml.wsdl.model.Part;
51.74 -
51.75 -
51.76 -/**
51.77 - * semantic validation, check WSDL elements & attributes values and
51.78 - * any relationship between;
51.79 - *
51.80 - * @author Sainath Adiraju
51.81 - */
51.82 -public class EMAILComponentValidator
51.83 - implements Validator, IMAPComponent.Visitor , POP3Component.Visitor{
51.84 -
51.85 - // private static final String EMAIL_URL_PREFIX = "email://";
51.86 - // private static final String EMAIL_URL_LOGIN_HOST_DELIM = "@";
51.87 - // private static final String EMAIL_URL_COLON_DELIM = ":";
51.88 -
51.89 -
51.90 - private static final ResourceBundle mMessages =
51.91 - ResourceBundle.getBundle("org.netbeans.modules.wsdlextensions.email.validator.Bundle");
51.92 -
51.93 - private Validation mValidation;
51.94 - private ValidationType mValidationType;
51.95 - private ValidationResult mValidationResult;
51.96 -
51.97 - public static final ValidationResult EMPTY_RESULT =
51.98 - new ValidationResult( Collections.EMPTY_SET,
51.99 - Collections.EMPTY_SET);
51.100 -
51.101 - public EMAILComponentValidator() {}
51.102 -
51.103 - /**
51.104 - * Returns name of this validation service.
51.105 - */
51.106 - public String getName() {
51.107 - return getClass().getName();
51.108 - }
51.109 -
51.110 - /**
51.111 - * Validates given model.
51.112 - *
51.113 - * @param model model to validate.
51.114 - * @param validation reference to the validation context.
51.115 - * @param validationType the type of validation to perform
51.116 - * @return ValidationResult.
51.117 - */
51.118 - public ValidationResult validate(Model model, Validation validation,
51.119 - ValidationType validationType) {
51.120 - mValidation = validation;
51.121 - mValidationType = validationType;
51.122 -
51.123 - HashSet<ResultItem> results = new HashSet<ResultItem>();
51.124 - HashSet<Model> models = new HashSet<Model>();
51.125 - models.add(model);
51.126 - mValidationResult = new ValidationResult(results, models);
51.127 -
51.128 - // Traverse the model
51.129 - if (model instanceof WSDLModel) {
51.130 - WSDLModel wsdlModel = (WSDLModel)model;
51.131 -
51.132 - if (model.getState() == State.NOT_WELL_FORMED) {
51.133 - return EMPTY_RESULT;
51.134 - }
51.135 -
51.136 - Definitions defs = wsdlModel.getDefinitions();
51.137 - Iterator<Binding> bindings = defs.getBindings().iterator();
51.138 -
51.139 - while (bindings.hasNext()) {
51.140 - Binding binding = bindings.next();
51.141 -
51.142 - if (binding.getType() == null || binding.getType().get() == null) {
51.143 - continue;
51.144 - }
51.145 -
51.146 -
51.147 - int numIMAPBindings = binding.getExtensibilityElements(IMAPBinding.class).size();
51.148 -
51.149 - //if (numIMAPBindings == 0) {
51.150 - // continue;
51.151 - //}
51.152 -
51.153 - int numPOP3Bindings = binding.getExtensibilityElements(POP3Binding.class).size();
51.154 -
51.155 - if (numPOP3Bindings == 0 && numIMAPBindings == 0) {
51.156 - continue;
51.157 - }
51.158 -
51.159 -
51.160 - if (numIMAPBindings > 0 && numIMAPBindings != 1) {
51.161 - results.add(
51.162 - new Validator.ResultItem(this,
51.163 - Validator.ResultType.ERROR,
51.164 - binding,
51.165 - mMessages.getString("EMAILBindingValidation.ONLY_ONE_EMAIL_BINDING_ALLOWED")));
51.166 - }
51.167 -
51.168 - if (numPOP3Bindings > 0 && numPOP3Bindings != 1) {
51.169 - results.add(
51.170 - new Validator.ResultItem(this,
51.171 - Validator.ResultType.ERROR,
51.172 - binding,
51.173 - mMessages.getString("POP3BindingValidation.ONLY_ONE_EMAIL_BINDING_ALLOWED")));
51.174 - }
51.175 -
51.176 - Iterator<BindingOperation> bindingOps =
51.177 - binding.getBindingOperations().iterator();
51.178 - boolean foundIMAPOp = false;
51.179 - boolean foundPOP3Op = false;
51.180 -
51.181 - while (bindingOps.hasNext()) {
51.182 - BindingOperation bindingOp = bindingOps.next();
51.183 - List imapOpsList = bindingOp.getExtensibilityElements(IMAPOperation.class);
51.184 - List pop3OpsList = bindingOp.getExtensibilityElements(POP3Operation.class);
51.185 - Iterator<IMAPOperation> imapOps = imapOpsList.iterator();
51.186 - Iterator<POP3Operation> pop3Ops = pop3OpsList.iterator();
51.187 -
51.188 - while (imapOps.hasNext()) {
51.189 - imapOps.next().accept(this);
51.190 - }
51.191 - while (pop3Ops.hasNext()){
51.192 - pop3Ops.next().accept(this);
51.193 - }
51.194 -
51.195 - if(imapOpsList.size() > 0 || (pop3OpsList.size()) > 0) {
51.196 - if(imapOpsList.size() > 0)
51.197 - foundIMAPOp = true;
51.198 - else
51.199 - foundPOP3Op = true;
51.200 - BindingInput bindingInput = bindingOp.getBindingInput();
51.201 - if (bindingInput != null) {
51.202 - int inputMessageCnt = 0;
51.203 - Iterator<IMAPInput> imapInput =
51.204 - bindingInput.getExtensibilityElements(IMAPInput.class).iterator();
51.205 - Iterator<POP3Input> pop3Input =
51.206 - bindingInput.getExtensibilityElements(POP3Input.class).iterator();
51.207 - while (imapInput.hasNext()) {
51.208 - inputMessageCnt++;
51.209 - IMAPInput imapInputEle = imapInput.next();
51.210 - imapInputEle.accept(this);
51.211 - validate(imapInputEle, bindingInput.getInput().get());
51.212 - //emailInputEle.accept(this,bindingInput.getInput().get());
51.213 - }
51.214 - while (pop3Input.hasNext()) {
51.215 - inputMessageCnt++;
51.216 - POP3Input pop3InputEle = pop3Input.next();
51.217 - pop3InputEle.accept(this);
51.218 - validate(pop3InputEle, bindingInput.getInput().get());
51.219 -
51.220 - }
51.221 - if ( inputMessageCnt > 1 ) {
51.222 - results.add(
51.223 - new Validator.ResultItem(this,
51.224 - Validator.ResultType.ERROR,
51.225 - binding,
51.226 - mMessages.getString("EMAILBindingValidation.ATMOST_ONE_Message_IN_INPUT") + inputMessageCnt));
51.227 - }
51.228 - }
51.229 -
51.230 -
51.231 - }
51.232 - }
51.233 - // there is email:binding but no email:operation
51.234 - if ( numIMAPBindings > 0 && !foundIMAPOp ) {
51.235 - results.add(
51.236 - new Validator.ResultItem(this,
51.237 - Validator.ResultType.ERROR,
51.238 - binding,
51.239 - mMessages.getString("EMAILBindingValidation.MISSING_EMAIL_OPERATION")));
51.240 - }
51.241 - if ( numPOP3Bindings > 0 && !foundPOP3Op ) {
51.242 - results.add(
51.243 - new Validator.ResultItem(this,
51.244 - Validator.ResultType.ERROR,
51.245 - binding,
51.246 - mMessages.getString("EMAILBindingValidation.MISSING_EMAIL_OPERATION")));
51.247 - }
51.248 - // there is no imap:binding but there are imap:operation
51.249 - if ( numIMAPBindings == 0 && foundIMAPOp ) {
51.250 - results.add(
51.251 - new Validator.ResultItem(this,
51.252 - Validator.ResultType.ERROR,
51.253 - binding,
51.254 - mMessages.getString("EMAILBindingValidation.EMAIL_OPERATION_WO_EMAIL_BINDING")));
51.255 - }
51.256 - if ( numPOP3Bindings == 0 && foundPOP3Op ) {
51.257 - results.add(
51.258 - new Validator.ResultItem(this,
51.259 - Validator.ResultType.ERROR,
51.260 - binding,
51.261 - mMessages.getString("EMAILBindingValidation.EMAIL_OPERATION_WO_EMAIL_BINDING")));
51.262 - }
51.263 - }
51.264 -
51.265 - Iterator<Service> services = defs.getServices().iterator();
51.266 - while (services.hasNext()) {
51.267 - Iterator<Port> ports = services.next().getPorts().iterator();
51.268 - while (ports.hasNext()) {
51.269 - Port port = ports.next();
51.270 - if(port.getBinding() != null) {
51.271 - Binding binding = port.getBinding().get();
51.272 - if(binding != null) {
51.273 - int numRelatedIMAPBindings = binding.getExtensibilityElements(IMAPBinding.class).size();
51.274 - Iterator<IMAPAddress> imapAddresses = port.getExtensibilityElements(IMAPAddress.class).iterator();
51.275 -
51.276 - int numRelatedPOP3Bindings = binding.getExtensibilityElements(POP3Binding.class).size();
51.277 - Iterator<POP3Address> pop3Addresses = port.getExtensibilityElements(POP3Address.class).iterator();
51.278 -
51.279 - if((numRelatedIMAPBindings > 0) && (!imapAddresses.hasNext())){
51.280 - results.add(
51.281 - new Validator.ResultItem(this,
51.282 - Validator.ResultType.ERROR,
51.283 - port,
51.284 - mMessages.getString("EMAILExtValidation.MISSING_EMAIL_ADDRESS")));
51.285 - }
51.286 -
51.287 - if((numRelatedPOP3Bindings > 0) && (!pop3Addresses.hasNext())){
51.288 - results.add(
51.289 - new Validator.ResultItem(this,
51.290 - Validator.ResultType.ERROR,
51.291 - port,
51.292 - mMessages.getString("EMAILExtValidation.MISSING_EMAIL_ADDRESS")));
51.293 - }
51.294 -
51.295 - if(port.getExtensibilityElements(IMAPAddress.class).size() > 1){
51.296 - results.add(
51.297 - new Validator.ResultItem(this,
51.298 - Validator.ResultType.ERROR,
51.299 - port,
51.300 - mMessages.getString("EMAILExtValidation.ONLY_ONE_EMAILADDRESS_ALLOWED")));
51.301 - }
51.302 - if(port.getExtensibilityElements(POP3Address.class).size() > 1){
51.303 - results.add(
51.304 - new Validator.ResultItem(this,
51.305 - Validator.ResultType.ERROR,
51.306 - port,
51.307 - mMessages.getString("EMAILExtValidation.ONLY_ONE_EMAILADDRESS_ALLOWED")));
51.308 - }
51.309 -
51.310 - while (imapAddresses.hasNext()) {
51.311 - imapAddresses.next().accept(this);
51.312 - }
51.313 - while (pop3Addresses.hasNext()){
51.314 - pop3Addresses.next().accept(this);
51.315 - }
51.316 -
51.317 -
51.318 -
51.319 - }
51.320 - }
51.321 - }
51.322 - }
51.323 - }
51.324 - // Clear out our state
51.325 - mValidation = null;
51.326 - mValidationType = null;
51.327 -
51.328 - return mValidationResult;
51.329 - }
51.330 -
51.331 - public void visit(IMAPAddress target) {
51.332 - // validate the following:
51.333 - // (1) attribute 'url' has the right syntax: i.e. mailto:sainath.adirjau@sun.com
51.334 - //
51.335 - //Collection<ResultItem> results =
51.336 - // mValidationResult.getValidationResult();
51.337 -
51.338 - // EMAILAddressURL url = new EMAILAddressURL();
51.339 - //try{
51.340 - //url.unmarshal(results, this, target);
51.341 - // }catch(Exception ex){
51.342 -
51.343 - //}
51.344 - }
51.345 -
51.346 - public void visit(POP3Address target) {
51.347 - // nothing to validate at this point of time
51.348 - }
51.349 - public void visit(IMAPBinding target) {
51.350 - // for email binding tag - nothing to validate at this point
51.351 - }
51.352 -
51.353 - public void visit(POP3Binding target) {
51.354 - // for email binding tag - nothing to validate at this point
51.355 - }
51.356 -
51.357 - public void visit(IMAPOperation target) {
51.358 - // for email operation tag - nothing to validate at this point
51.359 - }
51.360 -
51.361 - public void visit(POP3Operation target) {
51.362 - // for email operation tag - nothing to validate at this point
51.363 - }
51.364 -
51.365 - public void visit(IMAPInput target){
51.366 - //nothing to validate
51.367 - }
51.368 -
51.369 - public void visit(POP3Input target){
51.370 - //nothing to validate
51.371 - }
51.372 - private void validate (IMAPInput target,OperationParameter opParam){
51.373 -
51.374 - Collection<ResultItem> results = mValidationResult.getValidationResult();
51.375 - String from = target.getFrom();
51.376 -
51.377 - if(from != null){
51.378 - if (from==""){
51.379 - results.add(new Validator.ResultItem(this,
51.380 - Validator.ResultType.ERROR,
51.381 - target,
51.382 - mMessages.getString("EMAILINPUTValidation.INVALID_FROM_ADDRESS")));
51.383 - }else if (!referencesValidMessagePart(opParam.getMessage(), from)) {
51.384 - results.add(new Validator.ResultItem(this,
51.385 - Validator.ResultType.ERROR,
51.386 - target,
51.387 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.388 - }
51.389 -
51.390 - }
51.391 -
51.392 - String to = target.getTo();
51.393 - if(to != null){
51.394 - if(to==""){
51.395 - results.add(new Validator.ResultItem(this,
51.396 - Validator.ResultType.ERROR,
51.397 - target,
51.398 - mMessages.getString("EMAILINPUTValidation.INVALID_TO_ADDRESS")));
51.399 - }else if (!referencesValidMessagePart(opParam.getMessage(), to)) {
51.400 - results.add(new Validator.ResultItem(this,
51.401 - Validator.ResultType.ERROR,
51.402 - target,
51.403 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.404 - }
51.405 - }
51.406 - String cc = target.getCc();
51.407 - if(cc != null){
51.408 - if(cc==""){
51.409 - results.add(new Validator.ResultItem(this,
51.410 - Validator.ResultType.ERROR,
51.411 - target,
51.412 - mMessages.getString("EMAILINPUTValidation.INVALID_CC_ADDRESS")));
51.413 - }else if (!referencesValidMessagePart(opParam.getMessage(), cc)) {
51.414 - results.add(new Validator.ResultItem(this,
51.415 - Validator.ResultType.ERROR,
51.416 - target,
51.417 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.418 - }
51.419 - }
51.420 - String bcc = target.getBcc();
51.421 - if(bcc != null){
51.422 - if(bcc==""){
51.423 - results.add(new Validator.ResultItem(this,
51.424 - Validator.ResultType.ERROR,
51.425 - target,
51.426 - mMessages.getString("EMAILINPUTValidation.INVALID_BCC_ADDRESS")));
51.427 - }else if (!referencesValidMessagePart(opParam.getMessage(), bcc)) {
51.428 - results.add(new Validator.ResultItem(this,
51.429 - Validator.ResultType.ERROR,
51.430 - target,
51.431 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.432 - }
51.433 - }
51.434 - String message = target.getMessageName();
51.435 - if(message != null){
51.436 - if(message==""){
51.437 - results.add(new Validator.ResultItem(this,
51.438 - Validator.ResultType.ERROR,
51.439 - target,
51.440 - mMessages.getString("EMAILINPUTValidation.INVALID_BCC_ADDRESS")));
51.441 - }else if (!referencesValidMessagePart(opParam.getMessage(), message)) {
51.442 - results.add(new Validator.ResultItem(this,
51.443 - Validator.ResultType.ERROR,
51.444 - target,
51.445 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.446 - }
51.447 - }
51.448 - String subject = target.getSubjectName();
51.449 - if(subject != null){
51.450 - if(subject==""){
51.451 - results.add(new Validator.ResultItem(this,
51.452 - Validator.ResultType.ERROR,
51.453 - target,
51.454 - mMessages.getString("EMAILINPUTValidation.INVALID_BCC_ADDRESS")));
51.455 - }else if (!referencesValidMessagePart(opParam.getMessage(), subject)) {
51.456 - results.add(new Validator.ResultItem(this,
51.457 - Validator.ResultType.ERROR,
51.458 - target,
51.459 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.460 - }
51.461 - }
51.462 - String charset = target.getCharSet();
51.463 - if(charset != null){
51.464 - if(charset==""){
51.465 - results.add(new Validator.ResultItem(this,
51.466 - Validator.ResultType.ERROR,
51.467 - target,
51.468 - mMessages.getString("EMAILINPUTValidation.INVALID_BCC_ADDRESS")));
51.469 - }else if (!referencesValidMessagePart(opParam.getMessage(), charset)) {
51.470 - results.add(new Validator.ResultItem(this,
51.471 - Validator.ResultType.ERROR,
51.472 - target,
51.473 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.474 - }
51.475 - }
51.476 -
51.477 -
51.478 -
51.479 -
51.480 - }
51.481 -
51.482 - private void validate (POP3Input target,OperationParameter opParam){
51.483 -
51.484 - Collection<ResultItem> results = mValidationResult.getValidationResult();
51.485 - String from = target.getFrom();
51.486 -
51.487 - if(from != null){
51.488 - if (from==""){
51.489 - results.add(new Validator.ResultItem(this,
51.490 - Validator.ResultType.ERROR,
51.491 - target,
51.492 - mMessages.getString("EMAILINPUTValidation.INVALID_FROM_ADDRESS")));
51.493 - }else if (!referencesValidMessagePart(opParam.getMessage(), from)) {
51.494 - results.add(new Validator.ResultItem(this,
51.495 - Validator.ResultType.ERROR,
51.496 - target,
51.497 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.498 - }
51.499 -
51.500 - }
51.501 -
51.502 - String to = target.getTo();
51.503 - if(to != null){
51.504 - if(to==""){
51.505 - results.add(new Validator.ResultItem(this,
51.506 - Validator.ResultType.ERROR,
51.507 - target,
51.508 - mMessages.getString("EMAILINPUTValidation.INVALID_TO_ADDRESS")));
51.509 - }else if (!referencesValidMessagePart(opParam.getMessage(), to)) {
51.510 - results.add(new Validator.ResultItem(this,
51.511 - Validator.ResultType.ERROR,
51.512 - target,
51.513 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.514 - }
51.515 - }
51.516 - String cc = target.getCc();
51.517 - if(cc != null){
51.518 - if(cc==""){
51.519 - results.add(new Validator.ResultItem(this,
51.520 - Validator.ResultType.ERROR,
51.521 - target,
51.522 - mMessages.getString("EMAILINPUTValidation.INVALID_CC_ADDRESS")));
51.523 - }else if (!referencesValidMessagePart(opParam.getMessage(), cc)) {
51.524 - results.add(new Validator.ResultItem(this,
51.525 - Validator.ResultType.ERROR,
51.526 - target,
51.527 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.528 - }
51.529 - }
51.530 - String bcc = target.getBcc();
51.531 - if(bcc != null){
51.532 - if(bcc==""){
51.533 - results.add(new Validator.ResultItem(this,
51.534 - Validator.ResultType.ERROR,
51.535 - target,
51.536 - mMessages.getString("EMAILINPUTValidation.INVALID_BCC_ADDRESS")));
51.537 - }else if (!referencesValidMessagePart(opParam.getMessage(), bcc)) {
51.538 - results.add(new Validator.ResultItem(this,
51.539 - Validator.ResultType.ERROR,
51.540 - target,
51.541 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.542 - }
51.543 - }
51.544 - String message = target.getMessageName();
51.545 - if(message != null){
51.546 - if(message==""){
51.547 - results.add(new Validator.ResultItem(this,
51.548 - Validator.ResultType.ERROR,
51.549 - target,
51.550 - mMessages.getString("EMAILINPUTValidation.INVALID_BCC_ADDRESS")));
51.551 - }else if (!referencesValidMessagePart(opParam.getMessage(), message)) {
51.552 - results.add(new Validator.ResultItem(this,
51.553 - Validator.ResultType.ERROR,
51.554 - target,
51.555 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.556 - }
51.557 - }
51.558 - String subject = target.getSubjectName();
51.559 - if(subject != null){
51.560 - if(subject==""){
51.561 - results.add(new Validator.ResultItem(this,
51.562 - Validator.ResultType.ERROR,
51.563 - target,
51.564 - mMessages.getString("EMAILINPUTValidation.INVALID_BCC_ADDRESS")));
51.565 - }else if (!referencesValidMessagePart(opParam.getMessage(), subject)) {
51.566 - results.add(new Validator.ResultItem(this,
51.567 - Validator.ResultType.ERROR,
51.568 - target,
51.569 - mMessages.getString("EMAILINPUTValidation.INVALID_PART_NAME")));
51.570 - }
51.571 - }
51.572 -
51.573 -
51.574 -
51.575 -
51.576 - }
51.577 -
51.578 - private boolean referencesValidMessagePart (NamedComponentReference<Message> wsdlMessage,
51.579 - String partName) {
51.580 -
51.581 - // Let wsdl validator catch undefined message for operation input or output
51.582 - if (wsdlMessage == null || wsdlMessage.get() == null || wsdlMessage.get().getParts() == null) {
51.583 - return true;
51.584 - }
51.585 -
51.586 - boolean isValdPartReference = false;
51.587 - Iterator<Part> partIter = wsdlMessage.get().getParts().iterator();
51.588 - while(partIter.hasNext()) {
51.589 - Part p = partIter.next();
51.590 - if (p.getName().equals(partName)) {
51.591 - isValdPartReference = true;
51.592 - break;
51.593 - }
51.594 - }
51.595 - return isValdPartReference;
51.596 - }
51.597 -
51.598 - private boolean nonEmptyString(String strToTest) {
51.599 - boolean nonEmpty = false;
51.600 - if (strToTest != null && strToTest.length() > 0) {
51.601 - nonEmpty = true;
51.602 - }
51.603 - return nonEmpty;
51.604 - }
51.605 -}
52.1 --- a/wsdlextensions.email/src/org/netbeans/modules/wsdlextensions/email/validator/EmailValidatorSchemaFactory.java Mon Jul 14 01:11:23 2008 +0530
52.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
52.3 @@ -1,52 +0,0 @@
52.4 -/*
52.5 - * The contents of this file are subject to the terms of the Common Development
52.6 - * and Distribution License (the License). You may not use this file except in
52.7 - * compliance with the License.
52.8 - *
52.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
52.10 - * or http://www.netbeans.org/cddl.txt.
52.11 - *
52.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
52.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
52.14 - * If applicable, add the following below the CDDL Header, with the fields
52.15 - * enclosed by brackets [] replaced by your own identifying information:
52.16 - * "Portions Copyrighted [year] [name of copyright owner]"
52.17 - *
52.18 - * The Original Software is NetBeans. The Initial Developer of the Original
52.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
52.20 - * Microsystems, Inc. All Rights Reserved.
52.21 - */
52.22 -
52.23 -package org.netbeans.modules.wsdlextensions.email.validator;
52.24 -
52.25 -import java.io.InputStream;
52.26 -import javax.xml.transform.Source;
52.27 -import javax.xml.transform.stream.StreamSource;
52.28 -import org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory;
52.29 -
52.30 -/**
52.31 - * This class implements ValidatorSchemaFactory interface.
52.32 - *
52.33 - * @author Sainath Adiraju
52.34 - */
52.35 -public class EmailValidatorSchemaFactory extends ValidatorSchemaFactory{
52.36 - static final String emailXSDUrl = "/org/netbeans/modules/wsdlextensions/email/resources/email-ext.xsd";
52.37 -
52.38 - public String getNamespaceURI() {
52.39 - return "http://schemas.sun.com/jbi/wsdl-extensions/email/";
52.40 - }
52.41 -
52.42 - public InputStream getSchemaInputStream() {
52.43 - return EmailValidatorSchemaFactory.class.getResourceAsStream(emailXSDUrl);
52.44 - }
52.45 -
52.46 - /**
52.47 - * Returns the Inputstream related to this schema
52.48 - */
52.49 - public Source getSchemaSource() {
52.50 - InputStream in = EmailValidatorSchemaFactory.class.getResourceAsStream(emailXSDUrl);
52.51 - Source s = new StreamSource(in);
52.52 - s.setSystemId(EmailValidatorSchemaFactory.class.getResource(emailXSDUrl).toString());
52.53 - return s;
52.54 - }
52.55 -}
53.1 --- a/wsdlextensions.hl7/build.xml Mon Jul 14 01:11:23 2008 +0530
53.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
53.3 @@ -1,28 +0,0 @@
53.4 -<?xml version="1.0" encoding="UTF-8"?>
53.5 -
53.6 -<!--
53.7 - The contents of this file are subject to the terms of the Common Development
53.8 - and Distribution License (the License). You may not use this file except in
53.9 - compliance with the License.
53.10 -
53.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
53.12 - or http://www.netbeans.org/cddl.txt.
53.13 -
53.14 - When distributing Covered Code, include this CDDL Header Notice in each file
53.15 - and include the License file at http://www.netbeans.org/cddl.txt.
53.16 - If applicable, add the following below the CDDL Header, with the fields
53.17 - enclosed by brackets [] replaced by your own identifying information:
53.18 - "Portions Copyrighted [year] [name of copyright owner]"
53.19 -
53.20 - The Original Software is NetBeans. The Initial Developer of the Original
53.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
53.22 - Microsystems, Inc. All Rights Reserved.
53.23 --->
53.24 -
53.25 -<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
53.26 -<!-- for some information on what you could do (e.g. targets to override). -->
53.27 -<!-- If you delete this file and reopen the project it will be recreated. -->
53.28 -<project name="org.netbeans.modules.wsdlextensions.hl7" default="netbeans" basedir=".">
53.29 - <description>Builds, tests, and runs the project org.netbeans.modules.wsdlextensions.hl7.</description>
53.30 - <import file="../../nbbuild/templates/projectized.xml"/>
53.31 -</project>
54.1 --- a/wsdlextensions.hl7/manifest.mf Mon Jul 14 01:11:23 2008 +0530
54.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
54.3 @@ -1,6 +0,0 @@
54.4 -Manifest-Version: 1.0
54.5 -OpenIDE-Module: org.netbeans.modules.wsdlextensions.hl7
54.6 -OpenIDE-Module-Layer: org/netbeans/modules/wsdlextensions/hl7/resources/layer.xml
54.7 -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/wsdlextensions/hl7/resources/Bundle.properties
54.8 -OpenIDE-Module-Specification-Version: 1.0
54.9 -
55.1 --- a/wsdlextensions.hl7/nbproject/genfiles.properties Mon Jul 14 01:11:23 2008 +0530
55.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
55.3 @@ -1,8 +0,0 @@
55.4 -build.xml.data.CRC32=6be4369c
55.5 -build.xml.script.CRC32=835140b2
55.6 -build.xml.stylesheet.CRC32=77ef55dd
55.7 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
55.8 -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
55.9 -nbproject/build-impl.xml.data.CRC32=6be4369c
55.10 -nbproject/build-impl.xml.script.CRC32=435f5f71
55.11 -nbproject/build-impl.xml.stylesheet.CRC32=2607fe5f
56.1 --- a/wsdlextensions.hl7/nbproject/project.properties Mon Jul 14 01:11:23 2008 +0530
56.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
56.3 @@ -1,48 +0,0 @@
56.4 -#
56.5 -# The contents of this file are subject to the terms of the Common Development
56.6 -# and Distribution License (the License). You may not use this file except in
56.7 -# compliance with the License.
56.8 -#
56.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
56.10 -# or http://www.netbeans.org/cddl.txt.
56.11 -#
56.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
56.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
56.14 -# If applicable, add the following below the CDDL Header, with the fields
56.15 -# enclosed by brackets [] replaced by your own identifying information:
56.16 -# "Portions Copyrighted [year] [name of copyright owner]"
56.17 -#
56.18 -# The Original Software is NetBeans. The Initial Developer of the Original
56.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
56.20 -# Microsystems, Inc. All Rights Reserved.
56.21 -#
56.22 -
56.23 -javac.compilerargs=-Xlint:unchecked
56.24 -javac.source=1.5
56.25 -test.unit.cp.extra=\
56.26 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-xdm.jar:\
56.27 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-xam.jar:\
56.28 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-retriever.jar:\
56.29 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-schema-model.jar:\
56.30 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-wsdl-model.jar:\
56.31 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor.jar:\
56.32 - ${netbeans.dest.dir}/platform6/lib/org-openide-modules.jar:\
56.33 - ${netbeans.dest.dir}/platform6/lib/org-openide-util.jar:\
56.34 - ${netbeans.dest.dir}/platform6/modules/org-openide-options.jar:\
56.35 - ${netbeans.dest.dir}/platform6/modules/org-openide-text.jar:\
56.36 - ${netbeans.dest.dir}/platform6/modules/org-openide-nodes.jar:\
56.37 - ${netbeans.dest.dir}/platform6/modules/org-openide-loaders.jar:\
56.38 - ${netbeans.dest.dir}/platform6/modules/org-openide-dialogs.jar:\
56.39 - ${netbeans.dest.dir}/platform6/modules/org-openide-windows.jar:\
56.40 - ${netbeans.dest.dir}/platform6/modules/org-openide-awt.jar:\
56.41 - ${netbeans.dest.dir}/platform6/modules/org-netbeans-modules-masterfs.jar:\
56.42 - ${netbeans.dest.dir}/platform6/core/org-openide-filesystems.jar:\
56.43 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-projectapi.jar:\
56.44 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor-util.jar:\
56.45 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-text.jar:\
56.46 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-core.jar:\
56.47 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor-lib.jar:\
56.48 - ${netbeans.dest.dir}/ide7/modules/org-apache-xml-resolver.jar:\
56.49 - ${netbeans.dest.dir}/soa1/modules/org-netbeans-modules-wsdlextensions-hl7.jar
56.50 -
56.51 -test.unit.run.cp=${test.unit.cp.extra}
57.1 --- a/wsdlextensions.hl7/nbproject/project.xml Mon Jul 14 01:11:23 2008 +0530
57.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
57.3 @@ -1,75 +0,0 @@
57.4 -<?xml version="1.0" encoding="UTF-8"?>
57.5 -
57.6 -<!--
57.7 - The contents of this file are subject to the terms of the Common Development
57.8 - and Distribution License (the License). You may not use this file except in
57.9 - compliance with the License.
57.10 -
57.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
57.12 - or http://www.netbeans.org/cddl.txt.
57.13 -
57.14 - When distributing Covered Code, include this CDDL Header Notice in each file
57.15 - and include the License file at http://www.netbeans.org/cddl.txt.
57.16 - If applicable, add the following below the CDDL Header, with the fields
57.17 - enclosed by brackets [] replaced by your own identifying information:
57.18 - "Portions Copyrighted [year] [name of copyright owner]"
57.19 -
57.20 - The Original Software is NetBeans. The Initial Developer of the Original
57.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
57.22 - Microsystems, Inc. All Rights Reserved.
57.23 --->
57.24 -
57.25 -<project xmlns="http://www.netbeans.org/ns/project/1">
57.26 - <type>org.netbeans.modules.apisupport.project</type>
57.27 - <configuration>
57.28 - <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
57.29 - <code-name-base>org.netbeans.modules.wsdlextensions.hl7</code-name-base>
57.30 - <module-dependencies>
57.31 - <dependency>
57.32 - <code-name-base>org.netbeans.modules.xml.schema.model</code-name-base>
57.33 - <build-prerequisite/>
57.34 - <compile-dependency/>
57.35 - <run-dependency>
57.36 - <release-version>1</release-version>
57.37 - <specification-version>1.1.21</specification-version>
57.38 - </run-dependency>
57.39 - </dependency>
57.40 - <dependency>
57.41 - <code-name-base>org.netbeans.modules.xml.wsdl.model</code-name-base>
57.42 - <build-prerequisite/>
57.43 - <compile-dependency/>
57.44 - <run-dependency>
57.45 - <release-version>1</release-version>
57.46 - <specification-version>1.1.21</specification-version>
57.47 - </run-dependency>
57.48 - </dependency>
57.49 - <dependency>
57.50 - <code-name-base>org.netbeans.modules.xml.wsdl.bindingsupport.api</code-name-base>
57.51 - <build-prerequisite/>
57.52 - <compile-dependency/>
57.53 - <run-dependency>
57.54 - <specification-version>1.0</specification-version>
57.55 - </run-dependency>
57.56 - </dependency>
57.57 - <dependency>
57.58 - <code-name-base>org.netbeans.modules.xml.xam</code-name-base>
57.59 - <build-prerequisite/>
57.60 - <compile-dependency/>
57.61 - <run-dependency>
57.62 - <release-version>1</release-version>
57.63 - <specification-version>1.1.21</specification-version>
57.64 - </run-dependency>
57.65 - </dependency>
57.66 - <dependency>
57.67 - <code-name-base>org.openide.util</code-name-base>
57.68 - <build-prerequisite/>
57.69 - <compile-dependency/>
57.70 - <run-dependency>
57.71 - <specification-version>6.8.22</specification-version>
57.72 - </run-dependency>
57.73 - </dependency>
57.74 - </module-dependencies>
57.75 - <public-packages/>
57.76 - </data>
57.77 - </configuration>
57.78 -</project>
58.1 --- a/wsdlextensions.hl7/src/META-INF/services/org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider Mon Jul 14 01:11:23 2008 +0530
58.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
58.3 @@ -1,1 +0,0 @@
58.4 -org.netbeans.modules.wsdlextensions.hl7.template.HL7TemplateProvider
58.5 \ No newline at end of file
59.1 --- a/wsdlextensions.hl7/src/META-INF/services/org.netbeans.modules.xml.wsdl.model.spi.ElementFactory Mon Jul 14 01:11:23 2008 +0530
59.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
59.3 @@ -1,5 +0,0 @@
59.4 -org.netbeans.modules.wsdlextensions.hl7.impl.HL7ElementFactoryProvider$AddressFactory
59.5 -org.netbeans.modules.wsdlextensions.hl7.impl.HL7ElementFactoryProvider$BindingFactory
59.6 -org.netbeans.modules.wsdlextensions.hl7.impl.HL7ElementFactoryProvider$OperationFactory
59.7 -org.netbeans.modules.wsdlextensions.hl7.impl.HL7ElementFactoryProvider$MessageFactory
59.8 -org.netbeans.modules.wsdlextensions.hl7.impl.HL7ElementFactoryProvider$ProtocolPropertiesFactory
60.1 --- a/wsdlextensions.hl7/src/META-INF/services/org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory Mon Jul 14 01:11:23 2008 +0530
60.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
60.3 @@ -1,1 +0,0 @@
60.4 -org.netbeans.modules.wsdlextensions.hl7.validator.HL7BCValidatorSchemaFactory
60.5 \ No newline at end of file
61.1 --- a/wsdlextensions.hl7/src/META-INF/services/org.netbeans.modules.xml.xam.spi.Validator Mon Jul 14 01:11:23 2008 +0530
61.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
61.3 @@ -1,2 +0,0 @@
61.4 -org.netbeans.modules.wsdlextensions.hl7.validator.HL7ComponentValidator
61.5 -
62.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/HL7Address.java Mon Jul 14 01:11:23 2008 +0530
62.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
62.3 @@ -1,35 +0,0 @@
62.4 -/*
62.5 - * The contents of this file are subject to the terms of the Common Development
62.6 - * and Distribution License (the License). You may not use this file except in
62.7 - * compliance with the License.
62.8 - *
62.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
62.10 - * or http://www.netbeans.org/cddl.txt.
62.11 - *
62.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
62.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
62.14 - * If applicable, add the following below the CDDL Header, with the fields
62.15 - * enclosed by brackets [] replaced by your own identifying information:
62.16 - * "Portions Copyrighted [year] [name of copyright owner]"
62.17 - *
62.18 - * The Original Software is NetBeans. The Initial Developer of the Original
62.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
62.20 - * Microsystems, Inc. All Rights Reserved.
62.21 - */
62.22 -
62.23 -package org.netbeans.modules.wsdlextensions.hl7;
62.24 -
62.25 -/**
62.26 - *
62.27 - * Represents the address element under the wsdl port for HL7 binding
62.28 - * @author raghunadh.teegavarapu@sun.com
62.29 -*/
62.30 -public interface HL7Address extends HL7Component {
62.31 - public static final String HL7_SVR_LOCATIONURL = "location";
62.32 - public static final String HL7_TRANS_PROTOCOL_NAME = "transportProtocolName";
62.33 -
62.34 - public void setHL7ServerLocationURL(String url);
62.35 - public String getHL7ServerLocationURL();
62.36 - public void setTransportProtocolName(String val);
62.37 - public String getTransportProtocolName();
62.38 -}
63.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/HL7Binding.java Mon Jul 14 01:11:23 2008 +0530
63.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
63.3 @@ -1,27 +0,0 @@
63.4 -/*
63.5 - * The contents of this file are subject to the terms of the Common Development
63.6 - * and Distribution License (the License). You may not use this file except in
63.7 - * compliance with the License.
63.8 - *
63.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
63.10 - * or http://www.netbeans.org/cddl.txt.
63.11 - *
63.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
63.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
63.14 - * If applicable, add the following below the CDDL Header, with the fields
63.15 - * enclosed by brackets [] replaced by your own identifying information:
63.16 - * "Portions Copyrighted [year] [name of copyright owner]"
63.17 - *
63.18 - * The Original Software is NetBeans. The Initial Developer of the Original
63.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
63.20 - * Microsystems, Inc. All Rights Reserved.
63.21 - */
63.22 -
63.23 -package org.netbeans.modules.wsdlextensions.hl7;
63.24 -
63.25 -/**
63.26 - * @author raghunadh.teegavarapu@sun.com
63.27 - *
63.28 - */
63.29 -public interface HL7Binding extends HL7Component {
63.30 -}
64.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/HL7Component.java Mon Jul 14 01:11:23 2008 +0530
64.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
64.3 @@ -1,38 +0,0 @@
64.4 -/*
64.5 - * The contents of this file are subject to the terms of the Common Development
64.6 - * and Distribution License (the License). You may not use this file except in
64.7 - * compliance with the License.
64.8 - *
64.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
64.10 - * or http://www.netbeans.org/cddl.txt.
64.11 - *
64.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
64.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
64.14 - * If applicable, add the following below the CDDL Header, with the fields
64.15 - * enclosed by brackets [] replaced by your own identifying information:
64.16 - * "Portions Copyrighted [year] [name of copyright owner]"
64.17 - *
64.18 - * The Original Software is NetBeans. The Initial Developer of the Original
64.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
64.20 - * Microsystems, Inc. All Rights Reserved.
64.21 - */
64.22 -package org.netbeans.modules.wsdlextensions.hl7;
64.23 -
64.24 -import org.netbeans.modules.xml.wsdl.model.ExtensibilityElement;
64.25 -
64.26 -/**
64.27 - * @author raghunadh.teegavarapu@sun.com
64.28 - *
64.29 - */
64.30 -public interface HL7Component extends ExtensibilityElement {
64.31 -
64.32 - public interface Visitor {
64.33 - void visit(HL7Address target);
64.34 - void visit(HL7Binding target);
64.35 - void visit(HL7Operation target);
64.36 - void visit(HL7Message target);
64.37 - void visit(HL7ProtocolProperties target);
64.38 - }
64.39 -
64.40 - void accept(Visitor visitor);
64.41 -}
65.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/HL7Message.java Mon Jul 14 01:11:23 2008 +0530
65.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
65.3 @@ -1,42 +0,0 @@
65.4 -/*
65.5 - * The contents of this file are subject to the terms of the Common Development
65.6 - * and Distribution License (the License). You may not use this file except in
65.7 - * compliance with the License.
65.8 - *
65.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
65.10 - * or http://www.netbeans.org/cddl.txt.
65.11 - *
65.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
65.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
65.14 - * If applicable, add the following below the CDDL Header, with the fields
65.15 - * enclosed by brackets [] replaced by your own identifying information:
65.16 - * "Portions Copyrighted [year] [name of copyright owner]"
65.17 - *
65.18 - * The Original Software is NetBeans. The Initial Developer of the Original
65.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
65.20 - * Microsystems, Inc. All Rights Reserved.
65.21 - */
65.22 -
65.23 -package org.netbeans.modules.wsdlextensions.hl7;
65.24 -
65.25 -/**
65.26 -* @author raghunadh.teegavarapu@sun.com
65.27 -*/
65.28 -public interface HL7Message extends HL7Component {
65.29 - public static final String HL7_USE_PROPERTY = "use";
65.30 - public static final String HL7_ENCODINGSTYLE_PROPERTY = "encodingStyle";
65.31 - public static final String HL7_PART_PROPERTY = "part";
65.32 -
65.33 -
65.34 - //<hl7:message use="encoded"
65.35 - public String getUse();
65.36 - public void setUse(String use);
65.37 - //<hl7:message encodingStyle="hl7encoder-1.0"
65.38 - public String getEncodingStyle();
65.39 - public void setEncodingStyle(String encodingStyle);
65.40 - //<hl7:message part="body"
65.41 - public String getPart();
65.42 - public void setPart(String use);
65.43 -
65.44 -}
65.45 -
66.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/HL7Operation.java Mon Jul 14 01:11:23 2008 +0530
66.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
66.3 @@ -1,27 +0,0 @@
66.4 -/*
66.5 - * The contents of this file are subject to the terms of the Common Development
66.6 - * and Distribution License (the License). You may not use this file except in
66.7 - * compliance with the License.
66.8 - *
66.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
66.10 - * or http://www.netbeans.org/cddl.txt.
66.11 - *
66.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
66.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
66.14 - * If applicable, add the following below the CDDL Header, with the fields
66.15 - * enclosed by brackets [] replaced by your own identifying information:
66.16 - * "Portions Copyrighted [year] [name of copyright owner]"
66.17 - *
66.18 - * The Original Software is NetBeans. The Initial Developer of the Original
66.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
66.20 - * Microsystems, Inc. All Rights Reserved.
66.21 - */
66.22 -
66.23 -package org.netbeans.modules.wsdlextensions.hl7;
66.24 -
66.25 -/**
66.26 - * @author raghunadh.teegavarapu@sun.com
66.27 - *
66.28 - */
66.29 -public interface HL7Operation extends HL7Component {
66.30 -}
67.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/HL7ProtocolProperties.java Mon Jul 14 01:11:23 2008 +0530
67.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
67.3 @@ -1,99 +0,0 @@
67.4 -/*
67.5 - * The contents of this file are subject to the terms of the Common Development
67.6 - * and Distribution License (the License). You may not use this file except in
67.7 - * compliance with the License.
67.8 - *
67.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
67.10 - * or http://www.netbeans.org/cddl.txt.
67.11 - *
67.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
67.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
67.14 - * If applicable, add the following below the CDDL Header, with the fields
67.15 - * enclosed by brackets [] replaced by your own identifying information:
67.16 - * "Portions Copyrighted [year] [name of copyright owner]"
67.17 - *
67.18 - * The Original Software is NetBeans. The Initial Developer of the Original
67.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
67.20 - * Microsystems, Inc. All Rights Reserved.
67.21 - */
67.22 -
67.23 -package org.netbeans.modules.wsdlextensions.hl7;
67.24 -
67.25 -/**
67.26 -* @author raghunadh.teegavarapu@sun.com
67.27 -*/
67.28 -public interface HL7ProtocolProperties extends HL7Component {
67.29 - public static final String HL7_LLP_TYPE = "llpType";
67.30 - public static final String HL7_ACK_MODE = "acknowledgmentMode";
67.31 - public static final String HL7_START_BLOCK_CHARACTER = "startBlockCharacter";
67.32 - public static final String HL7_END_DATA_CHARACTER = "endDataCharacter";
67.33 - public static final String HL7_END_BLOCK_CHARACTER = "endBlockCharacter";
67.34 - public static final String HL7_HLLP_CHECKSUM_ENABLED = "hllpChecksumEnabled";
67.35 - public static final String HL7_SEQNUM_ENABLED = "seqNumEnabled";
67.36 - public static final String HL7_VALIDATE_MSH = "validateMSH";
67.37 - public static final String HL7_PROCESSING_ID = "processingID";
67.38 - public static final String HL7_VERSION_ID = "versionID";
67.39 - public static final String HL7_ENABLED_SFT = "enabledSFT";
67.40 - public static final String HL7_SOFTWARE_VENDOR_ORGANIZATION = "softwareVendorOrganization";
67.41 - public static final String HL7_SOFTWARE_CERTIFIED_VERSION = "softwareCertifiedVersionOrReleaseNumber";
67.42 - public static final String HL7_SOFTWARE_PRODUCT_NAME = "softwareProductName";
67.43 - public static final String HL7_SOFTWARE_BINARY_ID = "softwareBinaryID";
67.44 - public static final String HL7_SOFTWARE_PRODUCT_INFORMATION = "softwareProductInformation";
67.45 - public static final String HL7_SOFTWARE_INSTALL_DATE = "softwareInstallDate";
67.46 -
67.47 -
67.48 - //<hl7:proptocolproperties acknowledgmentMode="original"
67.49 - public void setAckMode(String val);
67.50 - public String getAckMode();
67.51 - //<hl7:proptocolproperties llpType="MLLP"
67.52 - public void setLLPType(String val);
67.53 - public String getLLPType();
67.54 - //<hl7:proptocolproperties endDataCharacter=28
67.55 - public void setEndDataChar(Byte val);
67.56 - public Byte getEndDataChar();
67.57 - //<hl7:proptocolproperties endBlockCharacter=13
67.58 - public void setEndBlockChar(Byte val);
67.59 - public Byte getEndBlockChar();
67.60 - //<hl7:proptocolproperties startBlockCharacter=11
67.61 - public void setStartBlockChar(Byte val);
67.62 - public Byte getStartBlockChar();
67.63 - //<hl7:proptocolproperties hllpChecksumEnabled=false
67.64 - public void setHLLPChkSumEnabled(Boolean val);
67.65 - public Boolean getHLLPChkSumEnabled();
67.66 - //<hl7:proptocolproperties seqNumEnabled=false
67.67 - public void setSeqNumEnabled(Boolean val);
67.68 - public Boolean getSeqNumEnabled();
67.69 - //<hl7:proptocolproperties validateMSH=false
67.70 - public void setValidateMSHEnabled(Boolean val);
67.71 - public Boolean getValidateMSHEnabled();
67.72 - //<hl7:proptocolproperties processingID="P"
67.73 - public void setProcessingID(String val);
67.74 - public String getProcessingID();
67.75 - //<hl7:proptocolproperties versionID="2.4"
67.76 - public void setVersionID(String val);
67.77 - public String getVersionID();
67.78 - //<hl7:proptocolproperties enabledSFT=false
67.79 - public void setSFTEnabled(Boolean val);
67.80 - public Boolean getSFTEnabled();
67.81 - //<hl7:proptocolproperties softwareVendorOrganization=""
67.82 - public void setSoftwareVendorOrganization(String val);
67.83 - public String getSoftwareVendorOrganization();
67.84 - //<hl7:proptocolproperties softwareCertifiedVersion=""
67.85 - public void setSoftwareCertifiedVersionOrReleaseNumber(String val);
67.86 - public String getSoftwareCertifiedVersionOrReleaseNumber();
67.87 - //<hl7:proptocolproperties softwareProductName=""
67.88 - public void setSoftwareProductName(String val);
67.89 - public String getSoftwareProductName();
67.90 - //<hl7:proptocolproperties softwareBinaryID=""
67.91 - public void setSoftwareBinaryID(String val);
67.92 - public String getSoftwareBinaryID();
67.93 - //<hl7:proptocolproperties softwareProductInformation=""
67.94 - public void setSoftwareProductInformation(String val);
67.95 - public String getSoftwareProductInformation();
67.96 - //<hl7:proptocolproperties softwareInstalledDate=""
67.97 - public void setSoftwareInstallDate(String val);
67.98 - public String getSoftwareInstallDate();
67.99 -
67.100 -}
67.101 -
67.102 -
68.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/HL7QName.java Mon Jul 14 01:11:23 2008 +0530
68.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
68.3 @@ -1,64 +0,0 @@
68.4 -/*
68.5 - * The contents of this file are subject to the terms of the Common Development
68.6 - * and Distribution License (the License). You may not use this file except in
68.7 - * compliance with the License.
68.8 - *
68.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
68.10 - * or http://www.netbeans.org/cddl.txt.
68.11 - *
68.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
68.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
68.14 - * If applicable, add the following below the CDDL Header, with the fields
68.15 - * enclosed by brackets [] replaced by your own identifying information:
68.16 - * "Portions Copyrighted [year] [name of copyright owner]"
68.17 - *
68.18 - * The Original Software is NetBeans. The Initial Developer of the Original
68.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
68.20 - * Microsystems, Inc. All Rights Reserved.
68.21 - */
68.22 -
68.23 -package org.netbeans.modules.wsdlextensions.hl7;
68.24 -
68.25 -import java.util.HashSet;
68.26 -import java.util.Set;
68.27 -import javax.xml.namespace.QName;
68.28 -
68.29 -/**
68.30 - * @author raghunadh.teegavarapu@sun.com
68.31 - *
68.32 - */
68.33 -public enum HL7QName {
68.34 - ADDRESS(createHL7QName("address")),
68.35 - BINDING(createHL7QName("binding")),
68.36 - OPERATION(createHL7QName("operation")),
68.37 - MESSAGE(createHL7QName("message")),
68.38 - POTOCOLPROPERTIES(createHL7QName("protocolproperties"));
68.39 -
68.40 - public static final String HL7_NS_URI = "http://schemas.sun.com/jbi/wsdl-extensions/hl7/";
68.41 - public static final String HL7_NS_PREFIX = "hl7";
68.42 -
68.43 - public static QName createHL7QName(String localName){
68.44 - return new QName(HL7_NS_URI, localName, HL7_NS_PREFIX);
68.45 - }
68.46 -
68.47 - HL7QName(QName name) {
68.48 - qName = name;
68.49 - }
68.50 -
68.51 - public QName getQName(){
68.52 - return qName;
68.53 - }
68.54 -
68.55 - private static Set<QName> qnames = null;
68.56 - public static Set<QName> getQNames() {
68.57 - if (qnames == null) {
68.58 - qnames = new HashSet<QName>();
68.59 - for (HL7QName wq : values()) {
68.60 - qnames.add(wq.getQName());
68.61 - }
68.62 - }
68.63 - return qnames;
68.64 - }
68.65 -
68.66 - private final QName qName;
68.67 -}
69.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/impl/HL7AddressImpl.java Mon Jul 14 01:11:23 2008 +0530
69.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
69.3 @@ -1,61 +0,0 @@
69.4 -/*
69.5 - * The contents of this file are subject to the terms of the Common Development
69.6 - * and Distribution License (the License). You may not use this file except in
69.7 - * compliance with the License.
69.8 - *
69.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
69.10 - * or http://www.netbeans.org/cddl.txt.
69.11 - *
69.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
69.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
69.14 - * If applicable, add the following below the CDDL Header, with the fields
69.15 - * enclosed by brackets [] replaced by your own identifying information:
69.16 - * "Portions Copyrighted [year] [name of copyright owner]"
69.17 - *
69.18 - * The Original Software is NetBeans. The Initial Developer of the Original
69.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
69.20 - * Microsystems, Inc. All Rights Reserved.
69.21 - */
69.22 -
69.23 -package org.netbeans.modules.wsdlextensions.hl7.impl;
69.24 -
69.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
69.26 -import org.netbeans.modules.wsdlextensions.hl7.HL7Address;
69.27 -import org.netbeans.modules.wsdlextensions.hl7.HL7Component;
69.28 -import org.netbeans.modules.wsdlextensions.hl7.HL7QName;
69.29 -import org.w3c.dom.Element;
69.30 -
69.31 -/**
69.32 - *
69.33 - * @author raghunadh.teegavarapu@sun.com
69.34 - */
69.35 -public class HL7AddressImpl extends HL7ComponentImpl implements HL7Address {
69.36 - public HL7AddressImpl(WSDLModel model, Element e) {
69.37 - super(model, e);
69.38 - }
69.39 -
69.40 - public HL7AddressImpl(WSDLModel model){
69.41 - this(model, createPrefixedElement(HL7QName.ADDRESS.getQName(), model));
69.42 - }
69.43 -
69.44 - public void accept(HL7Component.Visitor visitor) {
69.45 - visitor.visit(this);
69.46 - }
69.47 -
69.48 - public void setHL7ServerLocationURL(String hl7URL) {
69.49 - setAttribute(HL7Address.HL7_SVR_LOCATIONURL, HL7Attribute.HL7_SVR_LOCATIONURL, hl7URL);
69.50 - }
69.51 -
69.52 - public String getHL7ServerLocationURL() {
69.53 - return getAttribute(HL7Attribute.HL7_SVR_LOCATIONURL);
69.54 - }
69.55 -
69.56 -
69.57 - public String getTransportProtocolName() {
69.58 - return getAttribute(HL7Attribute.HL7_TRANS_PROTOCOL_NAME);
69.59 - }
69.60 -
69.61 - public void setTransportProtocolName(String val) {
69.62 - setAttribute(HL7Address.HL7_TRANS_PROTOCOL_NAME, HL7Attribute.HL7_TRANS_PROTOCOL_NAME, val);
69.63 - }
69.64 -}
70.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/impl/HL7Attribute.java Mon Jul 14 01:11:23 2008 +0530
70.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
70.3 @@ -1,80 +0,0 @@
70.4 -/*
70.5 - * The contents of this file are subject to the terms of the Common Development
70.6 - * and Distribution License (the License). You may not use this file except in
70.7 - * compliance with the License.
70.8 - *
70.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
70.10 - * or http://www.netbeans.org/cddl.txt.
70.11 - *
70.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
70.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
70.14 - * If applicable, add the following below the CDDL Header, with the fields
70.15 - * enclosed by brackets [] replaced by your own identifying information:
70.16 - * "Portions Copyrighted [year] [name of copyright owner]"
70.17 - *
70.18 - * The Original Software is NetBeans. The Initial Developer of the Original
70.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
70.20 - * Microsystems, Inc. All Rights Reserved.
70.21 - */
70.22 -
70.23 -package org.netbeans.modules.wsdlextensions.hl7.impl;
70.24 -
70.25 -import java.util.Collection;
70.26 -import org.netbeans.modules.xml.xam.dom.Attribute;
70.27 -
70.28 -/**
70.29 - * @author raghunadh.teegavarapu@sun.com
70.30 - *
70.31 - */
70.32 -public enum HL7Attribute implements Attribute {
70.33 - HL7_ENCODINGSTYLE_PROPERTY("encodingStyle"),
70.34 - HL7_USE_PROPERTY("use"),
70.35 - HL7_PART_PROPERTY("part"),
70.36 - HL7_SVR_LOCATIONURL("location"),
70.37 - HL7_TRANS_PROTOCOL_NAME("transportProtocolName"),
70.38 - HL7_LLP_TYPE("llpType"),
70.39 - HL7_ACK_MODE("acknowledgmentMode"),
70.40 - HL7_START_BLOCK_CHARACTER("startBlockCharacter"),
70.41 - HL7_END_DATA_CHARACTER("endDataCharacter"),
70.42 - HL7_END_BLOCK_CHARACTER("endBlockCharacter"),
70.43 - HL7_HLLP_CHECKSUM_ENABLED("hllpChecksumEnabled"),
70.44 - HL7_SEQNUM_ENABLED("seqNumEnabled"),
70.45 - HL7_VALIDATE_MSH("validateMSH"),
70.46 - HL7_PROCESSING_ID("processingID"),
70.47 - HL7_VERSION_ID("versionID"),
70.48 - HL7_ENABLED_SFT("enabledSFT"),
70.49 - HL7_SOFTWARE_VENDOR_ORGANIZATION("softwareVendorOrganization"),
70.50 - HL7_SOFTWARE_CERTIFIED_VERSION("softwareCertifiedVersion"),
70.51 - HL7_SOFTWARE_PRODUCT_NAME("softwareProductName"),
70.52 - HL7_SOFTWARE_BINARY_ID("softwareBinaryID"),
70.53 - HL7_SOFTWARE_PRODUCT_INFORMATION("softwareProductInformation"),
70.54 - HL7_SOFTWARE_INSTALL_DATE("softwareInstallDate");
70.55 -
70.56 - private String name;
70.57 - private Class type;
70.58 - private Class subtype;
70.59 -
70.60 - HL7Attribute(String name) {
70.61 - this(name, String.class);
70.62 - }
70.63 -
70.64 - HL7Attribute(String name, Class type) {
70.65 - this(name, type, null);
70.66 - }
70.67 -
70.68 - HL7Attribute(String name, Class type, Class subtype) {
70.69 - this.name = name;
70.70 - this.type = type;
70.71 - this.subtype = subtype;
70.72 - }
70.73 -
70.74 - public String toString() { return name; }
70.75 -
70.76 - public Class getType() {
70.77 - return type;
70.78 - }
70.79 -
70.80 - public String getName() { return name; }
70.81 -
70.82 - public Class getMemberType() { return subtype; }
70.83 -}
71.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/impl/HL7BindingImpl.java Mon Jul 14 01:11:23 2008 +0530
71.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
71.3 @@ -1,45 +0,0 @@
71.4 -/*
71.5 - * The contents of this file are subject to the terms of the Common Development
71.6 - * and Distribution License (the License). You may not use this file except in
71.7 - * compliance with the License.
71.8 - *
71.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
71.10 - * or http://www.netbeans.org/cddl.txt.
71.11 - *
71.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
71.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
71.14 - * If applicable, add the following below the CDDL Header, with the fields
71.15 - * enclosed by brackets [] replaced by your own identifying information:
71.16 - * "Portions Copyrighted [year] [name of copyright owner]"
71.17 - *
71.18 - * The Original Software is NetBeans. The Initial Developer of the Original
71.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
71.20 - * Microsystems, Inc. All Rights Reserved.
71.21 - */
71.22 -
71.23 -
71.24 -package org.netbeans.modules.wsdlextensions.hl7.impl;
71.25 -
71.26 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
71.27 -import org.netbeans.modules.wsdlextensions.hl7.HL7Binding;
71.28 -import org.netbeans.modules.wsdlextensions.hl7.HL7Component;
71.29 -import org.netbeans.modules.wsdlextensions.hl7.HL7QName;
71.30 -import org.w3c.dom.Element;
71.31 -
71.32 -/**
71.33 - * @author raghunadh.teegavarapu@sun.com
71.34 - *
71.35 - */
71.36 -public class HL7BindingImpl extends HL7ComponentImpl implements HL7Binding {
71.37 - public HL7BindingImpl(WSDLModel model, Element e) {
71.38 - super(model, e);
71.39 - }
71.40 -
71.41 - public HL7BindingImpl(WSDLModel model){
71.42 - this(model, createPrefixedElement(HL7QName.BINDING.getQName(), model));
71.43 - }
71.44 -
71.45 - public void accept(HL7Component.Visitor visitor) {
71.46 - visitor.visit(this);
71.47 - }
71.48 -}
72.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/impl/HL7ComponentImpl.java Mon Jul 14 01:11:23 2008 +0530
72.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
72.3 @@ -1,39 +0,0 @@
72.4 -/*
72.5 - * The contents of this file are subject to the terms of the Common Development
72.6 - * and Distribution License (the License). You may not use this file except in
72.7 - * compliance with the License.
72.8 - *
72.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
72.10 - * or http://www.netbeans.org/cddl.txt.
72.11 - *
72.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
72.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
72.14 - * If applicable, add the following below the CDDL Header, with the fields
72.15 - * enclosed by brackets [] replaced by your own identifying information:
72.16 - * "Portions Copyrighted [year] [name of copyright owner]"
72.17 - *
72.18 - * The Original Software is NetBeans. The Initial Developer of the Original
72.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
72.20 - * Microsystems, Inc. All Rights Reserved.
72.21 - */
72.22 -
72.23 -package org.netbeans.modules.wsdlextensions.hl7.impl;
72.24 -
72.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
72.26 -import org.netbeans.modules.wsdlextensions.hl7.HL7Component;
72.27 -import org.netbeans.modules.wsdlextensions.hl7.HL7QName;
72.28 -import org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement;
72.29 -import org.w3c.dom.Element;
72.30 -
72.31 -/**
72.32 -* @author raghunadh.teegavarapu@sun.com
72.33 -*/
72.34 -public abstract class HL7ComponentImpl extends GenericExtensibilityElement implements HL7Component {
72.35 - public HL7ComponentImpl(WSDLModel model, Element e) {
72.36 - super(model, e);
72.37 - }
72.38 -
72.39 - protected String getNamespaceURI() {
72.40 - return HL7QName.HL7_NS_URI;
72.41 - }
72.42 -}
73.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/impl/HL7ElementFactoryProvider.java Mon Jul 14 01:11:23 2008 +0530
73.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
73.3 @@ -1,81 +0,0 @@
73.4 -/*
73.5 - * The contents of this file are subject to the terms of the Common Development
73.6 - * and Distribution License (the License). You may not use this file except in
73.7 - * compliance with the License.
73.8 - *
73.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
73.10 - * or http://www.netbeans.org/cddl.txt.
73.11 - *
73.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
73.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
73.14 - * If applicable, add the following below the CDDL Header, with the fields
73.15 - * enclosed by brackets [] replaced by your own identifying information:
73.16 - * "Portions Copyrighted [year] [name of copyright owner]"
73.17 - *
73.18 - * The Original Software is NetBeans. The Initial Developer of the Original
73.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
73.20 - * Microsystems, Inc. All Rights Reserved.
73.21 - */
73.22 -
73.23 -package org.netbeans.modules.wsdlextensions.hl7.impl;
73.24 -
73.25 -import java.util.ArrayList;
73.26 -import java.util.Collection;
73.27 -import java.util.Collections;
73.28 -import java.util.Set;
73.29 -import javax.xml.namespace.QName;
73.30 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
73.31 -import org.netbeans.modules.wsdlextensions.hl7.HL7QName;
73.32 -import org.netbeans.modules.xml.wsdl.model.spi.ElementFactory;
73.33 -import org.w3c.dom.Element;
73.34 -
73.35 -/**
73.36 - ** @author raghunadh.teegavarapu@sun.com
73.37 -*/
73.38 -public class HL7ElementFactoryProvider {
73.39 -
73.40 - public static class BindingFactory extends ElementFactory {
73.41 - public Set<QName> getElementQNames() {
73.42 - return Collections.singleton(HL7QName.BINDING.getQName());
73.43 - }
73.44 - public WSDLComponent create(WSDLComponent context, Element element) {
73.45 - return new HL7BindingImpl(context.getModel(), element);
73.46 - }
73.47 - }
73.48 -
73.49 - public static class AddressFactory extends ElementFactory {
73.50 - public Set<QName> getElementQNames() {
73.51 - return Collections.singleton(HL7QName.ADDRESS.getQName());
73.52 - }
73.53 - public WSDLComponent create(WSDLComponent context, Element element) {
73.54 - return new HL7AddressImpl(context.getModel(), element);
73.55 - }
73.56 - }
73.57 -
73.58 - public static class OperationFactory extends ElementFactory{
73.59 - public Set<QName> getElementQNames() {
73.60 - return Collections.singleton(HL7QName.OPERATION.getQName());
73.61 - }
73.62 - public WSDLComponent create(WSDLComponent context, Element element) {
73.63 - return new HL7OperationImpl(context.getModel(), element);
73.64 - }
73.65 - }
73.66 -
73.67 - public static class MessageFactory extends ElementFactory{
73.68 - public Set<QName> getElementQNames() {
73.69 - return Collections.singleton(HL7QName.MESSAGE.getQName());
73.70 - }
73.71 - public WSDLComponent create(WSDLComponent context, Element element) {
73.72 - return new HL7MessageImpl(context.getModel(), element);
73.73 - }
73.74 - }
73.75 -
73.76 - public static class ProtocolPropertiesFactory extends ElementFactory{
73.77 - public Set<QName> getElementQNames() {
73.78 - return Collections.singleton(HL7QName.POTOCOLPROPERTIES.getQName());
73.79 - }
73.80 - public WSDLComponent create(WSDLComponent context, Element element) {
73.81 - return new HL7ProtocolPropertiesImpl(context.getModel(), element);
73.82 - }
73.83 - }
73.84 -}
74.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/impl/HL7MessageImpl.java Mon Jul 14 01:11:23 2008 +0530
74.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
74.3 @@ -1,71 +0,0 @@
74.4 -/*
74.5 - * The contents of this file are subject to the terms of the Common Development
74.6 - * and Distribution License (the License). You may not use this file except in
74.7 - * compliance with the License.
74.8 - *
74.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
74.10 - * or http://www.netbeans.org/cddl.txt.
74.11 - *
74.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
74.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
74.14 - * If applicable, add the following below the CDDL Header, with the fields
74.15 - * enclosed by brackets [] replaced by your own identifying information:
74.16 - * "Portions Copyrighted [year] [name of copyright owner]"
74.17 - *
74.18 - * The Original Software is NetBeans. The Initial Developer of the Original
74.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
74.20 - * Microsystems, Inc. All Rights Reserved.
74.21 - */
74.22 -
74.23 -package org.netbeans.modules.wsdlextensions.hl7.impl;
74.24 -
74.25 -import java.util.Collection;
74.26 -import org.netbeans.modules.xml.wsdl.model.Binding;
74.27 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
74.28 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
74.29 -import org.netbeans.modules.wsdlextensions.hl7.HL7Message;
74.30 -import org.netbeans.modules.wsdlextensions.hl7.HL7Component;
74.31 -import org.netbeans.modules.wsdlextensions.hl7.HL7QName;
74.32 -import org.w3c.dom.Element;
74.33 -
74.34 -/**
74.35 - * @author raghunadh.teegavarapu@sun.com
74.36 - */
74.37 -public class HL7MessageImpl extends HL7ComponentImpl implements HL7Message {
74.38 -
74.39 - public HL7MessageImpl(WSDLModel model, Element e) {
74.40 - super(model, e);
74.41 - }
74.42 -
74.43 - public HL7MessageImpl(WSDLModel model){
74.44 - this(model, createPrefixedElement(HL7QName.MESSAGE.getQName(), model));
74.45 - }
74.46 -
74.47 - public void accept(HL7Component.Visitor visitor) {
74.48 - visitor.visit(this);
74.49 - }
74.50 -
74.51 - public String getUse() {
74.52 - return getAttribute(HL7Attribute.HL7_USE_PROPERTY);
74.53 - }
74.54 -
74.55 - public void setUse(String use) {
74.56 - setAttribute(HL7Message.HL7_USE_PROPERTY, HL7Attribute.HL7_USE_PROPERTY, use);
74.57 - }
74.58 -
74.59 - public String getPart() {
74.60 - return getAttribute(HL7Attribute.HL7_PART_PROPERTY);
74.61 - }
74.62 -
74.63 - public void setPart(String part) {
74.64 - setAttribute(HL7_PART_PROPERTY, HL7Attribute.HL7_PART_PROPERTY, part);
74.65 - }
74.66 -
74.67 - public String getEncodingStyle() {
74.68 - return getAttribute(HL7Attribute.HL7_ENCODINGSTYLE_PROPERTY);
74.69 - }
74.70 -
74.71 - public void setEncodingStyle(String encodingStyle) {
74.72 - setAttribute(HL7_ENCODINGSTYLE_PROPERTY, HL7Attribute.HL7_ENCODINGSTYLE_PROPERTY, encodingStyle);
74.73 - }
74.74 -}
75.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/impl/HL7OperationImpl.java Mon Jul 14 01:11:23 2008 +0530
75.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
75.3 @@ -1,50 +0,0 @@
75.4 -/*
75.5 - * The contents of this file are subject to the terms of the Common Development
75.6 - * and Distribution License (the License). You may not use this file except in
75.7 - * compliance with the License.
75.8 - *
75.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
75.10 - * or http://www.netbeans.org/cddl.txt.
75.11 - *
75.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
75.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
75.14 - * If applicable, add the following below the CDDL Header, with the fields
75.15 - * enclosed by brackets [] replaced by your own identifying information:
75.16 - * "Portions Copyrighted [year] [name of copyright owner]"
75.17 - *
75.18 - * The Original Software is NetBeans. The Initial Developer of the Original
75.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
75.20 - * Microsystems, Inc. All Rights Reserved.
75.21 - */
75.22 -
75.23 -package org.netbeans.modules.wsdlextensions.hl7.impl;
75.24 -
75.25 -import java.util.Collection;
75.26 -import org.netbeans.modules.xml.wsdl.model.Binding;
75.27 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
75.28 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
75.29 -import org.netbeans.modules.wsdlextensions.hl7.HL7Binding;
75.30 -import org.netbeans.modules.wsdlextensions.hl7.HL7Operation;
75.31 -import org.netbeans.modules.wsdlextensions.hl7.HL7Component;
75.32 -import org.netbeans.modules.wsdlextensions.hl7.HL7QName;
75.33 -import org.w3c.dom.Element;
75.34 -
75.35 -/**
75.36 - * @author raghunadh.teegavarapu@sun.com
75.37 - *
75.38 - */
75.39 -public class HL7OperationImpl extends HL7ComponentImpl implements HL7Operation {
75.40 -
75.41 - public HL7OperationImpl(WSDLModel model, Element e) {
75.42 - super(model, e);
75.43 - }
75.44 -
75.45 - public HL7OperationImpl(WSDLModel model){
75.46 - this(model, createPrefixedElement(HL7QName.OPERATION.getQName(), model));
75.47 - }
75.48 -
75.49 - public void accept(HL7Component.Visitor visitor) {
75.50 - visitor.visit(this);
75.51 - }
75.52 -
75.53 -}
76.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/impl/HL7ProtocolPropertiesImpl.java Mon Jul 14 01:11:23 2008 +0530
76.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
76.3 @@ -1,268 +0,0 @@
76.4 -/*
76.5 - * The contents of this file are subject to the terms of the Common Development
76.6 - * and Distribution License (the License). You may not use this file except in
76.7 - * compliance with the License.
76.8 - *
76.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
76.10 - * or http://www.netbeans.org/cddl.txt.
76.11 - *
76.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
76.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
76.14 - * If applicable, add the following below the CDDL Header, with the fields
76.15 - * enclosed by brackets [] replaced by your own identifying information:
76.16 - * "Portions Copyrighted [year] [name of copyright owner]"
76.17 - *
76.18 - * The Original Software is NetBeans. The Initial Developer of the Original
76.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
76.20 - * Microsystems, Inc. All Rights Reserved.
76.21 - */
76.22 -
76.23 -package org.netbeans.modules.wsdlextensions.hl7.impl;
76.24 -
76.25 -import java.util.Collection;
76.26 -import org.netbeans.modules.xml.wsdl.model.Binding;
76.27 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
76.28 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
76.29 -import org.netbeans.modules.wsdlextensions.hl7.HL7ProtocolProperties;
76.30 -import org.netbeans.modules.wsdlextensions.hl7.HL7Component;
76.31 -import org.netbeans.modules.wsdlextensions.hl7.HL7QName;
76.32 -import org.w3c.dom.Element;
76.33 -
76.34 -/**
76.35 - * @author raghunadh.teegavarapu@sun.com
76.36 - */
76.37 -public class HL7ProtocolPropertiesImpl extends HL7ComponentImpl implements HL7ProtocolProperties {
76.38 -
76.39 - public HL7ProtocolPropertiesImpl(WSDLModel model, Element e) {
76.40 - super(model, e);
76.41 - }
76.42 -
76.43 - public HL7ProtocolPropertiesImpl(WSDLModel model){
76.44 - this(model, createPrefixedElement(HL7QName.POTOCOLPROPERTIES.getQName(), model));
76.45 - }
76.46 -
76.47 - public void accept(HL7Component.Visitor visitor) {
76.48 - visitor.visit(this);
76.49 - }
76.50 -
76.51 - public String getAckMode() {
76.52 - return getAttribute(HL7Attribute.HL7_ACK_MODE);
76.53 - }
76.54 -
76.55 - public void setAckMode(String ackMode) {
76.56 - setAttribute(HL7ProtocolProperties.HL7_ACK_MODE, HL7Attribute.HL7_ACK_MODE, ackMode);
76.57 - }
76.58 -
76.59 - public String getLLPType() {
76.60 - return getAttribute(HL7Attribute.HL7_LLP_TYPE);
76.61 - }
76.62 -
76.63 - public void setLLPType(String llpType) {
76.64 - setAttribute(HL7ProtocolProperties.HL7_LLP_TYPE, HL7Attribute.HL7_LLP_TYPE, llpType);
76.65 - }
76.66 -
76.67 - public Byte getEndDataChar() {
76.68 - String endDataCharStr = getAttribute(HL7Attribute.HL7_END_DATA_CHARACTER);
76.69 - Byte endDataChar = null;
76.70 - if(nonEmptyString(endDataCharStr)){
76.71 - try {
76.72 - endDataChar = new Byte(endDataCharStr);
76.73 - }
76.74 - catch (Exception e){
76.75 - // Just Ignor
76.76 - }
76.77 -
76.78 - }
76.79 - return endDataChar;
76.80 - }
76.81 -
76.82 - public void setEndDataChar(Byte val) {
76.83 - setAttribute(HL7ProtocolProperties.HL7_END_DATA_CHARACTER, HL7Attribute.HL7_END_DATA_CHARACTER, val.toString());
76.84 - }
76.85 -
76.86 - public Byte getEndBlockChar() {
76.87 - String endBlockCharStr = getAttribute(HL7Attribute.HL7_END_BLOCK_CHARACTER);
76.88 - Byte endBlockChar = null;
76.89 - if(nonEmptyString(endBlockCharStr)){
76.90 - try {
76.91 - endBlockChar = new Byte(endBlockCharStr);
76.92 - }
76.93 - catch (Exception e){
76.94 - // Just Ignor
76.95 - }
76.96 -
76.97 - }
76.98 - return endBlockChar;
76.99 - }
76.100 -
76.101 - public void setEndBlockChar(Byte val) {
76.102 - setAttribute(HL7ProtocolProperties.HL7_END_BLOCK_CHARACTER, HL7Attribute.HL7_END_BLOCK_CHARACTER, val.toString());
76.103 - }
76.104 -
76.105 - public Byte getStartBlockChar() {
76.106 - String startBlockCharStr = getAttribute(HL7Attribute.HL7_START_BLOCK_CHARACTER);
76.107 - Byte startBlockChar = null;
76.108 - if(nonEmptyString(startBlockCharStr)){
76.109 - try {
76.110 - startBlockChar = new Byte(startBlockCharStr);
76.111 - }
76.112 - catch (Exception e){
76.113 - // Just Ignor
76.114 - }
76.115 -
76.116 - }
76.117 - return startBlockChar;
76.118 - }
76.119 -
76.120 - public void setStartBlockChar(Byte val) {
76.121 - setAttribute(HL7ProtocolProperties.HL7_START_BLOCK_CHARACTER, HL7Attribute.HL7_START_BLOCK_CHARACTER, val.toString());
76.122 - }
76.123 -
76.124 - public Boolean getHLLPChkSumEnabled() {
76.125 - String hllpCheckSumStr = getAttribute(HL7Attribute.HL7_HLLP_CHECKSUM_ENABLED);
76.126 - Boolean hllpCheckSum = null;
76.127 - if(nonEmptyString(hllpCheckSumStr)){
76.128 - try {
76.129 - hllpCheckSum = new Boolean(hllpCheckSumStr);
76.130 - }
76.131 - catch (Exception e){
76.132 - // Just Ignor
76.133 - }
76.134 -
76.135 - }
76.136 - return hllpCheckSum;
76.137 - }
76.138 -
76.139 - public void setHLLPChkSumEnabled(Boolean val) {
76.140 - setAttribute(HL7ProtocolProperties.HL7_HLLP_CHECKSUM_ENABLED, HL7Attribute.HL7_HLLP_CHECKSUM_ENABLED, val.toString());
76.141 - }
76.142 -
76.143 - public Boolean getSeqNumEnabled() {
76.144 - String seqNumEnabledStr = getAttribute(HL7Attribute.HL7_SEQNUM_ENABLED);
76.145 - Boolean seqNumEnabled = false;
76.146 - if(nonEmptyString(seqNumEnabledStr)){
76.147 - try {
76.148 - seqNumEnabled = new Boolean(seqNumEnabledStr);
76.149 - }
76.150 - catch (Exception e){
76.151 - // Just Ignor
76.152 - }
76.153 -
76.154 - }
76.155 - return seqNumEnabled;
76.156 - }
76.157 -
76.158 - public void setSeqNumEnabled(Boolean val) {
76.159 - setAttribute(HL7ProtocolProperties.HL7_SEQNUM_ENABLED, HL7Attribute.HL7_SEQNUM_ENABLED, val.toString());
76.160 - }
76.161 -
76.162 - public Boolean getValidateMSHEnabled() {
76.163 - String valdateMSHStr = getAttribute(HL7Attribute.HL7_VALIDATE_MSH);
76.164 - Boolean valdateMSH = null;
76.165 - if(nonEmptyString(valdateMSHStr)){
76.166 - try {
76.167 - valdateMSH = new Boolean(valdateMSHStr);
76.168 - }
76.169 - catch (Exception e){
76.170 - // Just Ignor
76.171 - }
76.172 -
76.173 - }
76.174 - return valdateMSH;
76.175 - }
76.176 -
76.177 - public void setValidateMSHEnabled(Boolean val) {
76.178 - setAttribute(HL7ProtocolProperties.HL7_VALIDATE_MSH, HL7Attribute.HL7_VALIDATE_MSH, val.toString());
76.179 - }
76.180 -
76.181 - public void setProcessingID(String procID) {
76.182 - setAttribute(HL7ProtocolProperties.HL7_PROCESSING_ID, HL7Attribute.HL7_PROCESSING_ID, procID);
76.183 - }
76.184 -
76.185 - public String getProcessingID() {
76.186 - return getAttribute(HL7Attribute.HL7_PROCESSING_ID);
76.187 - }
76.188 -
76.189 - public void setVersionID(String verID) {
76.190 - setAttribute(HL7ProtocolProperties.HL7_VERSION_ID, HL7Attribute.HL7_VERSION_ID, verID);
76.191 - }
76.192 -
76.193 - public String getVersionID() {
76.194 - return getAttribute(HL7Attribute.HL7_VERSION_ID);
76.195 - }
76.196 -
76.197 - public Boolean getSFTEnabled() {
76.198 - String valdateSFTStr = getAttribute(HL7Attribute.HL7_ENABLED_SFT);
76.199 - Boolean valdateSFT = null;
76.200 - if(nonEmptyString(valdateSFTStr)){
76.201 - try {
76.202 - valdateSFT = new Boolean(valdateSFTStr);
76.203 - }
76.204 - catch (Exception e){
76.205 - // Just Ignor
76.206 - }
76.207 -
76.208 - }
76.209 - return valdateSFT;
76.210 - }
76.211 -
76.212 - public void setSFTEnabled(Boolean val) {
76.213 - setAttribute(HL7ProtocolProperties.HL7_ENABLED_SFT, HL7Attribute.HL7_ENABLED_SFT, val.toString());
76.214 - }
76.215 -
76.216 - public void setSoftwareVendorOrganization(String val) {
76.217 - setAttribute(HL7ProtocolProperties.HL7_SOFTWARE_VENDOR_ORGANIZATION, HL7Attribute.HL7_SOFTWARE_VENDOR_ORGANIZATION, val);
76.218 - }
76.219 -
76.220 - public String getSoftwareVendorOrganization() {
76.221 - return getAttribute(HL7Attribute.HL7_SOFTWARE_VENDOR_ORGANIZATION);
76.222 - }
76.223 - public void setSoftwareCertifiedVersionOrReleaseNumber(String val) {
76.224 - setAttribute(HL7ProtocolProperties.HL7_SOFTWARE_CERTIFIED_VERSION, HL7Attribute.HL7_SOFTWARE_CERTIFIED_VERSION, val);
76.225 - }
76.226 -
76.227 - public String getSoftwareCertifiedVersionOrReleaseNumber() {
76.228 - return getAttribute(HL7Attribute.HL7_SOFTWARE_CERTIFIED_VERSION);
76.229 - }
76.230 -
76.231 - public void setSoftwareProductName(String val) {
76.232 - setAttribute(HL7ProtocolProperties.HL7_SOFTWARE_PRODUCT_NAME, HL7Attribute.HL7_SOFTWARE_PRODUCT_NAME, val);
76.233 - }
76.234 -
76.235 - public String getSoftwareProductName() {
76.236 - return getAttribute(HL7Attribute.HL7_SOFTWARE_PRODUCT_NAME);
76.237 - }
76.238 -
76.239 - public void setSoftwareBinaryID(String val) {
76.240 - setAttribute(HL7ProtocolProperties.HL7_SOFTWARE_BINARY_ID, HL7Attribute.HL7_SOFTWARE_BINARY_ID, val);
76.241 - }
76.242 -
76.243 - public String getSoftwareBinaryID() {
76.244 - return getAttribute(HL7Attribute.HL7_SOFTWARE_BINARY_ID);
76.245 - }
76.246 -
76.247 - public void setSoftwareProductInformation(String val) {
76.248 - setAttribute(HL7ProtocolProperties.HL7_SOFTWARE_PRODUCT_INFORMATION, HL7Attribute.HL7_SOFTWARE_PRODUCT_INFORMATION, val);
76.249 - }
76.250 -
76.251 - public String getSoftwareProductInformation() {
76.252 - return getAttribute(HL7Attribute.HL7_SOFTWARE_PRODUCT_INFORMATION);
76.253 - }
76.254 -
76.255 - public void setSoftwareInstallDate(String val) {
76.256 - setAttribute(HL7ProtocolProperties.HL7_SOFTWARE_INSTALL_DATE, HL7Attribute.HL7_SOFTWARE_INSTALL_DATE, val);
76.257 - }
76.258 -
76.259 - public String getSoftwareInstallDate() {
76.260 - return getAttribute(HL7Attribute.HL7_SOFTWARE_INSTALL_DATE);
76.261 - }
76.262 -
76.263 - private boolean nonEmptyString(String strToTest) {
76.264 - boolean nonEmpty = false;
76.265 - if (strToTest != null && strToTest.length() > 0) {
76.266 - nonEmpty = true;
76.267 - }
76.268 - return nonEmpty;
76.269 - }
76.270 -}
76.271 -
77.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/resources/Bundle.properties Mon Jul 14 01:11:23 2008 +0530
77.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
77.3 @@ -1,55 +0,0 @@
77.4 -
77.5 -#
77.6 -# The contents of this file are subject to the terms of the Common Development
77.7 -# and Distribution License (the License). You may not use this file except in
77.8 -# compliance with the License.
77.9 -#
77.10 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
77.11 -# or http://www.netbeans.org/cddl.txt.
77.12 -#
77.13 -# When distributing Covered Code, include this CDDL Header Notice in each file
77.14 -# and include the License file at http://www.netbeans.org/cddl.txt.
77.15 -# If applicable, add the following below the CDDL Header, with the fields
77.16 -# enclosed by brackets [] replaced by your own identifying information:
77.17 -# "Portions Copyrighted [year] [name of copyright owner]"
77.18 -#
77.19 -# The Original Software is NetBeans. The Initial Developer of the Original
77.20 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
77.21 -# Microsystems, Inc. All Rights Reserved.
77.22 -#
77.23 -
77.24 -OpenIDE-Module-Name=HL7 WSDL Extension
77.25 -OpenIDE-Module-Short-Description=HL7 Extension for WSDL Editor.
77.26 -OpenIDE-Module-Long-Description=This module provides HL7 schema and plugs into WSDL Editor.
77.27 -OpenIDE-Module-Display-Category=CAPS
77.28 -WSDLEditor/Binding/HL7Binding= HL7 Binding
77.29 -WSDLEditor/BindingOperation/HL7BindingOperation= HL7 Operation
77.30 -WSDLEditor/BindingOperationInput/HL7Message= HL7 Message
77.31 -DESC_Element_binding="binding" indicates a hl7 protocol based binding.
77.32 -DESC_Element_operation="operation" indicates a hl7 protocol based operation.
77.33 -DESC_Element_message="message" indicates a hl7 protocol based HL7 message to/from WSDL message mapping
77.34 -DESC_Attribute_part=Defines the references to the abstract message part in the WSDL.
77.35 -DESC_Attribute_use=The use type which affects how the message is interpreted. The default is "encoded"
77.36 -DESC_Attribute_encodingStyle=when use is encoded, this attribute defines the encoding style
77.37 -DESC_Element_address="address" indicates a hl7 protocol based service address.
77.38 -DESC_Attribute_location=The connectivity information to connect to HL7 Server. Format hl7://ip:portnumber
77.39 -DESC_Attribute_transportProtocolName=The transport protocol to use to tranport the hl7 messages
77.40 -DESC_Element_protocolproperties="protocolproperties" indicates hl7 protocol properties.
77.41 -DESC_Attribute_acknowledgmentMode=Defines the acknowledgement mode to use to acknowledge the hl7 transactions
77.42 -DESC_Attribute_llpType=Defines the type of Lower Layer Protocol to use
77.43 -DESC_Attribute_startBlockCharacter=Defines Start Block Character Value in decimal ascii number. The allowed range is 1 to 127. Unless there is a conflict, the value should be ASCII VT, i.e., decimal 11.
77.44 -DESC_Attribute_endDataCharacter=Defines End Data Character Value in decimal ascii number. The allowed range is 1 to 127. Unless there is a conflict, the value should be ASCII FS, i.e., decimal 28.
77.45 -DESC_Attribute_endBlockCharacter=Defines End Block Character Value in decimal ascii number. The allowed range is 1 to 127. To be strictly compliant with the HL7 Standard, this parameter MUST be set to a Carriage Return, i.e., decimal 13.
77.46 -DESC_Attribute_hllpChecksumEnabled=Enables or disables HLLP Checksum
77.47 -DESC_Attribute_seqNumEnabled=Enables or disables sequence number protocol
77.48 -DESC_Attribute_processingID=Defines the ProcessingID value against which MSH-11-ProcessingID field in the received message is validated when validateMSH is set to true. Valid values are "P", "D" or "T"
77.49 -DESC_Attribute_versionID=Defines the versionID value against which MSH-12-VersionID field in the received message is validated when validateMSH is set to true. Valid values are "2.1", "2.2" , "2.3", "2.3.1", "2.4", "2.5", "2.5.1" or "3.0"
77.50 -DESC_Attribute_validateMSH=Enables or disables the MSH segment validation
77.51 -DESC_Attribute_enabledSFT=Enables or disables SFT segment processing
77.52 -DESC_Attribute_softwareVendorOrganization=Defines the Software Vendor Organization field (SFT-1-Software Vendor Organization) which identifies the vendor who is responsible for maintaining the application.
77.53 -DESC_Attribute_softwareCertifiedVersionOrReleaseNumber=Specifies HL7 segment SFT-02, the Software Certified Version or Release Number. The latest software version number or release number for the sending system, helps to provide a more complete profile of the application that is sending or receiving HL7 messages.
77.54 -DESC_Attribute_softwareProductName=Specifies HL7 segment SFT-03, the name of the software product that submitted the transaction.The software product name is a key component for identifying the sending application.
77.55 -DESC_Attribute_softwareBinaryID=Specifies HL7 segment SFT-04, the Software Binary ID. This property is available starting with HL7 version 2.5. Software Binary IDs are issued by a vendor for each unique software version instance. These IDs are used to differentiate between differing versions of the same software.Identical Primary IDs indicate that the software is identical at the binary level, but configuration settings may differ.
77.56 -DESC_Attribute_softwareProductInformation=Specifies HL7 segment SFT-05, software product identification information. This may include a description of the software application, configuration settings,modifications made to the software.
77.57 -DESC_Attribute_softwareInstallDate=Specifies HL7 segment SFT-06, the Software Install Date. This is the date(format should be YYYYMMDDHHSS) on which the submitting software was installed at the sending site.
77.58 -DESC_SimpleType_yyyyMMddHHmm=Year Month and Date information.
78.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/resources/hl7-ext.xsd Mon Jul 14 01:11:23 2008 +0530
78.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
78.3 @@ -1,330 +0,0 @@
78.4 -<?xml version="1.0" encoding="UTF-8"?>
78.5 -
78.6 -<!--
78.7 - The contents of this file are subject to the terms of the Common Development
78.8 - and Distribution License (the License). You may not use this file except in
78.9 - compliance with the License.
78.10 -
78.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
78.12 - or http://www.netbeans.org/cddl.txt.
78.13 -
78.14 - When distributing Covered Code, include this CDDL Header Notice in each file
78.15 - and include the License file at http://www.netbeans.org/cddl.txt.
78.16 - If applicable, add the following below the CDDL Header, with the fields
78.17 - enclosed by brackets [] replaced by your own identifying information:
78.18 - "Portions Copyrighted [year] [name of copyright owner]"
78.19 -
78.20 - The Original Software is NetBeans. The Initial Developer of the Original
78.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
78.22 - Microsystems, Inc. All Rights Reserved.
78.23 --->
78.24 -
78.25 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:hl7="http://schemas.sun.com/jbi/wsdl-extensions/hl7/" targetNamespace="http://schemas.sun.com/jbi/wsdl-extensions/hl7/">
78.26 - <xs:import namespace="http://schemas.xmlsoap.org/wsdl/" schemaLocation="wsdl.xsd"/>
78.27 -
78.28 - <!-- Extensibility Element for the WSDL Binding -->
78.29 - <xs:element name="binding" type="hl7:tBinding">
78.30 - <xs:annotation>
78.31 - <xs:documentation>DESC_Element_binding</xs:documentation>
78.32 - </xs:annotation>
78.33 - </xs:element>
78.34 - <xs:complexType name="tBinding">
78.35 - <xs:complexContent>
78.36 - <xs:extension base="wsdl:tExtensibilityElement"/>
78.37 - <!-- could add more attributes to the binding -->
78.38 - </xs:complexContent>
78.39 - </xs:complexType>
78.40 -
78.41 - <!-- Extensibility Element for the WSDL Operation -->
78.42 - <xs:element name="operation" type="hl7:tOperation">
78.43 - <xs:annotation>
78.44 - <xs:documentation>DESC_Element_operation</xs:documentation>
78.45 - </xs:annotation>
78.46 - </xs:element>
78.47 - <xs:complexType name="tOperation">
78.48 - <xs:complexContent>
78.49 - <xs:annotation>
78.50 - <xs:documentation>
78.51 - "operation" defines the hl7 protocol based operation binding details..
78.52 - </xs:documentation>
78.53 - </xs:annotation>
78.54 - <xs:extension base="wsdl:tExtensibilityElement">
78.55 - </xs:extension>
78.56 - </xs:complexContent>
78.57 - </xs:complexType>
78.58 -
78.59 - <!-- Extensibility Element for the WSDL Operation Input -->
78.60 - <xs:element name="message" type="hl7:tMessage">
78.61 - <xs:annotation>
78.62 - <xs:documentation>DESC_Element_message</xs:documentation>
78.63 - </xs:annotation>
78.64 - </xs:element>
78.65 - <xs:complexType name="tMessage">
78.66 - <xs:complexContent>
78.67 - <xs:extension base="wsdl:tExtensibilityElement">
78.68 - <xs:attribute name="part" type="xs:string" use="optional">
78.69 - <xs:annotation>
78.70 - <xs:documentation>DESC_Attribute_part</xs:documentation>
78.71 - </xs:annotation>
78.72 - </xs:attribute>
78.73 - <xs:attribute name="use" type="hl7:useTypes" use="optional" default="encoded">
78.74 - <xs:annotation>
78.75 - <xs:documentation>DESC_Attribute_use</xs:documentation>
78.76 - </xs:annotation>
78.77 - </xs:attribute>
78.78 - <xs:attribute name="encodingStyle" type="xs:string" use="optional" default="hl7encoder-1.0">
78.79 - <xs:annotation>
78.80 - <xs:documentation>DESC_Attribute_encodingStyle</xs:documentation>
78.81 - </xs:annotation>
78.82 - </xs:attribute>
78.83 - </xs:extension>
78.84 - </xs:complexContent>
78.85 - </xs:complexType>
78.86 -
78.87 - <xs:simpleType name="llpTypes">
78.88 - <xs:restriction base="xs:string">
78.89 - <xs:enumeration value="MLLPv1"/>
78.90 - <xs:enumeration value="MLLPv2"/>
78.91 - <xs:enumeration value="HLLP"/>
78.92 - </xs:restriction>
78.93 - </xs:simpleType>
78.94 - <xs:simpleType name="useTypes">
78.95 - <xs:restriction base="xs:string">
78.96 - <xs:enumeration value="encoded"/>
78.97 - <xs:enumeration value="literal"/>
78.98 - </xs:restriction>
78.99 - </xs:simpleType>
78.100 - <xs:simpleType name="ackTypes">
78.101 - <xs:restriction base="xs:string">
78.102 - <xs:enumeration value="original"/>
78.103 - <xs:enumeration value="enhanced"/>
78.104 - </xs:restriction>
78.105 - </xs:simpleType>
78.106 - <xs:simpleType name="verIDs">
78.107 - <xs:restriction base="xs:string">
78.108 - <xs:enumeration value="2.1"/>
78.109 - <xs:enumeration value="2.2"/>
78.110 - <xs:enumeration value="2.3"/>
78.111 - <xs:enumeration value="2.3.1"/>
78.112 - <xs:enumeration value="2.4"/>
78.113 - <xs:enumeration value="2.5"/>
78.114 - <xs:enumeration value="2.5.1"/>
78.115 - <xs:enumeration value="3.0"/>
78.116 - </xs:restriction>
78.117 - </xs:simpleType>
78.118 - <xs:simpleType name="processingID">
78.119 - <xs:restriction base="xs:string">
78.120 - <xs:enumeration value="D"/>
78.121 - <xs:enumeration value="P"/>
78.122 - <xs:enumeration value="T"/>
78.123 - </xs:restriction>
78.124 - </xs:simpleType>
78.125 - <xs:simpleType name="yyyyMMddHHmm">
78.126 - <xs:annotation>
78.127 - <xs:documentation>DESC_SimpleType_yyyyMMddHHmm</xs:documentation>
78.128 - </xs:annotation>
78.129 - <xs:restriction base="xs:string">
78.130 - <xs:pattern value="[0-9][0-9][0-9][0-9](0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])[0-5][0-9]"/>
78.131 - </xs:restriction>
78.132 - </xs:simpleType>
78.133 -
78.134 - <!--communication control names-->
78.135 - <xs:simpleType name="comControlNames">
78.136 - <xs:restriction base="xs:string">
78.137 - <xs:enumeration value="TIME_TO_WAIT_FOR_A_RESPONSE"/>
78.138 - <xs:enumeration value="MAX_NO_RESPONSE"/>
78.139 - <xs:enumeration value="MAX_NAK_RECEIVED_RETRY"/>
78.140 - <xs:enumeration value="MAX_EMPTY_READ_RETRY"/>
78.141 - </xs:restriction>
78.142 - </xs:simpleType>
78.143 -
78.144 - <!--Recourse Actions-->
78.145 - <xs:simpleType name="recourseActions">
78.146 - <xs:restriction base="xs:string">
78.147 - <xs:enumeration value="Reset"/>
78.148 - <xs:enumeration value="Resend"/>
78.149 - <xs:enumeration value="SkipMessage"/>
78.150 - <xs:enumeration value="Exit"/>
78.151 - </xs:restriction>
78.152 - </xs:simpleType>
78.153 -
78.154 - <!-- Extensibility Element for the WSDL Port -->
78.155 - <xs:element name="address" type="hl7:tAddress">
78.156 - <xs:annotation>
78.157 - <xs:documentation>DESC_Element_address</xs:documentation>
78.158 - </xs:annotation>
78.159 - </xs:element>
78.160 - <xs:complexType name="tAddress">
78.161 - <xs:complexContent>
78.162 - <xs:extension base="wsdl:tExtensibilityElement">
78.163 - <!-- <xs:attribute name="hl7serverLocation" type="xs:string" use="required">
78.164 - <xs:annotation>
78.165 - <xs:documentation>The IP Address which specifies the connectivity information to connect to HL7 Server</xs:documentation>
78.166 - </xs:annotation>
78.167 - </xs:attribute>
78.168 - <xs:attribute name="hl7serverPort" type="xs:int" use="required">
78.169 - <xs:annotation>
78.170 - <xs:documentation>The Port number which specifies the connectivity information to connect to HL7 Server </xs:documentation>
78.171 - </xs:annotation>
78.172 - </xs:attribute> -->
78.173 - <xs:attribute name="location" type="xs:string" default="hl7://localhost:4040" use="optional">
78.174 - <xs:annotation>
78.175 - <xs:documentation>DESC_Attribute_location</xs:documentation>
78.176 - </xs:annotation>
78.177 - </xs:attribute>
78.178 - <xs:attribute name="transportProtocolName" type="xs:string" use="optional">
78.179 - <xs:annotation>
78.180 - <xs:documentation>DESC_Attribute_transportProtocolName</xs:documentation>
78.181 - </xs:annotation>
78.182 - </xs:attribute>
78.183 - </xs:extension>
78.184 - </xs:complexContent>
78.185 - </xs:complexType>
78.186 -
78.187 - <!-- Extensibility Element for the WSDL Port -->
78.188 - <xs:element name="protocolproperties" type="hl7:tProtocolProperties">
78.189 - <xs:annotation>
78.190 - <xs:documentation>DESC_Element_protocolproperties</xs:documentation>
78.191 - </xs:annotation>
78.192 - </xs:element>
78.193 - <xs:complexType name="tProtocolProperties">
78.194 - <xs:complexContent>
78.195 - <xs:extension base="wsdl:tExtensibilityElement">
78.196 - <xs:attribute name="acknowledgmentMode" type="hl7:ackTypes" use="optional">
78.197 - <xs:annotation>
78.198 - <xs:documentation>DESC_Attribute_acknowledgmentMode</xs:documentation>
78.199 - </xs:annotation>
78.200 - </xs:attribute>
78.201 - <xs:attribute name="llpType" type="hl7:llpTypes" use="optional" default="MLLPv1">
78.202 - <xs:annotation>
78.203 - <xs:documentation>DESC_Attribute_llpType</xs:documentation>
78.204 - </xs:annotation>
78.205 - </xs:attribute>
78.206 - <xs:attribute name="startBlockCharacter" type="xs:byte" default="11" use="optional">
78.207 - <xs:annotation>
78.208 - <xs:documentation>DESC_Attribute_startBlockCharacter</xs:documentation>
78.209 - </xs:annotation>
78.210 - </xs:attribute>
78.211 - <xs:attribute name="endDataCharacter" type="xs:byte" default="28" use="optional">
78.212 - <xs:annotation>
78.213 - <xs:documentation>DESC_Attribute_endDataCharacter</xs:documentation>
78.214 - </xs:annotation>
78.215 - </xs:attribute>
78.216 - <xs:attribute name="endBlockCharacter" type="xs:byte" default="13" use="optional">
78.217 - <xs:annotation>
78.218 - <xs:documentation>DESC_Attribute_endBlockCharacter</xs:documentation>
78.219 - </xs:annotation>
78.220 - </xs:attribute>
78.221 - <xs:attribute name="hllpChecksumEnabled" type="xs:boolean" use="optional">
78.222 - <xs:annotation>
78.223 - <xs:documentation>DESC_Attribute_hllpChecksumEnabled</xs:documentation>
78.224 - </xs:annotation>
78.225 - </xs:attribute>
78.226 - <xs:attribute name="seqNumEnabled" type="xs:boolean" use="optional">
78.227 - <xs:annotation>
78.228 - <xs:documentation>DESC_Attribute_seqNumEnabled</xs:documentation>
78.229 - </xs:annotation>
78.230 - </xs:attribute>
78.231 - <xs:attribute name="processingID" type="hl7:processingID" use="optional" default="D">
78.232 - <xs:annotation>
78.233 - <xs:documentation>DESC_Attribute_processingID</xs:documentation>
78.234 - </xs:annotation>
78.235 - </xs:attribute>
78.236 - <xs:attribute name="versionID" type="hl7:verIDs" use="optional" default="2.3.1">
78.237 - <xs:annotation>
78.238 - <xs:documentation>DESC_Attribute_versionID</xs:documentation>
78.239 - </xs:annotation>
78.240 - </xs:attribute>
78.241 - <xs:attribute name="validateMSH" type="xs:boolean" use="optional" >
78.242 - <xs:annotation>
78.243 - <xs:documentation>DESC_Attribute_validateMSH</xs:documentation>
78.244 - </xs:annotation>
78.245 - </xs:attribute>
78.246 - <xs:attribute name="enabledSFT" type="xs:boolean" use="optional" >
78.247 - <xs:annotation>
78.248 - <xs:documentation>DESC_Attribute_enabledSFT</xs:documentation>
78.249 - </xs:annotation>
78.250 - </xs:attribute>
78.251 - <xs:attribute name="softwareVendorOrganization" type="xs:string" use="optional" default="Sun Microsystems, Inc" >
78.252 - <xs:annotation>
78.253 - <xs:documentation>DESC_Attribute_softwareVendorOrganization</xs:documentation>
78.254 - </xs:annotation>
78.255 - </xs:attribute>
78.256 - <xs:attribute name="softwareCertifiedVersionOrReleaseNumber" type="xs:string" use="optional" default="6.0" >
78.257 - <xs:annotation>
78.258 - <xs:documentation>DESC_Attribute_softwareCertifiedVersionOrReleaseNumber</xs:documentation>
78.259 - </xs:annotation>
78.260 - </xs:attribute>
78.261 - <xs:attribute name="softwareProductName" type="xs:string" use="optional" default="Sun Open ESB HL7 Binding Component" >
78.262 - <xs:annotation>
78.263 - <xs:documentation>DESC_Attribute_softwareProductName</xs:documentation>
78.264 - </xs:annotation>
78.265 - </xs:attribute>
78.266 - <xs:attribute name="softwareBinaryID" type="xs:string" use="optional" default="6.0" >
78.267 - <xs:annotation>
78.268 - <xs:documentation>DESC_Attribute_softwareBinaryID</xs:documentation>
78.269 - </xs:annotation>
78.270 - </xs:attribute>
78.271 - <xs:attribute name="softwareProductInformation" type="xs:string" use="optional" default="It is a binding component for HL7 over TCP/IP connection" >
78.272 - <xs:annotation>
78.273 - <xs:documentation>DESC_Attribute_softwareProductInformation</xs:documentation>
78.274 - </xs:annotation>
78.275 - </xs:attribute>
78.276 - <xs:attribute name="softwareInstallDate" type="hl7:yyyyMMddHHmm" use="optional" >
78.277 - <xs:annotation>
78.278 - <xs:documentation>DESC_Attribute_softwareInstallDate</xs:documentation>
78.279 - </xs:annotation>
78.280 - </xs:attribute>
78.281 - </xs:extension>
78.282 - </xs:complexContent>
78.283 - </xs:complexType>
78.284 - <!-- Extensibility Element for the WSDL Port -->
78.285 - <!-- <xs:element name="communicationcontrols" type="hl7:tCommunicationControls">
78.286 - <xs:annotation>
78.287 - <xs:documentation>
78.288 - "communicationcontrols" indicates hl7 communication controls.
78.289 - </xs:documentation>
78.290 - </xs:annotation>
78.291 - </xs:element>
78.292 - <xs:complexType name="tCommunicationControls">
78.293 - <xs:complexContent>
78.294 - <xs:extension base="wsdl:tExtensibilityElement">
78.295 - <xs:sequence>
78.296 - <xs:element ref="hl7:communicationcontrol" minOccurs="0" maxOccurs="5"/>
78.297 - </xs:sequence>
78.298 - </xs:extension>
78.299 - </xs:complexContent>
78.300 - </xs:complexType>
78.301 -
78.302 - <xs:element name="communicationcontrol" type="hl7:tCommunicationControl">
78.303 - <xs:annotation>
78.304 - <xs:documentation>"communicationcontrol defines the communication property and the respective recourse actions"</xs:documentation>
78.305 - </xs:annotation>
78.306 - </xs:element>
78.307 - <xs:complexType name="tCommunicationControl">
78.308 - <xs:complexContent>
78.309 - <xs:extension base="wsdl:tExtensibilityElement">
78.310 - <xs:attribute name="name" type="hl7:comControlNames" use="required">
78.311 - <xs:annotation>
78.312 - <xs:documentation>Name of the Communication Control</xs:documentation>
78.313 - </xs:annotation>
78.314 - </xs:attribute>
78.315 - <xs:attribute name="value" type="xs:int" use="required">
78.316 - <xs:annotation>
78.317 - <xs:documentation>Value of the Communication Control</xs:documentation>
78.318 - </xs:annotation>
78.319 - </xs:attribute>
78.320 - <xs:attribute name="enabled" type="xs:boolean" use="required" default="false">
78.321 - <xs:annotation>
78.322 - <xs:documentation>Enables or disables the communication control</xs:documentation>
78.323 - </xs:annotation>
78.324 - </xs:attribute>
78.325 - <xs:attribute name="recourse-action" type="hl7:recourseActions" use="required">
78.326 - <xs:annotation>
78.327 - <xs:documentation>Specifies the recourse action on the communication control</xs:documentation>
78.328 - </xs:annotation>
78.329 - </xs:attribute>
78.330 - </xs:extension>
78.331 - </xs:complexContent>
78.332 - </xs:complexType>-->
78.333 -</xs:schema>
79.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/resources/layer.xml Mon Jul 14 01:11:23 2008 +0530
79.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
79.3 @@ -1,87 +0,0 @@
79.4 -<?xml version="1.0" encoding="UTF-8"?>
79.5 -
79.6 -<!--
79.7 - The contents of this file are subject to the terms of the Common Development
79.8 - and Distribution License (the License). You may not use this file except in
79.9 - compliance with the License.
79.10 -
79.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
79.12 - or http://www.netbeans.org/cddl.txt.
79.13 -
79.14 - When distributing Covered Code, include this CDDL Header Notice in each file
79.15 - and include the License file at http://www.netbeans.org/cddl.txt.
79.16 - If applicable, add the following below the CDDL Header, with the fields
79.17 - enclosed by brackets [] replaced by your own identifying information:
79.18 - "Portions Copyrighted [year] [name of copyright owner]"
79.19 -
79.20 - The Original Software is NetBeans. The Initial Developer of the Original
79.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
79.22 - Microsystems, Inc. All Rights Reserved.
79.23 --->
79.24 -
79.25 -<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
79.26 -<filesystem>
79.27 - <folder name="WSDLEditor">
79.28 - <file name="hl7-ext.xsd" url="hl7-ext.xsd">
79.29 - <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/hl7/" />
79.30 - <attr name="prefix" stringvalue="hl7" />
79.31 - </file>
79.32 -
79.33 - <folder name="Binding">
79.34 - <file name="HL7Binding" >
79.35 - <attr name="xsdFileName" stringvalue="hl7-ext" />
79.36 - <attr name="element" stringvalue="binding"/>
79.37 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.hl7.resources.Bundle"/>
79.38 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/hl7/resources/throw16.png"/>
79.39 - </file>
79.40 - </folder>
79.41 - <folder name="BindingOperation">
79.42 - <file name="HL7BindingOperation" >
79.43 - <attr name="xsdFileName" stringvalue="hl7-ext" />
79.44 - <attr name="element" stringvalue="operation"/>
79.45 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.hl7.resources.Bundle"/>
79.46 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/hl7/resources/onalarm16x16.png"/>
79.47 - </file>
79.48 - </folder>
79.49 - <folder name="BindingOperationInput">
79.50 - <file name="HL7Message">
79.51 - <attr name="xsdFileName" stringvalue="hl7-ext" />
79.52 - <attr name="element" stringvalue="message"/>
79.53 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.hl7.resources.Bundle"/>
79.54 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/hl7/resources/onmessage16x16.png"/>
79.55 - </file>
79.56 - </folder>
79.57 - <folder name="ServicePort">
79.58 - <file name="HL7ServicePort">
79.59 - <attr name="xsdFileName" stringvalue="hl7-ext" />
79.60 - <attr name="element" stringvalue="address"/>
79.61 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.hl7.resources.Bundle"/>
79.62 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/hl7/resources/while16x16.png"/>
79.63 - </file>
79.64 - <file name="HL7ProtocolProperties">
79.65 - <attr name="xsdFileName" stringvalue="hl7-ext" />
79.66 - <attr name="element" stringvalue="protocolproperties"/>
79.67 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.hl7.resources.Bundle"/>
79.68 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/hl7/resources/while16x16.png"/>
79.69 - </file>
79.70 - <!--<file name="HL7CommunicationControls">
79.71 - <attr name="xsdFileName" stringvalue="hl7-ext" />
79.72 - <attr name="element" stringvalue="communicationcontrols"/>
79.73 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.hl7.resources.Bundle"/>
79.74 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/hl7/resources/while16x16.png"/>
79.75 - </file>-->
79.76 - </folder>
79.77 - </folder>
79.78 - <folder name="SeeBeyondJbiComponents">
79.79 - <!-- JBI Component -->
79.80 - <folder name="sun-hl7-binding">
79.81 - <attr name="id" stringvalue="sun-hl7-binding"/>
79.82 - <attr name="description" stringvalue="HL7 Binding"/>
79.83 - <attr name="type" stringvalue="Binding"/>
79.84 - <file name="hl7.binding-1.0">
79.85 - <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/hl7/"/>
79.86 - </file>
79.87 - </folder>
79.88 - </folder>
79.89 -</filesystem>
79.90 -
80.1 Binary file wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/resources/onalarm16x16.png has changed
81.1 Binary file wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/resources/onmessage16x16.png has changed
82.1 Binary file wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/resources/throw16.png has changed
83.1 Binary file wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/resources/while16x16.png has changed
84.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/resources/wsdl.xsd Mon Jul 14 01:11:23 2008 +0530
84.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
84.3 @@ -1,330 +0,0 @@
84.4 -<?xml version="1.0" encoding="UTF-8" ?>
84.5 -
84.6 -<!--
84.7 - The contents of this file are subject to the terms of the Common Development
84.8 - and Distribution License (the License). You may not use this file except in
84.9 - compliance with the License.
84.10 -
84.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
84.12 - or http://www.netbeans.org/cddl.txt.
84.13 -
84.14 - When distributing Covered Code, include this CDDL Header Notice in each file
84.15 - and include the License file at http://www.netbeans.org/cddl.txt.
84.16 - If applicable, add the following below the CDDL Header, with the fields
84.17 - enclosed by brackets [] replaced by your own identifying information:
84.18 - "Portions Copyrighted [year] [name of copyright owner]"
84.19 -
84.20 - The Original Software is NetBeans. The Initial Developer of the Original
84.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
84.22 - Microsystems, Inc. All Rights Reserved.
84.23 --->
84.24 -
84.25 -<!--
84.26 -
84.27 -Copyright 2001 - 2005, International Business Machines Corporation and Microsoft Corporation
84.28 -All Rights Reserved
84.29 -
84.30 -License for WSDL Schema Files
84.31 -
84.32 -The Authors grant permission to copy and distribute the WSDL Schema
84.33 -Files in any medium without fee or royalty as long as this notice and
84.34 -license are distributed with them. The originals of these files can
84.35 -be located at:
84.36 -
84.37 -http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd
84.38 -
84.39 -THESE SCHEMA FILES ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO REPRESENTATIONS
84.40 -OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THESE FILES, INCLUDING, BUT NOT
84.41 -LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
84.42 -NON-INFRINGEMENT OR TITLE. THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT,
84.43 -INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR
84.44 -RELATING TO ANY USE OR DISTRIBUTION OF THESE FILES.
84.45 -
84.46 -The name and trademarks of the Authors may NOT be used in any manner,
84.47 -including advertising or publicity pertaining to these files or any program
84.48 -or service that uses these files, written prior permission. Title to copyright
84.49 -in these files will at all times remain with the Authors.
84.50 -
84.51 -No other rights are granted by implication, estoppel or otherwise.
84.52 -
84.53 -
84.54 --->
84.55 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
84.56 - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
84.57 - targetNamespace="http://schemas.xmlsoap.org/wsdl/"
84.58 - elementFormDefault="qualified" >
84.59 -
84.60 - <xs:complexType mixed="true" name="tDocumentation" >
84.61 - <xs:sequence>
84.62 - <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
84.63 - </xs:sequence>
84.64 - </xs:complexType>
84.65 -
84.66 - <xs:complexType name="tDocumented" >
84.67 - <xs:annotation>
84.68 - <xs:documentation>
84.69 - This type is extended by component types to allow them to be documented
84.70 - </xs:documentation>
84.71 - </xs:annotation>
84.72 - <xs:sequence>
84.73 - <xs:element name="documentation" type="wsdl:tDocumentation" minOccurs="0" />
84.74 - </xs:sequence>
84.75 - </xs:complexType>
84.76 -
84.77 - <xs:complexType name="tExtensibleAttributesDocumented" abstract="true" >
84.78 - <xs:complexContent>
84.79 - <xs:extension base="wsdl:tDocumented" >
84.80 - <xs:annotation>
84.81 - <xs:documentation>
84.82 - This type is extended by component types to allow attributes from other namespaces to be added.
84.83 - </xs:documentation>
84.84 - </xs:annotation>
84.85 - <xs:anyAttribute namespace="##other" processContents="lax" />
84.86 - </xs:extension>
84.87 - </xs:complexContent>
84.88 - </xs:complexType>
84.89 -
84.90 - <xs:complexType name="tExtensibleDocumented" abstract="true" >
84.91 - <xs:complexContent>
84.92 - <xs:extension base="wsdl:tDocumented" >
84.93 - <xs:annotation>
84.94 - <xs:documentation>
84.95 - This type is extended by component types to allow elements from other namespaces to be added.
84.96 - </xs:documentation>
84.97 - </xs:annotation>
84.98 - <xs:sequence>
84.99 - <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
84.100 - </xs:sequence>
84.101 - </xs:extension>
84.102 - </xs:complexContent>
84.103 - </xs:complexType>
84.104 -
84.105 - <xs:element name="definitions" type="wsdl:tDefinitions" >
84.106 - <xs:key name="message" >
84.107 - <xs:selector xpath="wsdl:message" />
84.108 - <xs:field xpath="@name" />
84.109 - </xs:key>
84.110 - <xs:key name="portType" >
84.111 - <xs:selector xpath="wsdl:portType" />
84.112 - <xs:field xpath="@name" />
84.113 - </xs:key>
84.114 - <xs:key name="binding" >
84.115 - <xs:selector xpath="wsdl:binding" />
84.116 - <xs:field xpath="@name" />
84.117 - </xs:key>
84.118 - <xs:key name="service" >
84.119 - <xs:selector xpath="wsdl:service" />
84.120 - <xs:field xpath="@name" />
84.121 - </xs:key>
84.122 - <xs:key name="import" >
84.123 - <xs:selector xpath="wsdl:import" />
84.124 - <xs:field xpath="@namespace" />
84.125 - </xs:key>
84.126 - </xs:element>
84.127 -
84.128 - <xs:group name="anyTopLevelOptionalElement" >
84.129 - <xs:annotation>
84.130 - <xs:documentation>
84.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.
84.132 - </xs:documentation>
84.133 - </xs:annotation>
84.134 - <xs:choice>
84.135 - <xs:element name="import" type="wsdl:tImport" />
84.136 - <xs:element name="types" type="wsdl:tTypes" />
84.137 - <xs:element name="message" type="wsdl:tMessage" >
84.138 - <xs:unique name="part" >
84.139 - <xs:selector xpath="wsdl:part" />
84.140 - <xs:field xpath="@name" />
84.141 - </xs:unique>
84.142 - </xs:element>
84.143 - <xs:element name="portType" type="wsdl:tPortType" />
84.144 - <xs:element name="binding" type="wsdl:tBinding" />
84.145 - <xs:element name="service" type="wsdl:tService" >
84.146 - <xs:unique name="port" >
84.147 - <xs:selector xpath="wsdl:port" />
84.148 - <xs:field xpath="@name" />
84.149 - </xs:unique>
84.150 - </xs:element>
84.151 - </xs:choice>
84.152 - </xs:group>
84.153 -
84.154 - <xs:complexType name="tDefinitions" >
84.155 - <xs:complexContent>
84.156 - <xs:extension base="wsdl:tExtensibleDocumented" >
84.157 - <xs:sequence>
84.158 - <xs:group ref="wsdl:anyTopLevelOptionalElement" minOccurs="0" maxOccurs="unbounded" />
84.159 - </xs:sequence>
84.160 - <xs:attribute name="targetNamespace" type="xs:anyURI" use="optional" />
84.161 - <xs:attribute name="name" type="xs:NCName" use="optional" />
84.162 - </xs:extension>
84.163 - </xs:complexContent>
84.164 - </xs:complexType>
84.165 -
84.166 - <xs:complexType name="tImport" >
84.167 - <xs:complexContent>
84.168 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
84.169 - <xs:attribute name="namespace" type="xs:anyURI" use="required" />
84.170 - <xs:attribute name="location" type="xs:anyURI" use="required" />
84.171 - </xs:extension>
84.172 - </xs:complexContent>
84.173 - </xs:complexType>
84.174 -
84.175 - <xs:complexType name="tTypes" >
84.176 - <xs:complexContent>
84.177 - <xs:extension base="wsdl:tExtensibleDocumented" />
84.178 - </xs:complexContent>
84.179 - </xs:complexType>
84.180 -
84.181 - <xs:complexType name="tMessage" >
84.182 - <xs:complexContent>
84.183 - <xs:extension base="wsdl:tExtensibleDocumented" >
84.184 - <xs:sequence>
84.185 - <xs:element name="part" type="wsdl:tPart" minOccurs="0" maxOccurs="unbounded" />
84.186 - </xs:sequence>
84.187 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.188 - </xs:extension>
84.189 - </xs:complexContent>
84.190 - </xs:complexType>
84.191 -
84.192 - <xs:complexType name="tPart" >
84.193 - <xs:complexContent>
84.194 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
84.195 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.196 - <xs:attribute name="element" type="xs:QName" use="optional" />
84.197 - <xs:attribute name="type" type="xs:QName" use="optional" />
84.198 - </xs:extension>
84.199 - </xs:complexContent>
84.200 - </xs:complexType>
84.201 -
84.202 - <xs:complexType name="tPortType" >
84.203 - <xs:complexContent>
84.204 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
84.205 - <xs:sequence>
84.206 - <xs:element name="operation" type="wsdl:tOperation" minOccurs="0" maxOccurs="unbounded" />
84.207 - </xs:sequence>
84.208 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.209 - </xs:extension>
84.210 - </xs:complexContent>
84.211 - </xs:complexType>
84.212 -
84.213 - <xs:complexType name="tOperation" >
84.214 - <xs:complexContent>
84.215 - <xs:extension base="wsdl:tExtensibleDocumented" >
84.216 - <xs:sequence>
84.217 - <xs:choice>
84.218 - <xs:group ref="wsdl:request-response-or-one-way-operation" />
84.219 - <xs:group ref="wsdl:solicit-response-or-notification-operation" />
84.220 - </xs:choice>
84.221 - </xs:sequence>
84.222 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.223 - <xs:attribute name="parameterOrder" type="xs:NMTOKENS" use="optional" />
84.224 - </xs:extension>
84.225 - </xs:complexContent>
84.226 - </xs:complexType>
84.227 -
84.228 - <xs:group name="request-response-or-one-way-operation" >
84.229 - <xs:sequence>
84.230 - <xs:element name="input" type="wsdl:tParam" />
84.231 - <xs:sequence minOccurs='0' >
84.232 - <xs:element name="output" type="wsdl:tParam" />
84.233 - <xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
84.234 - </xs:sequence>
84.235 - </xs:sequence>
84.236 - </xs:group>
84.237 -
84.238 - <xs:group name="solicit-response-or-notification-operation" >
84.239 - <xs:sequence>
84.240 - <xs:element name="output" type="wsdl:tParam" />
84.241 - <xs:sequence minOccurs='0' >
84.242 - <xs:element name="input" type="wsdl:tParam" />
84.243 - <xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
84.244 - </xs:sequence>
84.245 - </xs:sequence>
84.246 - </xs:group>
84.247 -
84.248 - <xs:complexType name="tParam" >
84.249 - <xs:complexContent>
84.250 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
84.251 - <xs:attribute name="name" type="xs:NCName" use="optional" />
84.252 - <xs:attribute name="message" type="xs:QName" use="required" />
84.253 - </xs:extension>
84.254 - </xs:complexContent>
84.255 - </xs:complexType>
84.256 -
84.257 - <xs:complexType name="tFault" >
84.258 - <xs:complexContent>
84.259 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
84.260 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.261 - <xs:attribute name="message" type="xs:QName" use="required" />
84.262 - </xs:extension>
84.263 - </xs:complexContent>
84.264 - </xs:complexType>
84.265 -
84.266 - <xs:complexType name="tBinding" >
84.267 - <xs:complexContent>
84.268 - <xs:extension base="wsdl:tExtensibleDocumented" >
84.269 - <xs:sequence>
84.270 - <xs:element name="operation" type="wsdl:tBindingOperation" minOccurs="0" maxOccurs="unbounded" />
84.271 - </xs:sequence>
84.272 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.273 - <xs:attribute name="type" type="xs:QName" use="required" />
84.274 - </xs:extension>
84.275 - </xs:complexContent>
84.276 - </xs:complexType>
84.277 -
84.278 - <xs:complexType name="tBindingOperationMessage" >
84.279 - <xs:complexContent>
84.280 - <xs:extension base="wsdl:tExtensibleDocumented" >
84.281 - <xs:attribute name="name" type="xs:NCName" use="optional" />
84.282 - </xs:extension>
84.283 - </xs:complexContent>
84.284 - </xs:complexType>
84.285 -
84.286 - <xs:complexType name="tBindingOperationFault" >
84.287 - <xs:complexContent>
84.288 - <xs:extension base="wsdl:tExtensibleDocumented" >
84.289 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.290 - </xs:extension>
84.291 - </xs:complexContent>
84.292 - </xs:complexType>
84.293 -
84.294 - <xs:complexType name="tBindingOperation" >
84.295 - <xs:complexContent>
84.296 - <xs:extension base="wsdl:tExtensibleDocumented" >
84.297 - <xs:sequence>
84.298 - <xs:element name="input" type="wsdl:tBindingOperationMessage" minOccurs="0" />
84.299 - <xs:element name="output" type="wsdl:tBindingOperationMessage" minOccurs="0" />
84.300 - <xs:element name="fault" type="wsdl:tBindingOperationFault" minOccurs="0" maxOccurs="unbounded" />
84.301 - </xs:sequence>
84.302 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.303 - </xs:extension>
84.304 - </xs:complexContent>
84.305 - </xs:complexType>
84.306 -
84.307 - <xs:complexType name="tService" >
84.308 - <xs:complexContent>
84.309 - <xs:extension base="wsdl:tExtensibleDocumented" >
84.310 - <xs:sequence>
84.311 - <xs:element name="port" type="wsdl:tPort" minOccurs="0" maxOccurs="unbounded" />
84.312 - </xs:sequence>
84.313 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.314 - </xs:extension>
84.315 - </xs:complexContent>
84.316 - </xs:complexType>
84.317 -
84.318 - <xs:complexType name="tPort" >
84.319 - <xs:complexContent>
84.320 - <xs:extension base="wsdl:tExtensibleDocumented" >
84.321 - <xs:attribute name="name" type="xs:NCName" use="required" />
84.322 - <xs:attribute name="binding" type="xs:QName" use="required" />
84.323 - </xs:extension>
84.324 - </xs:complexContent>
84.325 - </xs:complexType>
84.326 -
84.327 - <xs:attribute name="arrayType" type="xs:string" />
84.328 - <xs:attribute name="required" type="xs:boolean" />
84.329 - <xs:complexType name="tExtensibilityElement" abstract="true" >
84.330 - <xs:attribute ref="wsdl:required" use="optional" />
84.331 - </xs:complexType>
84.332 -
84.333 -</xs:schema>
84.334 \ No newline at end of file
85.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/template/Bundle.properties Mon Jul 14 01:11:23 2008 +0530
85.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
85.3 @@ -1,28 +0,0 @@
85.4 -#
85.5 -# The contents of this file are subject to the terms of the Common Development
85.6 -# and Distribution License (the License). You may not use this file except in
85.7 -# compliance with the License.
85.8 -#
85.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
85.10 -# or http://www.netbeans.org/cddl.txt.
85.11 -#
85.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
85.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
85.14 -# If applicable, add the following below the CDDL Header, with the fields
85.15 -# enclosed by brackets [] replaced by your own identifying information:
85.16 -# "Portions Copyrighted [year] [name of copyright owner]"
85.17 -#
85.18 -# The Original Software is NetBeans. The Initial Developer of the Original
85.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
85.20 -# Microsystems, Inc. All Rights Reserved.
85.21 -#
85.22 -
85.23 -HL7Transport=HL7 Transport
85.24 -http_//schemas.sun.com/jbi/wsdl-extensions/hl7/=HL7
85.25 -
85.26 -TEMPLATEGROUP_name=HL7
85.27 -TEMPLATEGROUP_prefix_hl7=hl7
85.28 -TEMPLATE_name_HL7Transport=HL7 Transport
85.29 -
85.30 -
85.31 -
86.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/template/HL7TemplateProvider.java Mon Jul 14 01:11:23 2008 +0530
86.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
86.3 @@ -1,40 +0,0 @@
86.4 -/*
86.5 - * The contents of this file are subject to the terms of the Common Development
86.6 - * and Distribution License (the License). You may not use this file except in
86.7 - * compliance with the License.
86.8 - *
86.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
86.10 - * or http://www.netbeans.org/cddl.txt.
86.11 - *
86.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
86.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
86.14 - * If applicable, add the following below the CDDL Header, with the fields
86.15 - * enclosed by brackets [] replaced by your own identifying information:
86.16 - * "Portions Copyrighted [year] [name of copyright owner]"
86.17 - *
86.18 - * The Original Software is NetBeans. The Initial Developer of the Original
86.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
86.20 - * Microsystems, Inc. All Rights Reserved.
86.21 - */
86.22 -
86.23 -package org.netbeans.modules.wsdlextensions.hl7.template;
86.24 -
86.25 -import java.io.InputStream;
86.26 -import org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider;
86.27 -import org.openide.util.NbBundle;
86.28 -
86.29 -public class HL7TemplateProvider extends ExtensibilityElementTemplateProvider {
86.30 -
86.31 - static final String hl7TemplateUrl = "/org/netbeans/modules/wsdlextensions/hl7/template/template.xml";
86.32 -
86.33 - public InputStream getTemplateInputStream() {
86.34 - return HL7TemplateProvider.class.getResourceAsStream(hl7TemplateUrl);
86.35 - }
86.36 -
86.37 - public String getLocalizedMessage(String str, Object[] objects) {
86.38 - return NbBundle.getMessage(HL7TemplateProvider.class, str, objects);
86.39 - }
86.40 -
86.41 -
86.42 -
86.43 -}
87.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/template/template.xml Mon Jul 14 01:11:23 2008 +0530
87.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
87.3 @@ -1,72 +0,0 @@
87.4 -<?xml version="1.0" encoding="UTF-8"?>
87.5 -
87.6 -<!--
87.7 - The contents of this file are subject to the terms of the Common Development
87.8 - and Distribution License (the License). You may not use this file except in
87.9 - compliance with the License.
87.10 -
87.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
87.12 - or http://www.netbeans.org/cddl.txt.
87.13 -
87.14 - When distributing Covered Code, include this CDDL Header Notice in each file
87.15 - and include the License file at http://www.netbeans.org/cddl.txt.
87.16 - If applicable, add the following below the CDDL Header, with the fields
87.17 - enclosed by brackets [] replaced by your own identifying information:
87.18 - "Portions Copyrighted [year] [name of copyright owner]"
87.19 -
87.20 - The Original Software is NetBeans. The Initial Developer of the Original
87.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
87.22 - Microsystems, Inc. All Rights Reserved.
87.23 --->
87.24 -
87.25 -<!--
87.26 - Document : template.xml
87.27 - Created on : August 25, 2006, 5:39 PM
87.28 - Author : sweng
87.29 - Description: Describes the HL7 Binding Component's extensibility element views on WSDL wizard
87.30 --->
87.31 -<templateGroup namespace="http://schemas.sun.com/jbi/wsdl-extensions/hl7/"
87.32 - xmlns="http://xml.netbeans.org/schema/templates"
87.33 - xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"
87.34 - xsi:schemaLocation="http://xml.netbeans.org/schema/templates
87.35 - templates.xsd" prefix="hl7">
87.36 - <template name="HL7Transport">
87.37 - <wsdlElement name="Binding">
87.38 - <extensionElement name="binding"/>
87.39 - </wsdlElement>
87.40 - <wsdlElement name="BindingOperation">
87.41 - <extensionElement name="operation"/>
87.42 - </wsdlElement>
87.43 - <wsdlElement name="BindingOperationInput">
87.44 - <extensionElement name="message">
87.45 - <extensionAttr name="use" defaultValue="encoded" />
87.46 - <extensionAttr name="encodingStyle" defaultValue="hl7encoder-1.0" />
87.47 - </extensionElement>
87.48 - </wsdlElement>
87.49 - <wsdlElement name="ServicePort">
87.50 - <extensionElement name="address" >
87.51 - <extensionAttr name="location" defaultValue="hl7://localhost:4040"/>
87.52 - <extensionAttr name="transportProtocolName" defaultValue="tcp-ip"/>
87.53 - </extensionElement>
87.54 - <extensionElement name="protocolproperties" >
87.55 - <extensionAttr name="acknowledgmentMode" defaultValue="original"/>
87.56 - <extensionAttr name="llpType" defaultValue="MLLPv1"/>
87.57 - <extensionAttr name="startBlockCharacter" defaultValue="11"/>
87.58 - <extensionAttr name="endDataCharacter" defaultValue="28"/>
87.59 - <extensionAttr name="endBlockCharacter" defaultValue="13"/>
87.60 - <extensionAttr name="hllpChecksumEnabled" defaultValue="false"/>
87.61 - <extensionAttr name="seqNumEnabled" defaultValue="false"/>
87.62 - <extensionAttr name="processingID" defaultValue="P"/>
87.63 - <extensionAttr name="versionID" defaultValue="2.3.1"/>
87.64 - <extensionAttr name="validateMSH" defaultValue="false"/>
87.65 - <extensionAttr name="enabledSFT" defaultValue="false"/>
87.66 - <extensionAttr name="softwareVendorOrganization" defaultValue="Sun Microsystems, Inc"/>
87.67 - <extensionAttr name="softwareCertifiedVersionOrReleaseNumber" defaultValue="2.0"/>
87.68 - <extensionAttr name="softwareProductName" defaultValue="Sun Open ESB HL7 Binding Component"/>
87.69 - <extensionAttr name="softwareBinaryID" defaultValue="2.0"/>
87.70 - <extensionAttr name="softwareProductInformation" defaultValue="It is a binding component for HL7 over TCP/IP connection"/>
87.71 - </extensionElement>
87.72 - <!-- <extensionElement name="communicationcontrols"/> -->
87.73 - </wsdlElement>
87.74 - </template>
87.75 -</templateGroup>
87.76 \ No newline at end of file
88.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/validator/AddressURL.java Mon Jul 14 01:11:23 2008 +0530
88.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
88.3 @@ -1,53 +0,0 @@
88.4 -/*
88.5 - * The contents of this file are subject to the terms of the Common Development
88.6 - * and Distribution License (the License). You may not use this file except in
88.7 - * compliance with the License.
88.8 - *
88.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
88.10 - * or http://www.netbeans.org/cddl.txt.
88.11 - *
88.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
88.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
88.14 - * If applicable, add the following below the CDDL Header, with the fields
88.15 - * enclosed by brackets [] replaced by your own identifying information:
88.16 - * "Portions Copyrighted [year] [name of copyright owner]"
88.17 - *
88.18 - * The Original Software is NetBeans. The Initial Developer of the Original
88.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
88.20 - * Microsystems, Inc. All Rights Reserved.
88.21 - */
88.22 -/*
88.23 - * AddressURL.java
88.24 - *
88.25 - * Created on October 10, 2006, 1:31 PM
88.26 - *
88.27 - * To change this template, choose Tools | Template Manager
88.28 - * and open the template in the editor.
88.29 - */
88.30 -
88.31 -package org.netbeans.modules.wsdlextensions.hl7.validator;
88.32 -
88.33 -import org.netbeans.modules.wsdlextensions.hl7.HL7Address;
88.34 -import java.util.Collection;
88.35 -import org.netbeans.modules.xml.xam.spi.Validator;
88.36 -import org.netbeans.modules.xml.xam.spi.Validator.ResultItem;
88.37 -
88.38 -/**
88.39 - *
88.40 - * @author raghunadh.teegavarapu@sun.com
88.41 - */
88.42 -public interface AddressURL {
88.43 - public static final String HL7_URL_PLACEHOLDER = "hl7://[hl7_host]:[hl7_port]";
88.44 - public static final String HL7_URL_PREFIX = "hl7://";
88.45 -
88.46 - public static final String URL_COLON_DELIM = ":";
88.47 - public static final String URL_PATH_DELIM = "/";
88.48 -
88.49 - public String getScheme();
88.50 - public void setScheme(String scheme);
88.51 - public String getHost();
88.52 - public void setHost(String host);
88.53 - public String getPort();
88.54 - public void setPort(String port);
88.55 - public boolean parse(Collection<ResultItem> results, Validator validator, HL7Address target);
88.56 -}
89.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/validator/Bundle.properties Mon Jul 14 01:11:23 2008 +0530
89.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
89.3 @@ -1,62 +0,0 @@
89.4 -#
89.5 -# The contents of this file are subject to the terms of the Common Development
89.6 -# and Distribution License (the License). You may not use this file except in
89.7 -# compliance with the License.
89.8 -#
89.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
89.10 -# or http://www.netbeans.org/cddl.txt.
89.11 -#
89.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
89.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
89.14 -# If applicable, add the following below the CDDL Header, with the fields
89.15 -# enclosed by brackets [] replaced by your own identifying information:
89.16 -# "Portions Copyrighted [year] [name of copyright owner]"
89.17 -#
89.18 -# The Original Software is NetBeans. The Initial Developer of the Original
89.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
89.20 -# Microsystems, Inc. All Rights Reserved.
89.21 -#
89.22 -
89.23 -## put semantics validation messages here
89.24 -HL7ExtValidation.MISSING_HL7_ADDRESS=Missing hl7:address in service binding
89.25 -HL7ExtValidation.ONLY_ONE_HL7ADDRESS_ALLOWED=Only one hl7:address allowed
89.26 -HL7ExtValidation.MISSING_HL7_PROTOCOLPROPERTIES=Missing hl7:protocolproperties in service binding
89.27 -HL7ExtValidation.ONLY_ONE_PROTOCOLPROPERTIES_ALLOWED=Only one hl7:protocolproperties allowed
89.28 -HL7ExtValidation.INVALID_ENVIRONMENT_TOKEN_NAME=The environment token name ''{0}'' is an invalid token name
89.29 -HL7Address.MISSING_HL7_URL=Missing HL7 URL in hl7 binding address
89.30 -HL7Address.MISSING_PROXY_URL=Missing proxy URL in hl7 binding address
89.31 -HL7Address.INVALID_HL7_URL_PREFIX=Invalid HL7 url, must starts with hl7://, invalid url=
89.32 -HL7Address.MALFORMED_HL7_URL=Malformed HL7 url, url=
89.33 -HL7Address.INVALID_HL7_URL_PATH_NOT_ALLOWED=Invalid HL7 url, path not allowed for a url as HL7 endpoint, url=
89.34 -HL7Address.MALFORMED_HL7_URL_HOST_REQUIRED=Invalid HL7 url, host required, url=
89.35 -
89.36 -HL7Address.INVALID_PROXY_URL_PREFIX=Invalid proxy url, not starting with socks4:// or socks5://, url value=
89.37 -HL7Address.MALFORMED_PROXY_URL=Malformed proxy url, url=
89.38 -HL7Address.INVALID_PROXY_URL_PATH_NOT_ALLOWED=Invalid proxy url, path not allowed for a proxy url
89.39 -HL7Address.MALFORMED_PROXY_URL_HOST_REQUIRED=Invalid proxy url, host required, url=
89.40 -HL7Address.REPLACE_HL7_URL_PLACEHOLDER_WITH_REAL_URL=HL7 url is still a hl7 url placeholder, please specify a concrete HL7 address.
89.41 -HL7Address.REPLACE_PROXY_URL_PLACEHOLDER_WITH_REAL_URL=Proxy url is still a placeholder, please specify a concrete proxy address.
89.42 -HL7Address.INVALID_PORT_IN_URL=Invalid port in URL, must be a positive number following host name as in localhost:4040, url=
89.43 -
89.44 -HL7Message.MISSING_TARGET_FILE=Missing Target File Name for hl7:Message.
89.45 -HL7Message.MISSING_UD_HEURISTICS_CFG_LOC=Location for user defined heuristics not specified.
89.46 -HL7Message.MISSING_UD_DIRLSTSTYLE_NAME=User defined directory listing style name not specified.
89.47 -HL7Message.INVALID_HL7_ENCODINGSTYLE=EncodingStyle Should be HL7 encoder ie hl7encoder-1.0
89.48 -HL7Message.INVALID_HL7_USE=Use should not be null and it should be "encoded" or "literal"
89.49 -
89.50 -HL7ProtocolProperties.REQUIRED_HL7_MESSAGE_VALIDATION=Both Processing ID and Version ID should not be null for MSH Message Validation
89.51 -HL7ProtocolProperties.INVALID_HL7_STARTBLOCK_CHARACTER = Invalid Start block character, allowed arrange is between 1 to 127 , default: 11
89.52 -HL7ProtocolProperties.INVALID_HL7_ENDBLOCK_CHARACTER = Invalid End block character, allowed arrange is between 1 to 127 , default: 13
89.53 -HL7ProtocolProperties.INVALID_HL7_ENDDATA_CHARACTER = Invalid End Data character, allowed arrange is between 1 to 127 , default: 28
89.54 -HL7ProtocolProperties.INVALID_ACKCODE_FOR_VERSION=Version id ''{0}'' does not support enhanced acknowledgment, ack code is ''{1}''
89.55 -HL7ProtocolProperties.INVALID_VERSION=Invalid version id
89.56 -HL7ProtocolProperties.INVALID_VERSION_FOR_SFT=Version id ''{0}'' does not support SFT enabled property.Version id should be >= 2.5, If SFT enabled
89.57 -HL7ProtocolProperties.INVALID_DATE=Invalid date ''{0}'' specified for softwareInstallDate property
89.58 -HL7ProtocolProperties.NOT_SUPPORT_VERSION=Currently HL7 BC does not have HL7 V ''{0}'' support
89.59 -
89.60 -HL7BindingValidation.MISSING_HL7_OPERATION=Missing hl7:operation in hl7:binding
89.61 -HL7BindingValidation.ATMOST_ONE_MESSAGE_IN_INPUT=At most one hl7:message allowed in one <input> binding, found:
89.62 -HL7BindingValidation.HL7_OPERATION_WO_HL7_BINDING=hl7:operation found without corresponding hl7:binding
89.63 -HL7BindingValidation.BINDING_REFERENCES_INVALID_PORTTYPE=Binding ''{0}'' references a missing port type
89.64 -HL7BindingValidation.ONLY_ONE_HL7_BINDING_ALLOWED=Only one hl7:binding allowed
89.65 -HL7BindingValidation.NO_EXTENSIBILITY_ELEMENT_FOUND_IN_INPUT=No HL7 BC extensibility element found in <input> binding
90.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/validator/HL7AddressURL.java Mon Jul 14 01:11:23 2008 +0530
90.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
90.3 @@ -1,203 +0,0 @@
90.4 -/*
90.5 - * The contents of this file are subject to the terms of the Common Development
90.6 - * and Distribution License (the License). You may not use this file except in
90.7 - * compliance with the License.
90.8 - *
90.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
90.10 - * or http://www.netbeans.org/cddl.txt.
90.11 - *
90.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
90.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
90.14 - * If applicable, add the following below the CDDL Header, with the fields
90.15 - * enclosed by brackets [] replaced by your own identifying information:
90.16 - * "Portions Copyrighted [year] [name of copyright owner]"
90.17 - *
90.18 - * The Original Software is NetBeans. The Initial Developer of the Original
90.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
90.20 - * Microsystems, Inc. All Rights Reserved.
90.21 - */
90.22 -/*
90.23 - * HL7AddressURL.java
90.24 - *
90.25 - * Created on October 10, 2006, 1:29 PM
90.26 - *
90.27 - * To change this template, choose Tools | Template Manager
90.28 - * and open the template in the editor.
90.29 - */
90.30 -
90.31 -package org.netbeans.modules.wsdlextensions.hl7.validator;
90.32 -
90.33 -import org.netbeans.modules.wsdlextensions.hl7.HL7Address;
90.34 -import java.util.ArrayList;
90.35 -import java.util.Collection;
90.36 -import java.util.Hashtable;
90.37 -import java.util.Iterator;
90.38 -import java.util.List;
90.39 -import java.util.ResourceBundle;
90.40 -import java.util.Vector;
90.41 -import org.netbeans.modules.xml.xam.spi.Validation;
90.42 -import org.netbeans.modules.xml.xam.spi.Validation.ValidationType;
90.43 -import org.netbeans.modules.xml.xam.spi.ValidationResult;
90.44 -import org.netbeans.modules.xml.xam.spi.Validator;
90.45 -
90.46 -/**
90.47 - *
90.48 - * @author raghunadh.teegavarapu@sun.com
90.49 - */
90.50 -public class HL7AddressURL implements AddressURL {
90.51 -
90.52 - private static final ResourceBundle mMessages = ResourceBundle.getBundle("org.netbeans.modules.wsdlextensions.hl7.validator.Bundle");
90.53 -
90.54 - private String scheme;
90.55 -
90.56 - private String host;
90.57 -
90.58 - private String port;
90.59 -
90.60 - private String url;
90.61 -
90.62 - public HL7AddressURL(String url) {
90.63 - this.url = url;
90.64 - }
90.65 -
90.66 - public String getScheme() {
90.67 - return scheme;
90.68 - }
90.69 -
90.70 - public void setScheme(String scheme) {
90.71 - this.scheme = scheme;
90.72 - }
90.73 -
90.74 - public String getHost() {
90.75 - return host;
90.76 - }
90.77 -
90.78 - public void setHost(String host) {
90.79 - this.host = host;
90.80 - }
90.81 -
90.82 - public String getPort() {
90.83 - return port;
90.84 - }
90.85 -
90.86 - public void setPort(String port) {
90.87 - this.port = port;
90.88 - }
90.89 -
90.90 - public boolean parse(Collection<Validator.ResultItem> results, Validator validator, HL7Address target) {
90.91 - // if missing
90.92 - if (url == null || url.trim().length() == 0) {
90.93 - results.add(new Validator.ResultItem(validator, Validator.ResultType.ERROR, target,
90.94 - mMessages.getString("HL7Address.MISSING_HL7_URL")));
90.95 - return false;
90.96 - }
90.97 -
90.98 - // if still the place holder
90.99 - if (url.startsWith(HL7_URL_PLACEHOLDER)) {
90.100 - results.add(new Validator.ResultItem(validator, Validator.ResultType.ERROR, target,
90.101 - mMessages.getString("HL7Address.REPLACE_HL7_URL_PLACEHOLDER_WITH_REAL_URL")));
90.102 - return false;
90.103 - }
90.104 -
90.105 - if (!url.startsWith(HL7_URL_PREFIX)) {
90.106 - results.add(new Validator.ResultItem(validator, Validator.ResultType.ERROR, target,
90.107 - mMessages.getString("HL7Address.INVALID_HL7_URL_PREFIX") + url));
90.108 - return false;
90.109 - }
90.110 - scheme = "hl7";
90.111 - if (url.length() > HL7_URL_PREFIX.length()) {
90.112 - String rest = url.substring(HL7_URL_PREFIX.length());
90.113 - if (rest.indexOf(URL_PATH_DELIM) >= 0) {
90.114 - results.add(new Validator.ResultItem(validator, Validator.ResultType.ERROR, target,
90.115 - mMessages.getString("HL7Address.INVALID_HL7_URL_PATH_NOT_ALLOWED") + url));
90.116 - return false;
90.117 - }
90.118 -
90.119 - int l = rest.trim().length();
90.120 - int i = 0;
90.121 - StringBuffer cur = new StringBuffer();
90.122 - int at = 0;
90.123 - int col = 0;
90.124 - List comps = new Vector();
90.125 - while (i < l) {
90.126 - char c = rest.charAt(i);
90.127 - switch (c) {
90.128 - case '\\':
90.129 - if (i + 1 < l) {
90.130 - cur.append(url.charAt(i));
90.131 - i = i + 2;
90.132 - } else {
90.133 - cur.append(c);
90.134 - i++;
90.135 - }
90.136 - break;
90.137 - case ':':
90.138 - col++;
90.139 - if (col > 1 || cur.length() == 0 /* :password and :port are invalid */) {
90.140 - // in each part: either user:password
90.141 - // or host:port, there can be at most 1
90.142 - // ':' delimiter;
90.143 - results.add(new Validator.ResultItem(validator, Validator.ResultType.ERROR, target,
90.144 - mMessages.getString("HL7Address.MALFORMED_HL7_URL") + url));
90.145 - return false;
90.146 - }
90.147 - comps.add(cur.toString());
90.148 - cur = new StringBuffer();
90.149 - i++;
90.150 - break;
90.151 - default:
90.152 - cur.append(c);
90.153 - i++;
90.154 - }
90.155 -
90.156 - }
90.157 - String tString = rest.trim();
90.158 - String port = tString.substring(tString.indexOf(URL_COLON_DELIM) + 1);
90.159 - comps.add(port);
90.160 -
90.161 - switch (comps.size()) {
90.162 - case 1:
90.163 - this.host = (String) comps.get(0);
90.164 - break;
90.165 - case 2:
90.166 - this.host = (String) comps.get(0);
90.167 - this.port = (String) comps.get(1);
90.168 - boolean goodPort = true;
90.169 - if (port != null && port.trim().length() > 0) {
90.170 - // must be a positive int
90.171 - try {
90.172 - int pt = Integer.parseInt(port);
90.173 - if (pt <= 0)
90.174 - goodPort = false;
90.175 - } catch (Exception e) {
90.176 - goodPort = false;
90.177 - }
90.178 - }
90.179 -
90.180 - if (!goodPort) {
90.181 - results.add(new Validator.ResultItem(validator, Validator.ResultType.ERROR, target,
90.182 - mMessages.getString("HL7Address.INVALID_PORT_IN_URL") + url));
90.183 - return false;
90.184 - }
90.185 -
90.186 - break;
90.187 - default:
90.188 - results.add(new Validator.ResultItem(validator, Validator.ResultType.ERROR, target,
90.189 - mMessages.getString("HL7Address.MALFORMED_HL7_URL") + url));
90.190 - return false;
90.191 - }
90.192 -
90.193 - if (host == null || host.trim().length() == 0) {
90.194 - results.add(new Validator.ResultItem(validator, Validator.ResultType.ERROR, target,
90.195 - mMessages.getString("HL7Address.MALFORMED_HL7_URL_HOST_REQUIRED") + url));
90.196 - return false;
90.197 - }
90.198 - } else {
90.199 - results.add(new Validator.ResultItem(validator, Validator.ResultType.ERROR, target,
90.200 - mMessages.getString("HL7Address.MALFORMED_HL7_URL") + url));
90.201 - return false;
90.202 - }
90.203 - return true;
90.204 - }
90.205 -
90.206 -}
91.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/validator/HL7BCValidatorSchemaFactory.java Mon Jul 14 01:11:23 2008 +0530
91.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
91.3 @@ -1,49 +0,0 @@
91.4 -/*
91.5 - * The contents of this file are subject to the terms of the Common Development
91.6 - * and Distribution License (the License). You may not use this file except in
91.7 - * compliance with the License.
91.8 - *
91.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
91.10 - * or http://www.netbeans.org/cddl.txt.
91.11 - *
91.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
91.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
91.14 - * If applicable, add the following below the CDDL Header, with the fields
91.15 - * enclosed by brackets [] replaced by your own identifying information:
91.16 - * "Portions Copyrighted [year] [name of copyright owner]"
91.17 - *
91.18 - * The Original Software is NetBeans. The Initial Developer of the Original
91.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
91.20 - * Microsystems, Inc. All Rights Reserved.
91.21 - */
91.22 -
91.23 -package org.netbeans.modules.wsdlextensions.hl7.validator;
91.24 -/**
91.25 - *
91.26 - */
91.27 -import java.io.InputStream;
91.28 -import javax.xml.transform.Source;
91.29 -import javax.xml.transform.stream.StreamSource;
91.30 -import org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory;
91.31 -
91.32 -public class HL7BCValidatorSchemaFactory extends ValidatorSchemaFactory{
91.33 - static final String xsdUrl = "/org/netbeans/modules/wsdlextensions/hl7/resources/hl7-ext.xsd";
91.34 -
91.35 - public String getNamespaceURI() {
91.36 - return "http://schemas.sun.com/jbi/wsdl-extensions/hl7/";
91.37 - }
91.38 -
91.39 - public InputStream getSchemaInputStream() {
91.40 - return HL7BCValidatorSchemaFactory.class.getResourceAsStream(xsdUrl);
91.41 - }
91.42 -
91.43 - /**
91.44 - * Returns the Inputstream related to this schema
91.45 - */
91.46 - public Source getSchemaSource() {
91.47 - InputStream in = HL7BCValidatorSchemaFactory.class.getResourceAsStream(xsdUrl);
91.48 - Source s = new StreamSource(in);
91.49 - s.setSystemId(HL7BCValidatorSchemaFactory.class.getResource(xsdUrl).toString());
91.50 - return s;
91.51 - }
91.52 -}
92.1 --- a/wsdlextensions.hl7/src/org/netbeans/modules/wsdlextensions/hl7/validator/HL7ComponentValidator.java Mon Jul 14 01:11:23 2008 +0530
92.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
92.3 @@ -1,441 +0,0 @@
92.4 -/*
92.5 - * The contents of this file are subject to the terms of the Common Development
92.6 - * and Distribution License (the License). You may not use this file except in
92.7 - * compliance with the License.
92.8 - *
92.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
92.10 - * or http://www.netbeans.org/cddl.txt.
92.11 - *
92.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
92.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
92.14 - * If applicable, add the following below the CDDL Header, with the fields
92.15 - * enclosed by brackets [] replaced by your own identifying information:
92.16 - * "Portions Copyrighted [year] [name of copyright owner]"
92.17 - *
92.18 - * The Original Software is NetBeans. The Initial Developer of the Original
92.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
92.20 - * Microsystems, Inc. All Rights Reserved.
92.21 - */
92.22 -package org.netbeans.modules.wsdlextensions.hl7.validator;
92.23 -
92.24 -import java.net.URI;
92.25 -import java.net.URL;
92.26 -import java.util.Collection;
92.27 -import java.util.Collections;
92.28 -import java.util.HashSet;
92.29 -import java.util.Iterator;
92.30 -import java.util.List;
92.31 -import java.util.StringTokenizer;
92.32 -import java.util.ResourceBundle;
92.33 -import java.util.Date;
92.34 -import java.text.MessageFormat;
92.35 -import java.text.SimpleDateFormat;
92.36 -import java.text.ParseException;
92.37 -
92.38 -import org.netbeans.modules.xml.wsdl.model.Binding;
92.39 -import org.netbeans.modules.xml.wsdl.model.BindingInput;
92.40 -import org.netbeans.modules.xml.wsdl.model.BindingFault;
92.41 -import org.netbeans.modules.xml.wsdl.model.BindingOperation;
92.42 -import org.netbeans.modules.xml.wsdl.model.BindingOutput;
92.43 -import org.netbeans.modules.xml.wsdl.model.Definitions;
92.44 -import org.netbeans.modules.xml.wsdl.model.PortType;
92.45 -import org.netbeans.modules.xml.wsdl.model.Input;
92.46 -import org.netbeans.modules.xml.wsdl.model.Output;
92.47 -import org.netbeans.modules.xml.wsdl.model.Port;
92.48 -import org.netbeans.modules.xml.wsdl.model.Service;
92.49 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
92.50 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
92.51 -
92.52 -import org.netbeans.modules.xml.xam.Component;
92.53 -import org.netbeans.modules.xml.xam.Model;
92.54 -import org.netbeans.modules.xml.xam.Model.State;
92.55 -import org.netbeans.modules.xml.xam.dom.NamedComponentReference;
92.56 -import org.netbeans.modules.xml.wsdl.model.Message;
92.57 -import org.netbeans.modules.xml.xam.spi.Validation;
92.58 -import org.netbeans.modules.xml.xam.spi.Validation.ValidationType;
92.59 -import org.netbeans.modules.xml.xam.spi.ValidationResult;
92.60 -import org.netbeans.modules.xml.xam.spi.Validator;
92.61 -import org.netbeans.modules.xml.xam.spi.Validator.ResultItem;
92.62 -
92.63 -import org.netbeans.modules.wsdlextensions.hl7.HL7Component;
92.64 -import org.netbeans.modules.wsdlextensions.hl7.HL7Operation;
92.65 -import org.netbeans.modules.wsdlextensions.hl7.HL7Message;
92.66 -import org.netbeans.modules.wsdlextensions.hl7.HL7Binding;
92.67 -import org.netbeans.modules.wsdlextensions.hl7.HL7Address;
92.68 -import org.netbeans.modules.wsdlextensions.hl7.HL7ProtocolProperties;
92.69 -
92.70 -/**
92.71 - * semantic validation, check WSDL elements & attributes values and
92.72 - * any relationship between;
92.73 - *
92.74 - * @author raghunadh.teegavarapu@sun.com
92.75 - */
92.76 -public class HL7ComponentValidator implements Validator, HL7Component.Visitor {
92.77 -
92.78 - private static final String HL7_URL_PREFIX = "hl7://";
92.79 -
92.80 - private static final String HL7_URL_LOGIN_HOST_DELIM = "@";
92.81 -
92.82 - private static final String HL7_URL_COLON_DELIM = ":";
92.83 -
92.84 - private static final String HL7_URL_PATH_DELIM = "/";
92.85 -
92.86 - private static final ResourceBundle mMessages = ResourceBundle.getBundle("org.netbeans.modules.wsdlextensions.hl7.validator.Bundle");
92.87 -
92.88 - private Validation mValidation;
92.89 -
92.90 - private ValidationType mValidationType;
92.91 -
92.92 - private ValidationResult mValidationResult;
92.93 -
92.94 - public static final ValidationResult EMPTY_RESULT = new ValidationResult(Collections.EMPTY_SET,
92.95 - Collections.EMPTY_SET);
92.96 -
92.97 - public HL7ComponentValidator() {
92.98 - }
92.99 -
92.100 - /**
92.101 - * Returns name of this validation service.
92.102 - */
92.103 - public String getName() {
92.104 - return getClass().getName();
92.105 - }
92.106 -
92.107 - /**
92.108 - * Validates given model.
92.109 - *
92.110 - * @param model model to validate.
92.111 - * @param validation reference to the validation context.
92.112 - * @param validationType the type of validation to perform
92.113 - * @return ValidationResult.
92.114 - */
92.115 - public ValidationResult validate(Model model, Validation validation, ValidationType validationType) {
92.116 - mValidation = validation;
92.117 - mValidationType = validationType;
92.118 -
92.119 - HashSet<ResultItem> results = new HashSet<ResultItem>();
92.120 - HashSet<Model> models = new HashSet<Model>();
92.121 - models.add(model);
92.122 - mValidationResult = new ValidationResult(results, models);
92.123 -
92.124 - // Traverse the model
92.125 - if (model instanceof WSDLModel) {
92.126 - WSDLModel wsdlModel = (WSDLModel) model;
92.127 -
92.128 - if (model.getState() == State.NOT_WELL_FORMED) {
92.129 - return EMPTY_RESULT;
92.130 - }
92.131 -
92.132 - Definitions defs = wsdlModel.getDefinitions();
92.133 - Iterator<Binding> bindings = defs.getBindings().iterator();
92.134 -
92.135 - while (bindings.hasNext()) {
92.136 - Binding binding = bindings.next();
92.137 - if (binding.getType() == null || binding.getType().get() == null) {
92.138 -
92.139 - continue;
92.140 - }
92.141 -
92.142 - int numHL7Bindings = binding.getExtensibilityElements(HL7Binding.class).size();
92.143 - if (numHL7Bindings == 0) {
92.144 - continue;
92.145 - }
92.146 -
92.147 - if (numHL7Bindings > 0 && numHL7Bindings != 1) {
92.148 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, binding,
92.149 - mMessages.getString("HL7BindingValidation.ONLY_ONE_HL7_BINDING_ALLOWED")));
92.150 - }
92.151 -
92.152 - Iterator<BindingOperation> bindingOps = binding.getBindingOperations().iterator();
92.153 - boolean foundHL7Op = false;
92.154 - while (bindingOps.hasNext()) {
92.155 - BindingOperation bindingOp = bindingOps.next();
92.156 - List hl7OpsList = bindingOp.getExtensibilityElements(HL7Operation.class);
92.157 - Iterator<HL7Operation> hl7Ops = hl7OpsList.iterator();
92.158 -
92.159 - while (hl7Ops.hasNext()) {
92.160 - hl7Ops.next().accept(this);
92.161 - }
92.162 -
92.163 - if (hl7OpsList.size() > 0) {
92.164 - foundHL7Op = true;
92.165 - BindingInput bindingInput = bindingOp.getBindingInput();
92.166 - if (bindingInput != null) {
92.167 - int inputMessageCnt = 0;
92.168 - Iterator<HL7Message> hl7Messages = bindingInput.getExtensibilityElements(HL7Message.class).iterator();
92.169 - while (hl7Messages.hasNext()) {
92.170 - inputMessageCnt++;
92.171 - HL7Message hl7Message = hl7Messages.next();
92.172 - hl7Message.accept(this);
92.173 - }
92.174 - if (inputMessageCnt > 1) {
92.175 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, binding,
92.176 - mMessages.getString("HL7BindingValidation.ATMOST_ONE_MESSAGE_IN_INPUT")
92.177 - + inputMessageCnt));
92.178 - }
92.179 - if (inputMessageCnt == 0) {
92.180 - results.add(new Validator.ResultItem(
92.181 - this,
92.182 - Validator.ResultType.ERROR,
92.183 - binding,
92.184 - mMessages.getString("HL7BindingValidation.NO_EXTENSIBILITY_ELEMENT_FOUND_IN_INPUT")));
92.185 - }
92.186 - }
92.187 -
92.188 - }
92.189 - }
92.190 - // there is hl7:binding but no hl7:operation
92.191 - if (numHL7Bindings > 0 && !foundHL7Op) {
92.192 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, binding,
92.193 - mMessages.getString("HL7BindingValidation.MISSING_HL7_OPERATION")));
92.194 - }
92.195 - // there is no hl7:binding but there are hl7:operation
92.196 - if (numHL7Bindings == 0 && foundHL7Op) {
92.197 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, binding,
92.198 - mMessages.getString("HL7BindingValidation.HL7_OPERATION_WO_HL7_BINDING")));
92.199 - }
92.200 - }
92.201 -
92.202 - Iterator<Service> services = defs.getServices().iterator();
92.203 - while (services.hasNext()) {
92.204 - Iterator<Port> ports = services.next().getPorts().iterator();
92.205 - while (ports.hasNext()) {
92.206 - Port port = ports.next();
92.207 - if (port.getBinding() != null) {
92.208 - Binding binding = port.getBinding().get();
92.209 - if (binding != null) {
92.210 - int numRelatedHL7Bindings = binding.getExtensibilityElements(HL7Binding.class).size();
92.211 - Iterator<HL7Address> hl7Addresses = port.getExtensibilityElements(HL7Address.class).iterator();
92.212 - if ((numRelatedHL7Bindings > 0) && (!hl7Addresses.hasNext())) {
92.213 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, port,
92.214 - mMessages.getString("HL7ExtValidation.MISSING_HL7_ADDRESS")));
92.215 - }
92.216 -
92.217 - if (port.getExtensibilityElements(HL7Address.class).size() > 1) {
92.218 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, port,
92.219 - mMessages.getString("HL7ExtValidation.ONLY_ONE_HL7ADDRESS_ALLOWED")));
92.220 - }
92.221 - while (hl7Addresses.hasNext()) {
92.222 - hl7Addresses.next().accept(this);
92.223 - }
92.224 -
92.225 - Iterator<HL7ProtocolProperties> hl7ProtocolProperties = port.getExtensibilityElements(
92.226 - HL7ProtocolProperties.class).iterator();
92.227 - if ((numRelatedHL7Bindings > 0) && (!hl7ProtocolProperties.hasNext())) {
92.228 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, port,
92.229 - mMessages.getString("HL7ExtValidation.MISSING_HL7_PROTOCOLPROPERTIES")));
92.230 - }
92.231 -
92.232 - if (port.getExtensibilityElements(HL7ProtocolProperties.class).size() > 1) {
92.233 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, port,
92.234 - mMessages.getString("HL7ExtValidation.ONLY_ONE_PROTOCOLPROPERTIES_ALLOWED")));
92.235 - }
92.236 - while (hl7ProtocolProperties.hasNext()) {
92.237 - hl7ProtocolProperties.next().accept(this);
92.238 - }
92.239 - }
92.240 - }
92.241 - }
92.242 - }
92.243 - }
92.244 - // Clear out our state
92.245 - mValidation = null;
92.246 - mValidationType = null;
92.247 -
92.248 - return mValidationResult;
92.249 - }
92.250 -
92.251 - public void visit(HL7Address target) {
92.252 - // validate the following:
92.253 - // (1) attribute 'url' has the right syntax: i.e. hl7://[hl7_host]:[hl7_port]
92.254 - //
92.255 - Collection<ResultItem> results = mValidationResult.getValidationResult();
92.256 - String serverlocation = target.getHL7ServerLocationURL();
92.257 - HL7AddressURL url = new HL7AddressURL(serverlocation);
92.258 -
92.259 - if (!isAToken(serverlocation, target)) {
92.260 - url.parse(results, this, target);
92.261 - }
92.262 -
92.263 - }
92.264 -
92.265 - private boolean isAToken(String name, HL7Component target) {
92.266 - Collection<ResultItem> results = mValidationResult.getValidationResult();
92.267 -
92.268 - boolean isToken = false;
92.269 -
92.270 - if (name != null && name.startsWith("${")) {
92.271 - isToken = true;
92.272 - if (!name.endsWith("}")) {
92.273 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target, getMessage(
92.274 - "HL7ExtValidation.INVALID_ENVIRONMENT_TOKEN_NAME", new Object[] { name })));
92.275 - }
92.276 - }
92.277 -
92.278 - return isToken;
92.279 - }
92.280 -
92.281 - public void visit(HL7Binding target) {
92.282 - // for hl7 binding tag - nothing to validate at this point
92.283 - }
92.284 -
92.285 - public void visit(HL7Operation target) {
92.286 - // for hl7 operation tag - nothing to validate at this point
92.287 - }
92.288 -
92.289 - public void visit(HL7Message target) {
92.290 - // check the values and relations of/between all the attributes
92.291 - Collection<ResultItem> results = mValidationResult.getValidationResult();
92.292 - String use = target.getUse();
92.293 - if (!nonEmptyString(use)) {
92.294 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.295 - mMessages.getString("HL7Message.INVALID_HL7_USE")));
92.296 - }
92.297 - String hl7encoderStyle = target.getEncodingStyle();
92.298 - if (nonEmptyString(hl7encoderStyle)){
92.299 - if(use.equals("encoded") && !hl7encoderStyle.equals("hl7encoder-1.0")) {
92.300 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.301 - mMessages.getString("HL7Message.INVALID_HL7_ENCODINGSTYLE")));
92.302 - }
92.303 - }else{
92.304 - if(use.equals("encoded")) {
92.305 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.306 - mMessages.getString("HL7Message.INVALID_HL7_ENCODINGSTYLE")));
92.307 - }
92.308 - }
92.309 -
92.310 - }
92.311 -
92.312 - public void visit(HL7ProtocolProperties target) {
92.313 - // check the values and relations of/between all the attributes
92.314 - Collection<ResultItem> results = mValidationResult.getValidationResult();
92.315 - // validation for MSH
92.316 - Boolean validateMSH = target.getValidateMSHEnabled();
92.317 - if (validateMSH != null) {
92.318 - String booleanValue = validateMSH.toString();
92.319 - if (nonEmptyString(booleanValue)) {
92.320 - if (booleanValue.equals("true")) {
92.321 - if (!nonEmptyString(target.getProcessingID()) || !nonEmptyString(target.getVersionID())) {
92.322 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.323 - mMessages.getString("HL7ProtocolProperties.REQUIRED_HL7_MESSAGE_VALIDATION")));
92.324 -
92.325 - }
92.326 - }
92.327 -
92.328 - }
92.329 - }
92.330 - // version 2.1 does not have support for enchanced mode of ack
92.331 - String versionID = target.getVersionID();
92.332 - String ackMode = target.getAckMode();
92.333 - if (nonEmptyString(versionID)) {
92.334 - if(versionID.equals("3.0")){
92.335 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target, getMessage(
92.336 - "HL7ProtocolProperties.NOT_SUPPORT_VERSION", new Object[] { versionID })));
92.337 - }
92.338 - if (nonEmptyString(ackMode)) {
92.339 - if (versionID.equals("2.1") && ackMode.equals("enhanced")) {
92.340 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target, getMessage(
92.341 - "HL7ProtocolProperties.INVALID_ACKCODE_FOR_VERSION", new Object[] { versionID, ackMode })));
92.342 -
92.343 - }
92.344 -
92.345 - }
92.346 -
92.347 - } else {
92.348 -
92.349 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.350 - mMessages.getString("HL7ProtocolProperties.INVALID_VERSION")));
92.351 - }
92.352 - // Validation for sftEnable. sftEnabled is true only with version id 2.5
92.353 - Boolean sftEnabled = target.getSFTEnabled();
92.354 - if(sftEnabled != null) {
92.355 - String booleanValue = sftEnabled.toString();
92.356 - if (nonEmptyString(booleanValue)) {
92.357 - if (booleanValue.equals("true")) {
92.358 - if (nonEmptyString(versionID)) {
92.359 - boolean condition = versionID.equals("2.5") ||
92.360 - versionID.equals("2.5.1");
92.361 - if (!condition) {
92.362 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target, getMessage(
92.363 - "HL7ProtocolProperties.INVALID_VERSION_FOR_SFT", new Object[] { versionID })));
92.364 - }
92.365 - }
92.366 - }
92.367 - }
92.368 - }
92.369 - // Validation for Software Install date.
92.370 - String softwareInstallDate = target.getSoftwareInstallDate();
92.371 - if (nonEmptyString(softwareInstallDate)) {
92.372 - Date dt = null;
92.373 - try {
92.374 - SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmm");
92.375 - sdf.setLenient(false);
92.376 - dt = sdf.parse(softwareInstallDate);
92.377 - } catch(ParseException e){
92.378 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target, getMessage(
92.379 - "HL7ProtocolProperties.INVALID_DATE", new Object[] { dt })));
92.380 - }
92.381 -
92.382 - }
92.383 - // Validation for Start block charecter
92.384 - Byte startBlockChar = target.getStartBlockChar();
92.385 - if (startBlockChar != null) {
92.386 - if (startBlockChar.intValue() < 1 || startBlockChar.intValue() > 127) {
92.387 -
92.388 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.389 - mMessages.getString("HL7ProtocolProperties.INVALID_HL7_STARTBLOCK_CHARACTER")));
92.390 - }
92.391 - } else {
92.392 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.393 - mMessages.getString("HL7ProtocolProperties.INVALID_HL7_STARTBLOCK_CHARACTER")));
92.394 - }
92.395 -
92.396 - // Validation for End block charecter
92.397 - Byte endBlockChar = target.getEndBlockChar();
92.398 - if (endBlockChar != null) {
92.399 - if (endBlockChar.intValue() < 1 || endBlockChar.intValue() > 127) {
92.400 -
92.401 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.402 - mMessages.getString("HL7ProtocolProperties.INVALID_HL7_ENDTBLOCK_CHARACTER")));
92.403 - }
92.404 - } else {
92.405 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.406 - mMessages.getString("HL7ProtocolProperties.INVALID_HL7_ENDTBLOCK_CHARACTER")));
92.407 - }
92.408 -
92.409 - // Validation for End Date charecter
92.410 - Byte endDataChar = target.getEndDataChar();
92.411 - if (endDataChar != null) {
92.412 - if (endDataChar.intValue() < 1 || endDataChar.intValue() > 127) {
92.413 -
92.414 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.415 - mMessages.getString("HL7ProtocolProperties.INVALID_HL7_ENDTDATA_CHARACTER")));
92.416 - }
92.417 - } else {
92.418 - results.add(new Validator.ResultItem(this, Validator.ResultType.ERROR, target,
92.419 - mMessages.getString("HL7ProtocolProperties.INVALID_HL7_ENDTDATA_CHARACTER")));
92.420 - }
92.421 -
92.422 - }
92.423 -
92.424 - private boolean nonEmptyString(String strToTest) {
92.425 - boolean nonEmpty = false;
92.426 - if (strToTest != null && strToTest.length() > 0) {
92.427 - nonEmpty = true;
92.428 - }
92.429 - return nonEmpty;
92.430 - }
92.431 -
92.432 - private String getMessage(String key, String param) {
92.433 - return getMessage(key, new Object[] { param });
92.434 - }
92.435 -
92.436 - private String getMessage(String key, Object[] params) {
92.437 - String fmt = mMessages.getString(key);
92.438 - if (params != null) {
92.439 - return MessageFormat.format(fmt, params);
92.440 - } else {
92.441 - return fmt;
92.442 - }
92.443 - }
92.444 -}
93.1 --- a/wsdlextensions.hl7/test/build-unit.xml Mon Jul 14 01:11:23 2008 +0530
93.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
93.3 @@ -1,72 +0,0 @@
93.4 -<?xml version="1.0"?>
93.5 -<!--
93.6 - The contents of this file are subject to the terms of the Common Development
93.7 - and Distribution License (the License). You may not use this file except in
93.8 - compliance with the License.
93.9 -
93.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
93.11 - or http://www.netbeans.org/cddl.txt.
93.12 -
93.13 - When distributing Covered Code, include this CDDL Header Notice in each file
93.14 - and include the License file at http://www.netbeans.org/cddl.txt.
93.15 - If applicable, add the following below the CDDL Header, with the fields
93.16 - enclosed by brackets [] replaced by your own identifying information:
93.17 - "Portions Copyrighted [year] [name of copyright owner]"
93.18 -
93.19 - The Original Software is NetBeans. The Initial Developer of the Original
93.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
93.21 - Microsystems, Inc. All Rights Reserved.
93.22 --->
93.23 -
93.24 -<project name="org.netbeans.modules.wsdlextensions.hl7/test-unit" basedir="." default="all">
93.25 - <!-- ========= -->
93.26 - <!-- Compilers -->
93.27 - <!-- ========= -->
93.28 - <property name="build.compiler.source" value="1.5"/>
93.29 - <property file="../nbproject/project.properties"/>
93.30 -
93.31 - <target name="default-compiler">
93.32 - <!-- Build application before tests -->
93.33 - <ant dir=".." target="jar"/>
93.34 - <buildTests srcdir="unit/src" compileexcludes="**/data/**">
93.35 - <property name="javac.source" value="1.5"/>
93.36 - <property name="package.tests.includes" value="**/*"/>
93.37 - <property name="package.tests.excludes" value="**/*.java"/>
93.38 - <classpath>
93.39 - <!-- Add classpath elements needed to compile tests -->
93.40 - <pathelement path="${test.unit.cp}"/>
93.41 - <pathelement path="${test.unit.cp.extra}"/>
93.42 - </classpath>
93.43 - </buildTests>
93.44 - </target>
93.45 -
93.46 - <!-- ========= -->
93.47 - <!-- Executors -->
93.48 - <!-- ========= -->
93.49 -
93.50 - <target name="run-unit-test">
93.51 - <echo>NNNNNNNNNNNNNNNNNNNNtest.unit.cp.extra=${test.unit.cp.extra}</echo>
93.52 - <executeTests pluginname="jvm">
93.53 - <classpath>
93.54 - <!-- Add classpath elements needed to run tests -->
93.55 - <pathelement path="${test.unit.cp}"/>
93.56 - <pathelement path="${test.unit.cp.extra}"/>
93.57 - <pathelement path="${test.unit.run.cp.extra}"/>
93.58 - </classpath>
93.59 - </executeTests>
93.60 - </target>
93.61 -
93.62 - <target name="run-ide-test">
93.63 - <property name="xtest.ide.use.classloader" value="org.netbeans.modules.wsdlextensions.hl7"/>
93.64 - <executeTests pluginName="ide">
93.65 - <classpath>
93.66 - <!-- Add classpath elements needed to run tests -->
93.67 - <pathelement path="${test.unit.cp}"/>
93.68 - <pathelement path="${test.unit.cp.extra}"/>
93.69 - <pathelement path="${test.unit.run.cp.extra}"/>
93.70 - </classpath>
93.71 - </executeTests>
93.72 - </target>
93.73 -
93.74 -</project>
93.75 -
94.1 --- a/wsdlextensions.hl7/test/build.xml Mon Jul 14 01:11:23 2008 +0530
94.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
94.3 @@ -1,100 +0,0 @@
94.4 -<?xml version="1.0"?>
94.5 -<!--
94.6 - The contents of this file are subject to the terms of the Common Development
94.7 - and Distribution License (the License). You may not use this file except in
94.8 - compliance with the License.
94.9 -
94.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
94.11 - or http://www.netbeans.org/cddl.txt.
94.12 -
94.13 - When distributing Covered Code, include this CDDL Header Notice in each file
94.14 - and include the License file at http://www.netbeans.org/cddl.txt.
94.15 - If applicable, add the following below the CDDL Header, with the fields
94.16 - enclosed by brackets [] replaced by your own identifying information:
94.17 - "Portions Copyrighted [year] [name of copyright owner]"
94.18 -
94.19 - The Original Software is NetBeans. The Initial Developer of the Original
94.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
94.21 - Microsystems, Inc. All Rights Reserved.
94.22 --->
94.23 -<project name="org.netbeans.modules.wsdlextensions.hl7/test" basedir="." default="all">
94.24 -
94.25 - <!-- Name of tested module -->
94.26 - <property name="xtest.module" value="org.netbeans.modules.wsdlextensions.hl7"/>
94.27 -
94.28 - <!-- Home of XTest -->
94.29 - <property name="xtest.home" location="../../../xtest"/>
94.30 - <import file="${xtest.home}/lib/templates/xtest.xml"/>
94.31 -
94.32 - <!-- default testtypes, attributes used when no value is supplied from command line -->
94.33 - <property name="xtest.testtype" value="unit"/>
94.34 - <property name="xtest.attribs" value="stable"/>
94.35 - <!--
94.36 - <property name="xtest.testtype" value="functional"/>
94.37 - <property name="xtest.attribs" value="stable,validation"/>
94.38 - -->
94.39 -
94.40 - <!-- Points to directory with IDE to test. Optional for IDE tests. -->
94.41 - <property name="netbeans.dest.dir" location="${xtest.home}/../nbbuild/netbeans"/>
94.42 -
94.43 - <!--
94.44 - *****************************************************
94.45 - ** You should not change anything after this comment,
94.46 - ** unless you really know what you are doing
94.47 - ******************************************************
94.48 - -->
94.49 -
94.50 - <!-- Ant property. Value 'ignore' means that system classpath is ignored
94.51 - and only classpath specified in build file is used. -->
94.52 - <property name="build.sysclasspath" value="ignore"/>
94.53 -
94.54 - <!-- Points to antfile with module's harness.
94.55 - Targets from that antfile is called from this build.xml -->
94.56 - <property name="xtest.module_harness.antfile" location="${xtest.home}/lib/module_harness.xml"/>
94.57 -
94.58 - <!-- before using xtest task, it has to be defined -->
94.59 - <taskdef name="xtest" classname="org.netbeans.xtest.usertasks.XTestActionTask"
94.60 - classpath="${xtest.home}/lib/xtest.jar"/>
94.61 -
94.62 - <!-- ============ -->
94.63 - <!-- Main targets -->
94.64 - <!-- ============ -->
94.65 -
94.66 - <target name="all" depends="runtests"/>
94.67 -
94.68 - <!-- This calls target which will call compilers according to cfg file.
94.69 - You should not change this target unless you realy know what you are doing -->
94.70 - <target name="buildtests">
94.71 - <xtest executeAction="buildTests"/>
94.72 - </target>
94.73 -
94.74 - <!-- This calls common clean process. This cleans the tests -->
94.75 - <!-- You can write your own if you need something special -->
94.76 - <target name="cleantests">
94.77 - <xtest executeAction="cleanTests"/>
94.78 - </target>
94.79 -
94.80 - <!-- This target runs tests. You should not change this -->
94.81 - <!-- target unless you realy know what you are doing -->
94.82 - <target name="runtests" depends="buildtests">
94.83 - <echo message="Module: Running tests for ${xtest.module}, testtype ${xtest.testtype}, attribs=${xtest.attribs}"/>
94.84 - <xtest executeAction="runTests"/>
94.85 - </target>
94.86 -
94.87 - <!-- This target cleans results -->
94.88 - <target name="cleanresults">
94.89 - <xtest executeAction="cleanResults"/>
94.90 - </target>
94.91 -
94.92 - <!-- This target cleans both tests and results -->
94.93 - <target name="realclean">
94.94 - <xtest executeAction="cleanAll"/>
94.95 - </target>
94.96 -
94.97 - <!-- This target prints out default xtest configuration which will be used to run the tests -->
94.98 - <target name="printconfig">
94.99 - <echo message="Default config is testtype: ${xtest.testtype}, attributes: ${xtest.attribs}."/>
94.100 - </target>
94.101 -
94.102 -</project>
94.103 -
95.1 --- a/wsdlextensions.hl7/test/cfg-unit.xml Mon Jul 14 01:11:23 2008 +0530
95.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
95.3 @@ -1,44 +0,0 @@
95.4 -<?xml version="1.0" encoding="UTF-8"?>
95.5 -<!--
95.6 - The contents of this file are subject to the terms of the Common Development
95.7 - and Distribution License (the License). You may not use this file except in
95.8 - compliance with the License.
95.9 -
95.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
95.11 - or http://www.netbeans.org/cddl.txt.
95.12 -
95.13 - When distributing Covered Code, include this CDDL Header Notice in each file
95.14 - and include the License file at http://www.netbeans.org/cddl.txt.
95.15 - If applicable, add the following below the CDDL Header, with the fields
95.16 - enclosed by brackets [] replaced by your own identifying information:
95.17 - "Portions Copyrighted [year] [name of copyright owner]"
95.18 -
95.19 - The Original Software is NetBeans. The Initial Developer of the Original
95.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
95.21 - Microsystems, Inc. All Rights Reserved.
95.22 --->
95.23 -
95.24 -<mconfig name="Unit config">
95.25 -
95.26 - <testbag testattribs="stable" executor="unit-executor" name="Unit tests">
95.27 - <testset dir="unit/src">
95.28 - <patternset>
95.29 - <include name="**/*Test.class"/>
95.30 - <!-- exclude name="**/readwrite/*Test.class"/ -->
95.31 - </patternset>
95.32 - </testset>
95.33 - </testbag>
95.34 -
95.35 - <testbag testattribs="ide" executor="ide-executor" name="IDE tests">
95.36 - <testset dir="unit/src">
95.37 - <patternset>
95.38 - <include name="**/*Test.class"/>
95.39 - </patternset>
95.40 - </testset>
95.41 - </testbag>
95.42 -
95.43 - <compiler name="default-compiler" antfile="build-unit.xml" target="default-compiler" default="true"/>
95.44 - <executor name="unit-executor" antfile="build-unit.xml" target="run-unit-test"/>
95.45 - <executor name="ide-executor" antfile="build-unit.xml" target="run-ide-test"/>
95.46 -
95.47 -</mconfig>
96.1 Binary file wsdlextensions.hl7/test/lib/tests-unit.jar has changed
97.1 --- a/wsdlextensions.hl7/test/unit/src/org/netbeans/modules/wsdlextensions/hl7/validator/HL7BCValidatorSchemaFactoryTest.java Mon Jul 14 01:11:23 2008 +0530
97.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
97.3 @@ -1,78 +0,0 @@
97.4 -/*
97.5 - * The contents of this file are subject to the terms of the Common Development
97.6 - * and Distribution License (the License). You may not use this file except in
97.7 - * compliance with the License.
97.8 - *
97.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
97.10 - * or http://www.netbeans.org/cddl.txt.
97.11 - *
97.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
97.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
97.14 - * If applicable, add the following below the CDDL Header, with the fields
97.15 - * enclosed by brackets [] replaced by your own identifying information:
97.16 - * "Portions Copyrighted [year] [name of copyright owner]"
97.17 - *
97.18 - * The Original Software is NetBeans. The Initial Developer of the Original
97.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
97.20 - * Microsystems, Inc. All Rights Reserved.
97.21 - */
97.22 -
97.23 -/*
97.24 - * HL7BCValidatorSchemaFactoryTest.java
97.25 - * JUnit based test
97.26 - *
97.27 - * Created on February 6, 2007, 11:21 PM
97.28 - */
97.29 -
97.30 -package org.netbeans.modules.wsdlextensions.hl7.validator;
97.31 -
97.32 -import javax.xml.transform.Source;
97.33 -import junit.framework.*;
97.34 -import java.io.InputStream;
97.35 -import org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory;
97.36 -
97.37 -/**
97.38 - *
97.39 - * @author radval
97.40 - */
97.41 -public class HL7BCValidatorSchemaFactoryTest extends TestCase {
97.42 -
97.43 - public HL7BCValidatorSchemaFactoryTest(String testName) {
97.44 - super(testName);
97.45 - }
97.46 -
97.47 - protected void setUp() throws Exception {
97.48 - }
97.49 -
97.50 - protected void tearDown() throws Exception {
97.51 - }
97.52 -
97.53 - /**
97.54 - * Test of getNamespaceURI method, of class org.netbeans.modules.wsdlextensions.hl7.validator.HL7BCValidatorSchemaFactory.
97.55 - */
97.56 - public void testGetNamespaceURI() {
97.57 - System.out.println("getNamespaceURI");
97.58 -
97.59 - HL7BCValidatorSchemaFactory instance = new HL7BCValidatorSchemaFactory();
97.60 -
97.61 - String result = instance.getNamespaceURI();
97.62 - assertNotNull(result);
97.63 -
97.64 - }
97.65 -
97.66 - /**
97.67 - * Test of getSchemaInputStream method, of class org.netbeans.modules.wsdlextensions.hl7.validator.HL7BCValidatorSchemaFactory.
97.68 - */
97.69 - public void testGetSchemaSource() {
97.70 - System.out.println("getSchemaSource");
97.71 -
97.72 - HL7BCValidatorSchemaFactory instance = new HL7BCValidatorSchemaFactory();
97.73 -
97.74 -
97.75 - Source result = instance.getSchemaSource();
97.76 - assertNotNull(result);
97.77 -
97.78 -
97.79 - }
97.80 -
97.81 -}
98.1 --- a/wsdlextensions.hl7/test/unit/src/org/netbeans/modules/wsdlextensions/hl7/validator/SchemaTest.java Mon Jul 14 01:11:23 2008 +0530
98.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
98.3 @@ -1,95 +0,0 @@
98.4 -/*
98.5 - * The contents of this file are subject to the terms of the Common Development
98.6 - * and Distribution License (the License). You may not use this file except in
98.7 - * compliance with the License.
98.8 - *
98.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
98.10 - * or http://www.netbeans.org/cddl.txt.
98.11 - *
98.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
98.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
98.14 - * If applicable, add the following below the CDDL Header, with the fields
98.15 - * enclosed by brackets [] replaced by your own identifying information:
98.16 - * "Portions Copyrighted [year] [name of copyright owner]"
98.17 - *
98.18 - * The Original Software is NetBeans. The Initial Developer of the Original
98.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
98.20 - * Microsystems, Inc. All Rights Reserved.
98.21 - */
98.22 -
98.23 -/*
98.24 - * SchemaTest.java
98.25 - * JUnit based test
98.26 - *
98.27 - * Created on January 31, 2007, 6:25 PM
98.28 - */
98.29 -
98.30 -package org.netbeans.modules.wsdlextensions.hl7.validator;
98.31 -
98.32 -import java.net.URL;
98.33 -import javax.xml.XMLConstants;
98.34 -import javax.xml.transform.Source;
98.35 -import javax.xml.validation.Schema;
98.36 -import javax.xml.validation.SchemaFactory;
98.37 -import junit.framework.*;
98.38 -import org.xml.sax.ErrorHandler;
98.39 -import org.xml.sax.SAXException;
98.40 -import org.xml.sax.SAXParseException;
98.41 -
98.42 -/**
98.43 - *
98.44 - * @author radval
98.45 - */
98.46 -public class SchemaTest extends TestCase {
98.47 -
98.48 - private Exception mLastError;
98.49 -
98.50 - private URL schemaUrl = SchemaTest.class.getResource("/org/netbeans/modules/wsdlextensions/hl7/resources/hl7-ext.xsd");
98.51 -
98.52 - public SchemaTest(String testName) {
98.53 - super(testName);
98.54 - }
98.55 -
98.56 - protected void setUp() throws Exception {
98.57 - }
98.58 -
98.59 - protected void tearDown() throws Exception {
98.60 - }
98.61 -
98.62 - // TODO add test methods here. The name must begin with 'test'. For example:
98.63 - // public void testHello() {}
98.64 -
98.65 - public void testSchema() throws Exception {
98.66 - MyErrorHandler errorHandler = new MyErrorHandler();
98.67 - SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
98.68 - sf.setErrorHandler(errorHandler);
98.69 - HL7BCValidatorSchemaFactory fac = new HL7BCValidatorSchemaFactory();
98.70 - Source s = fac.getSchemaSource();
98.71 - Schema schema = sf.newSchema(s);
98.72 -
98.73 - assertNotNull("schema should not be null", schema);
98.74 -
98.75 - assertNull("No exception should occur in schema parsing", mLastError);
98.76 -
98.77 - }
98.78 -
98.79 - class MyErrorHandler implements ErrorHandler {
98.80 -
98.81 - public void error(SAXParseException exception) throws SAXException {
98.82 - mLastError = exception;
98.83 - exception.printStackTrace();
98.84 - }
98.85 -
98.86 - public void fatalError(SAXParseException exception) throws SAXException {
98.87 - mLastError = exception;
98.88 - exception.printStackTrace();
98.89 - }
98.90 -
98.91 - public void warning(SAXParseException exception) throws SAXException {
98.92 - exception.printStackTrace();
98.93 - }
98.94 -
98.95 -
98.96 -
98.97 - }
98.98 -}
99.1 --- a/wsdlextensions.smtp/build.xml Mon Jul 14 01:11:23 2008 +0530
99.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
99.3 @@ -1,28 +0,0 @@
99.4 -<?xml version="1.0" encoding="UTF-8"?>
99.5 -
99.6 -<!--
99.7 - The contents of this file are subject to the terms of the Common Development
99.8 - and Distribution License (the License). You may not use this file except in
99.9 - compliance with the License.
99.10 -
99.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
99.12 - or http://www.netbeans.org/cddl.txt.
99.13 -
99.14 - When distributing Covered Code, include this CDDL Header Notice in each file
99.15 - and include the License file at http://www.netbeans.org/cddl.txt.
99.16 - If applicable, add the following below the CDDL Header, with the fields
99.17 - enclosed by brackets [] replaced by your own identifying information:
99.18 - "Portions Copyrighted [year] [name of copyright owner]"
99.19 -
99.20 - The Original Software is NetBeans. The Initial Developer of the Original
99.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
99.22 - Microsystems, Inc. All Rights Reserved.
99.23 --->
99.24 -
99.25 -<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
99.26 -<!-- for some information on what you could do (e.g. targets to override). -->
99.27 -<!-- If you delete this file and reopen the project it will be recreated. -->
99.28 -<project name="org.netbeans.modules.wsdlextensions.smtp" default="netbeans" basedir=".">
99.29 - <description>Builds, tests, and runs the project org.netbeans.modules.wsdlextensions.smtp.</description>
99.30 - <import file="../../nbbuild/templates/projectized.xml"/>
99.31 -</project>
100.1 --- a/wsdlextensions.smtp/manifest.mf Mon Jul 14 01:11:23 2008 +0530
100.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
100.3 @@ -1,6 +0,0 @@
100.4 -Manifest-Version: 1.0
100.5 -OpenIDE-Module: org.netbeans.modules.wsdlextensions.smtp
100.6 -OpenIDE-Module-Layer: org/netbeans/modules/wsdlextensions/smtp/resources/layer.xml
100.7 -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/wsdlextensions/smtp/resources/Bundle.properties
100.8 -OpenIDE-Module-Specification-Version: 1.0
100.9 -
101.1 --- a/wsdlextensions.smtp/nbproject/genfiles.properties Mon Jul 14 01:11:23 2008 +0530
101.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
101.3 @@ -1,8 +0,0 @@
101.4 -build.xml.data.CRC32=9c705cee
101.5 -build.xml.script.CRC32=0d7827b8
101.6 -build.xml.stylesheet.CRC32=77ef55dd
101.7 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
101.8 -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
101.9 -nbproject/build-impl.xml.data.CRC32=0594bb06
101.10 -nbproject/build-impl.xml.script.CRC32=daee232f
101.11 -nbproject/build-impl.xml.stylesheet.CRC32=3f8b4615
102.1 --- a/wsdlextensions.smtp/nbproject/project.properties Mon Jul 14 01:11:23 2008 +0530
102.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
102.3 @@ -1,54 +0,0 @@
102.4 -#
102.5 -# The contents of this file are subject to the terms of the Common Development
102.6 -# and Distribution License (the License). You may not use this file except in
102.7 -# compliance with the License.
102.8 -#
102.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
102.10 -# or http://www.netbeans.org/cddl.txt.
102.11 -#
102.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
102.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
102.14 -# If applicable, add the following below the CDDL Header, with the fields
102.15 -# enclosed by brackets [] replaced by your own identifying information:
102.16 -# "Portions Copyrighted [year] [name of copyright owner]"
102.17 -#
102.18 -# The Original Software is NetBeans. The Initial Developer of the Original
102.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
102.20 -# Microsystems, Inc. All Rights Reserved.
102.21 -#
102.22 -
102.23 -javac.compilerargs=-Xlint:unchecked
102.24 -javac.source=1.5
102.25 -
102.26 -file.reference.smtpbc-src=src
102.27 -file.reference.smtpbc-test=test
102.28 -
102.29 -src.dir=${file.reference.smtpbc-src}
102.30 -test.src.dir=${file.reference.smtpbc-test}
102.31 -test.unit.cp.extra=\
102.32 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-xdm.jar:\
102.33 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-xam.jar:\
102.34 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-retriever.jar:\
102.35 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-schema-model.jar:\
102.36 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-wsdl-model.jar:\
102.37 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor.jar:\
102.38 - ${netbeans.dest.dir}/platform6/lib/org-openide-modules.jar:\
102.39 - ${netbeans.dest.dir}/platform6/lib/org-openide-util.jar:\
102.40 - ${netbeans.dest.dir}/platform6/modules/org-openide-options.jar:\
102.41 - ${netbeans.dest.dir}/platform6/modules/org-openide-text.jar:\
102.42 - ${netbeans.dest.dir}/platform6/modules/org-openide-nodes.jar:\
102.43 - ${netbeans.dest.dir}/platform6/modules/org-openide-loaders.jar:\
102.44 - ${netbeans.dest.dir}/platform6/modules/org-openide-dialogs.jar:\
102.45 - ${netbeans.dest.dir}/platform6/modules/org-openide-windows.jar:\
102.46 - ${netbeans.dest.dir}/platform6/modules/org-openide-awt.jar:\
102.47 - ${netbeans.dest.dir}/platform6/modules/org-netbeans-modules-masterfs.jar:\
102.48 - ${netbeans.dest.dir}/platform6/core/org-openide-filesystems.jar:\
102.49 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-projectapi.jar:\
102.50 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor-util.jar:\
102.51 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-text.jar:\
102.52 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-xml-core.jar:\
102.53 - ${netbeans.dest.dir}/ide7/modules/org-netbeans-modules-editor-lib.jar:\
102.54 - ${netbeans.dest.dir}/ide7/modules/org-apache-xml-resolver.jar:\
102.55 - ${netbeans.dest.dir}/soa1/modules/org-netbeans-modules-wsdlextensions-smtp.jar
102.56 -
102.57 -test.unit.run.cp=${test.unit.cp.extra}
103.1 --- a/wsdlextensions.smtp/nbproject/project.xml Mon Jul 14 01:11:23 2008 +0530
103.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
103.3 @@ -1,81 +0,0 @@
103.4 -<?xml version="1.0" encoding="UTF-8"?>
103.5 -<!--
103.6 - The contents of this file are subject to the terms of the Common Development
103.7 - and Distribution License (the License). You may not use this file except in
103.8 - compliance with the License.
103.9 -
103.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
103.11 - or http://www.netbeans.org/cddl.txt.
103.12 -
103.13 - When distributing Covered Code, include this CDDL Header Notice in each file
103.14 - and include the License file at http://www.netbeans.org/cddl.txt.
103.15 - If applicable, add the following below the CDDL Header, with the fields
103.16 - enclosed by brackets [] replaced by your own identifying information:
103.17 - "Portions Copyrighted [year] [name of copyright owner]"
103.18 -
103.19 - The Original Software is NetBeans. The Initial Developer of the Original
103.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
103.21 - Microsystems, Inc. All Rights Reserved.
103.22 --->
103.23 -<project xmlns="http://www.netbeans.org/ns/project/1">
103.24 - <type>org.netbeans.modules.apisupport.project</type>
103.25 - <configuration>
103.26 - <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
103.27 - <code-name-base>org.netbeans.modules.wsdlextensions.smtp</code-name-base>
103.28 - <module-dependencies>
103.29 - <dependency>
103.30 - <code-name-base>javax.mail</code-name-base>
103.31 - <build-prerequisite/>
103.32 - <compile-dependency/>
103.33 - <run-dependency>
103.34 - <specification-version>1.0</specification-version>
103.35 - </run-dependency>
103.36 - </dependency>
103.37 - <dependency>
103.38 - <code-name-base>org.netbeans.modules.xml.schema.model</code-name-base>
103.39 - <build-prerequisite/>
103.40 - <compile-dependency/>
103.41 - <run-dependency>
103.42 - <release-version>1</release-version>
103.43 - <specification-version>1.1.21</specification-version>
103.44 - </run-dependency>
103.45 - </dependency>
103.46 - <dependency>
103.47 - <code-name-base>org.netbeans.modules.xml.wsdl.model</code-name-base>
103.48 - <build-prerequisite/>
103.49 - <compile-dependency/>
103.50 - <run-dependency>
103.51 - <release-version>1</release-version>
103.52 - <specification-version>1.1.21</specification-version>
103.53 - </run-dependency>
103.54 - </dependency>
103.55 - <dependency>
103.56 - <code-name-base>org.netbeans.modules.xml.wsdl.bindingsupport.api</code-name-base>
103.57 - <build-prerequisite/>
103.58 - <compile-dependency/>
103.59 - <run-dependency>
103.60 - <specification-version>1.0</specification-version>
103.61 - </run-dependency>
103.62 - </dependency>
103.63 - <dependency>
103.64 - <code-name-base>org.netbeans.modules.xml.xam</code-name-base>
103.65 - <build-prerequisite/>
103.66 - <compile-dependency/>
103.67 - <run-dependency>
103.68 - <release-version>1</release-version>
103.69 - <specification-version>1.1.21</specification-version>
103.70 - </run-dependency>
103.71 - </dependency>
103.72 - <dependency>
103.73 - <code-name-base>org.openide.util</code-name-base>
103.74 - <build-prerequisite/>
103.75 - <compile-dependency/>
103.76 - <run-dependency>
103.77 - <specification-version>6.8.22</specification-version>
103.78 - </run-dependency>
103.79 - </dependency>
103.80 - </module-dependencies>
103.81 - <public-packages/>
103.82 - </data>
103.83 - </configuration>
103.84 -</project>
104.1 --- a/wsdlextensions.smtp/src/META-INF/services/org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider Mon Jul 14 01:11:23 2008 +0530
104.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
104.3 @@ -1,1 +0,0 @@
104.4 -org.netbeans.modules.wsdlextensions.smtp.template.SmtpTemplateProvider
104.5 \ No newline at end of file
105.1 --- a/wsdlextensions.smtp/src/META-INF/services/org.netbeans.modules.xml.wsdl.model.spi.ElementFactory Mon Jul 14 01:11:23 2008 +0530
105.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
105.3 @@ -1,5 +0,0 @@
105.4 -org.netbeans.modules.wsdlextensions.smtp.impl.SMTPElementFactoryProvider$AddressFactory
105.5 -org.netbeans.modules.wsdlextensions.smtp.impl.SMTPElementFactoryProvider$BindingFactory
105.6 -org.netbeans.modules.wsdlextensions.smtp.impl.SMTPElementFactoryProvider$OperationFactory
105.7 -org.netbeans.modules.wsdlextensions.smtp.impl.SMTPElementFactoryProvider$InputFactory
105.8 -
106.1 --- a/wsdlextensions.smtp/src/META-INF/services/org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory Mon Jul 14 01:11:23 2008 +0530
106.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
106.3 @@ -1,1 +0,0 @@
106.4 -org.netbeans.modules.wsdlextensions.smtp.validator.SmtpValidatorSchemaFactory
107.1 --- a/wsdlextensions.smtp/src/META-INF/services/org.netbeans.modules.xml.xam.spi.Validator Mon Jul 14 01:11:23 2008 +0530
107.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
107.3 @@ -1,2 +0,0 @@
107.4 -org.netbeans.modules.wsdlextensions.smtp.validator.SMTPComponentValidator
107.5 -
108.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/SMTPAddress.java Mon Jul 14 01:11:23 2008 +0530
108.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
108.3 @@ -1,39 +0,0 @@
108.4 -/*
108.5 - * The contents of this file are subject to the terms of the Common Development
108.6 - * and Distribution License (the License). You may not use this file except in
108.7 - * compliance with the License.
108.8 - *
108.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
108.10 - * or http://www.netbeans.org/cddl.txt.
108.11 - *
108.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
108.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
108.14 - * If applicable, add the following below the CDDL Header, with the fields
108.15 - * enclosed by brackets [] replaced by your own identifying information:
108.16 - * "Portions Copyrighted [year] [name of copyright owner]"
108.17 - *
108.18 - * The Original Software is NetBeans. The Initial Developer of the Original
108.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
108.20 - * Microsystems, Inc. All Rights Reserved.
108.21 - */
108.22 -
108.23 -package org.netbeans.modules.wsdlextensions.smtp;
108.24 -
108.25 -import org.netbeans.modules.wsdlextensions.smtp.validator.SMTPAddressURL;
108.26 -
108.27 -/**
108.28 - *
108.29 - * Represents the address element under the wsdl port for SMTP binding
108.30 - * @author Sainath Adiraju
108.31 -*/
108.32 -public interface SMTPAddress extends SMTPComponent {
108.33 - public static final String ATTR_LOCATION = "location";
108.34 -
108.35 - // Attribute names
108.36 - public static final String ATTR_SMTPSERVER = "smtpserver";
108.37 -
108.38 - public void setLocation(String url);
108.39 - public String getLocation();
108.40 - public void setSMTPServer(String val);
108.41 - public String getSMTPServer();
108.42 -}
109.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/SMTPBinding.java Mon Jul 14 01:11:23 2008 +0530
109.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
109.3 @@ -1,27 +0,0 @@
109.4 -/*
109.5 - * The contents of this file are subject to the terms of the Common Development
109.6 - * and Distribution License (the License). You may not use this file except in
109.7 - * compliance with the License.
109.8 - *
109.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
109.10 - * or http://www.netbeans.org/cddl.txt.
109.11 - *
109.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
109.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
109.14 - * If applicable, add the following below the CDDL Header, with the fields
109.15 - * enclosed by brackets [] replaced by your own identifying information:
109.16 - * "Portions Copyrighted [year] [name of copyright owner]"
109.17 - *
109.18 - * The Original Software is NetBeans. The Initial Developer of the Original
109.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
109.20 - * Microsystems, Inc. All Rights Reserved.
109.21 - */
109.22 -
109.23 -package org.netbeans.modules.wsdlextensions.smtp;
109.24 -
109.25 -/**
109.26 - * @author Sainath.Adiraju
109.27 - *
109.28 - */
109.29 -public interface SMTPBinding extends SMTPComponent {
109.30 -}
110.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/SMTPComponent.java Mon Jul 14 01:11:23 2008 +0530
110.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
110.3 @@ -1,40 +0,0 @@
110.4 -/*
110.5 - * The contents of this file are subject to the terms of the Common Development
110.6 - * and Distribution License (the License). You may not use this file except in
110.7 - * compliance with the License.
110.8 - *
110.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
110.10 - * or http://www.netbeans.org/cddl.txt.
110.11 - *
110.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
110.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
110.14 - * If applicable, add the following below the CDDL Header, with the fields
110.15 - * enclosed by brackets [] replaced by your own identifying information:
110.16 - * "Portions Copyrighted [year] [name of copyright owner]"
110.17 - *
110.18 - * The Original Software is NetBeans. The Initial Developer of the Original
110.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
110.20 - * Microsystems, Inc. All Rights Reserved.
110.21 - */
110.22 -package org.netbeans.modules.wsdlextensions.smtp;
110.23 -
110.24 -import org.netbeans.modules.xml.wsdl.model.ExtensibilityElement;
110.25 -import org.netbeans.modules.xml.wsdl.model.OperationParameter;
110.26 -
110.27 -/**
110.28 - * @author Sainath Adiraju
110.29 - *
110.30 - */
110.31 -public interface SMTPComponent extends ExtensibilityElement {
110.32 -
110.33 - public interface Visitor {
110.34 - void visit(SMTPAddress target);
110.35 - void visit(SMTPBinding target);
110.36 - void visit(SMTPOperation target);
110.37 - void visit(SMTPInput target);
110.38 - // void visit(SMTPInput target, OperationParameter opParam);
110.39 - }
110.40 -
110.41 - void accept(Visitor visitor);
110.42 - //void accept(Visitor visitor,OperationParameter opParam);
110.43 -}
111.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/SMTPInput.java Mon Jul 14 01:11:23 2008 +0530
111.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
111.3 @@ -1,77 +0,0 @@
111.4 -/*
111.5 - * The contents of this file are subject to the terms of the Common Development
111.6 - * and Distribution License (the License). You may not use this file except in
111.7 - * compliance with the License.
111.8 - *
111.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
111.10 - * or http://www.netbeans.org/cddl.txt.
111.11 - *
111.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
111.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
111.14 - * If applicable, add the following below the CDDL Header, with the fields
111.15 - * enclosed by brackets [] replaced by your own identifying information:
111.16 - * "Portions Copyrighted [year] [name of copyright owner]"
111.17 - *
111.18 - * The Original Software is NetBeans. The Initial Developer of the Original
111.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
111.20 - * Microsystems, Inc. All Rights Reserved.
111.21 - */
111.22 -
111.23 -package org.netbeans.modules.wsdlextensions.smtp;
111.24 -
111.25 -/**
111.26 -* @author Sainath Adiraju
111.27 -*/
111.28 - public interface SMTPInput extends SMTPComponent{
111.29 -
111.30 - public static final String SMTP_MESSAGE = "messageName";
111.31 - public static final String SMTP_SUBJECT = "subjectName";
111.32 - public static final String SMTP_FROM = "from";
111.33 - public static final String SMTP_CHARSET = "charset";
111.34 - public static final String SMTP_TO = "to";
111.35 - public static final String SMTP_CC = "cc";
111.36 - public static final String SMTP_BCC = "bcc";
111.37 - public static final String SMTP_USE = "use";
111.38 - public static final String SMTP_ENCSTYLE = "encodingStyle";
111.39 -
111.40 - public String getCharSet();
111.41 -
111.42 - public void setCharSet();
111.43 -
111.44 - public String getFrom();
111.45 -
111.46 - public void setFrom();
111.47 -
111.48 - public String getMessageName();
111.49 -
111.50 - public void setMessageName();
111.51 -
111.52 - public String getSubjectName();
111.53 -
111.54 - public void setSubjectName();
111.55 -
111.56 - public void setTo();
111.57 -
111.58 - public String getTo();
111.59 -
111.60 - public void setCc();
111.61 -
111.62 - public String getCc();
111.63 -
111.64 - public void setBcc();
111.65 -
111.66 - public String getBcc();
111.67 -
111.68 - public String getUse();
111.69 -
111.70 - public void setUse();
111.71 -
111.72 - public String getEncodingStyle();
111.73 -
111.74 - public void setEncodingStyle();
111.75 -
111.76 -
111.77 -
111.78 -
111.79 -}
111.80 -
112.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/SMTPOperation.java Mon Jul 14 01:11:23 2008 +0530
112.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
112.3 @@ -1,27 +0,0 @@
112.4 -/*
112.5 - * The contents of this file are subject to the terms of the Common Development
112.6 - * and Distribution License (the License). You may not use this file except in
112.7 - * compliance with the License.
112.8 - *
112.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
112.10 - * or http://www.netbeans.org/cddl.txt.
112.11 - *
112.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
112.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
112.14 - * If applicable, add the following below the CDDL Header, with the fields
112.15 - * enclosed by brackets [] replaced by your own identifying information:
112.16 - * "Portions Copyrighted [year] [name of copyright owner]"
112.17 - *
112.18 - * The Original Software is NetBeans. The Initial Developer of the Original
112.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
112.20 - * Microsystems, Inc. All Rights Reserved.
112.21 - */
112.22 -
112.23 -package org.netbeans.modules.wsdlextensions.smtp;
112.24 -
112.25 -/**
112.26 - * @author Sainath Adiraju
112.27 - *
112.28 - */
112.29 -public interface SMTPOperation extends SMTPComponent {
112.30 -}
113.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/SMTPQName.java Mon Jul 14 01:11:23 2008 +0530
113.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
113.3 @@ -1,64 +0,0 @@
113.4 -/*
113.5 - * The contents of this file are subject to the terms of the Common Development
113.6 - * and Distribution License (the License). You may not use this file except in
113.7 - * compliance with the License.
113.8 - *
113.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
113.10 - * or http://www.netbeans.org/cddl.txt.
113.11 - *
113.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
113.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
113.14 - * If applicable, add the following below the CDDL Header, with the fields
113.15 - * enclosed by brackets [] replaced by your own identifying information:
113.16 - * "Portions Copyrighted [year] [name of copyright owner]"
113.17 - *
113.18 - * The Original Software is NetBeans. The Initial Developer of the Original
113.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
113.20 - * Microsystems, Inc. All Rights Reserved.
113.21 - */
113.22 -
113.23 -package org.netbeans.modules.wsdlextensions.smtp;
113.24 -
113.25 -import java.util.HashSet;
113.26 -import java.util.Set;
113.27 -import javax.xml.namespace.QName;
113.28 -
113.29 -/**
113.30 - * @author Sainath Adiraju
113.31 - *
113.32 - */
113.33 -public enum SMTPQName {
113.34 - ADDRESS(createSMTPQName("address")),
113.35 - BINDING(createSMTPQName("binding")),
113.36 - OPERATION(createSMTPQName("operation")),
113.37 - INPUT(createSMTPQName("input"));
113.38 -
113.39 -
113.40 - public static final String SMTP_NS_URI = "http://schemas.sun.com/jbi/wsdl-extensions/smtp/";
113.41 - public static final String SMTP_NS_PREFIX = "smtp";
113.42 -
113.43 - public static QName createSMTPQName(String localName){
113.44 - return new QName(SMTP_NS_URI, localName, SMTP_NS_PREFIX);
113.45 - }
113.46 -
113.47 - SMTPQName(QName name) {
113.48 - qName = name;
113.49 - }
113.50 -
113.51 - public QName getQName(){
113.52 - return qName;
113.53 - }
113.54 -
113.55 - private static Set<QName> qnames = null;
113.56 - public static Set<QName> getQNames() {
113.57 - if (qnames == null) {
113.58 - qnames = new HashSet<QName>();
113.59 - for (SMTPQName wq : values()) {
113.60 - qnames.add(wq.getQName());
113.61 - }
113.62 - }
113.63 - return qnames;
113.64 - }
113.65 -
113.66 - private final QName qName;
113.67 -}
114.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/impl/SMTPAddressImpl.java Mon Jul 14 01:11:23 2008 +0530
114.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
114.3 @@ -1,63 +0,0 @@
114.4 -/*
114.5 - * The contents of this file are subject to the terms of the Common Development
114.6 - * and Distribution License (the License). You may not use this file except in
114.7 - * compliance with the License.
114.8 - *
114.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
114.10 - * or http://www.netbeans.org/cddl.txt.
114.11 - *
114.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
114.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
114.14 - * If applicable, add the following below the CDDL Header, with the fields
114.15 - * enclosed by brackets [] replaced by your own identifying information:
114.16 - * "Portions Copyrighted [year] [name of copyright owner]"
114.17 - *
114.18 - * The Original Software is NetBeans. The Initial Developer of the Original
114.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
114.20 - * Microsystems, Inc. All Rights Reserved.
114.21 - */
114.22 -
114.23 -package org.netbeans.modules.wsdlextensions.smtp.impl;
114.24 -
114.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
114.26 -import org.netbeans.modules.wsdlextensions.smtp.SMTPAddress;
114.27 -import org.netbeans.modules.wsdlextensions.smtp.SMTPComponent;
114.28 -import org.netbeans.modules.wsdlextensions.smtp.SMTPQName;
114.29 -import org.netbeans.modules.wsdlextensions.smtp.validator.SMTPAddressURL;
114.30 -import org.w3c.dom.Element;
114.31 -
114.32 -/**
114.33 - *
114.34 - * @author Sainath Adiraju
114.35 - */
114.36 -
114.37 -public class SMTPAddressImpl extends SMTPComponentImpl implements SMTPAddress {
114.38 - public SMTPAddressImpl(WSDLModel model, Element e) {
114.39 - super(model, e);
114.40 - }
114.41 -
114.42 - public SMTPAddressImpl(WSDLModel model){
114.43 - this(model, createPrefixedElement(SMTPQName.ADDRESS.getQName(), model));
114.44 - }
114.45 -
114.46 - public void accept(SMTPComponent.Visitor visitor) {
114.47 - visitor.visit(this);
114.48 - }
114.49 -
114.50 - public void setLocation(String smtpURL) {
114.51 - setAttribute(SMTPAddress.ATTR_LOCATION, SMTPAttribute.SMTP_RECIEVER_LOCATIONURL, smtpURL);
114.52 - }
114.53 -
114.54 - public String getLocation(){
114.55 - return getAttribute(SMTPAddress.ATTR_LOCATION);
114.56 - }
114.57 -
114.58 -
114.59 - public String getSMTPServer() {
114.60 - return getAttribute(SMTPAddress.ATTR_SMTPSERVER);
114.61 - }
114.62 -
114.63 - public void setSMTPServer(String val) {
114.64 - setAttribute(SMTPAddress.ATTR_SMTPSERVER, SMTPAttribute.SMTP_SERVER_NAME, val);
114.65 - }
114.66 -}
115.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/impl/SMTPAttribute.java Mon Jul 14 01:11:23 2008 +0530
115.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
115.3 @@ -1,76 +0,0 @@
115.4 -/*
115.5 - * The contents of this file are subject to the terms of the Common Development
115.6 - * and Distribution License (the License). You may not use this file except in
115.7 - * compliance with the License.
115.8 - *
115.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
115.10 - * or http://www.netbeans.org/cddl.txt.
115.11 - *
115.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
115.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
115.14 - * If applicable, add the following below the CDDL Header, with the fields
115.15 - * enclosed by brackets [] replaced by your own identifying information:
115.16 - * "Portions Copyrighted [year] [name of copyright owner]"
115.17 - *
115.18 - * The Original Software is NetBeans. The Initial Developer of the Original
115.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
115.20 - * Microsystems, Inc. All Rights Reserved.
115.21 - */
115.22 -
115.23 -package org.netbeans.modules.wsdlextensions.smtp.impl;
115.24 -
115.25 -import java.util.Collection;
115.26 -import org.netbeans.modules.xml.xam.dom.Attribute;
115.27 -
115.28 -/**
115.29 - * @author Sainath Adiraju
115.30 - *
115.31 - */
115.32 -public enum SMTPAttribute implements Attribute {
115.33 -
115.34 - SMTP_MESSAGE_NAME("message"),
115.35 - SMTP_SUBJECT_NAME("subject"),
115.36 - SMTP_FROM_NAME("from"),
115.37 - SMTP_CHARSET_NAME("charset"),
115.38 - SMTP_TO_NAME("to"),
115.39 - SMTP_CC_NAME("cc"),
115.40 - SMTP_BCC_NAME("bcc"),
115.41 - SMTP_USE_NAME("use"),
115.42 - SMTP_ENCODING_STYLE("encodingStyle"),
115.43 - SMTP_RECIEVER_LOCATIONURL("location"),
115.44 - SMTP_SERVER_NAME("smtpserver");
115.45 -
115.46 -
115.47 -
115.48 - private String name;
115.49 - private Class type;
115.50 - private Class subtype;
115.51 -
115.52 - SMTPAttribute(String name) {
115.53 - this(name, String.class);
115.54 - }
115.55 -
115.56 - SMTPAttribute(String name, Class type) {
115.57 - this(name, type, null);
115.58 - }
115.59 -
115.60 - SMTPAttribute(String name, Class type, Class subtype) {
115.61 - this.name = name;
115.62 - this.type = type;
115.63 - this.subtype = subtype;
115.64 - }
115.65 -
115.66 - public String toString() {
115.67 - return name;
115.68 - }
115.69 -
115.70 - public Class getType() {
115.71 - return type;
115.72 - }
115.73 -
115.74 - public String getName() {
115.75 - return name;
115.76 - }
115.77 -
115.78 - public Class getMemberType() { return subtype; }
115.79 -}
116.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/impl/SMTPBindingImpl.java Mon Jul 14 01:11:23 2008 +0530
116.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
116.3 @@ -1,45 +0,0 @@
116.4 -/*
116.5 - * The contents of this file are subject to the terms of the Common Development
116.6 - * and Distribution License (the License). You may not use this file except in
116.7 - * compliance with the License.
116.8 - *
116.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
116.10 - * or http://www.netbeans.org/cddl.txt.
116.11 - *
116.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
116.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
116.14 - * If applicable, add the following below the CDDL Header, with the fields
116.15 - * enclosed by brackets [] replaced by your own identifying information:
116.16 - * "Portions Copyrighted [year] [name of copyright owner]"
116.17 - *
116.18 - * The Original Software is NetBeans. The Initial Developer of the Original
116.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
116.20 - * Microsystems, Inc. All Rights Reserved.
116.21 - */
116.22 -
116.23 -
116.24 -package org.netbeans.modules.wsdlextensions.smtp.impl;
116.25 -
116.26 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
116.27 -import org.netbeans.modules.wsdlextensions.smtp.SMTPBinding;
116.28 -import org.netbeans.modules.wsdlextensions.smtp.SMTPComponent;
116.29 -import org.netbeans.modules.wsdlextensions.smtp.SMTPQName;
116.30 -import org.w3c.dom.Element;
116.31 -
116.32 -/**
116.33 - * @author Sainath Adiraju
116.34 - *
116.35 - */
116.36 -public class SMTPBindingImpl extends SMTPComponentImpl implements SMTPBinding {
116.37 - public SMTPBindingImpl(WSDLModel model, Element e) {
116.38 - super(model, e);
116.39 - }
116.40 -
116.41 - public SMTPBindingImpl(WSDLModel model){
116.42 - this(model, createPrefixedElement(SMTPQName.BINDING.getQName(), model));
116.43 - }
116.44 -
116.45 - public void accept(SMTPComponent.Visitor visitor) {
116.46 - visitor.visit(this);
116.47 - }
116.48 -}
117.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/impl/SMTPComponentImpl.java Mon Jul 14 01:11:23 2008 +0530
117.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
117.3 @@ -1,39 +0,0 @@
117.4 -/*
117.5 - * The contents of this file are subject to the terms of the Common Development
117.6 - * and Distribution License (the License). You may not use this file except in
117.7 - * compliance with the License.
117.8 - *
117.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
117.10 - * or http://www.netbeans.org/cddl.txt.
117.11 - *
117.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
117.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
117.14 - * If applicable, add the following below the CDDL Header, with the fields
117.15 - * enclosed by brackets [] replaced by your own identifying information:
117.16 - * "Portions Copyrighted [year] [name of copyright owner]"
117.17 - *
117.18 - * The Original Software is NetBeans. The Initial Developer of the Original
117.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
117.20 - * Microsystems, Inc. All Rights Reserved.
117.21 - */
117.22 -
117.23 -package org.netbeans.modules.wsdlextensions.smtp.impl;
117.24 -
117.25 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
117.26 -import org.netbeans.modules.wsdlextensions.smtp.SMTPComponent;
117.27 -import org.netbeans.modules.wsdlextensions.smtp.SMTPQName;
117.28 -import org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement;
117.29 -import org.w3c.dom.Element;
117.30 -
117.31 -/**
117.32 -* @author Sainath Adiraju
117.33 -*/
117.34 -public abstract class SMTPComponentImpl extends GenericExtensibilityElement implements SMTPComponent {
117.35 - public SMTPComponentImpl(WSDLModel model, Element e) {
117.36 - super(model, e);
117.37 - }
117.38 -
117.39 - protected String getNamespaceURI() {
117.40 - return SMTPQName.SMTP_NS_URI;
117.41 - }
117.42 -}
118.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/impl/SMTPElementFactoryProvider.java Mon Jul 14 01:11:23 2008 +0530
118.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
118.3 @@ -1,75 +0,0 @@
118.4 -/*
118.5 - * The contents of this file are subject to the terms of the Common Development
118.6 - * and Distribution License (the License). You may not use this file except in
118.7 - * compliance with the License.
118.8 - *
118.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
118.10 - * or http://www.netbeans.org/cddl.txt.
118.11 - *
118.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
118.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
118.14 - * If applicable, add the following below the CDDL Header, with the fields
118.15 - * enclosed by brackets [] replaced by your own identifying information:
118.16 - * "Portions Copyrighted [year] [name of copyright owner]"
118.17 - *
118.18 - * The Original Software is NetBeans. The Initial Developer of the Original
118.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
118.20 - * Microsystems, Inc. All Rights Reserved.
118.21 - */
118.22 -
118.23 -package org.netbeans.modules.wsdlextensions.smtp.impl;
118.24 -
118.25 -import java.util.ArrayList;
118.26 -import java.util.Collection;
118.27 -import java.util.Collections;
118.28 -import java.util.Set;
118.29 -import javax.xml.namespace.QName;
118.30 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
118.31 -import org.netbeans.modules.wsdlextensions.smtp.SMTPQName;
118.32 -import org.netbeans.modules.xml.wsdl.model.spi.ElementFactory;
118.33 -import org.w3c.dom.Element;
118.34 -
118.35 -/**
118.36 - ** @author Sainath Adiraju
118.37 -*/
118.38 -public class SMTPElementFactoryProvider {
118.39 -
118.40 - public static class BindingFactory extends ElementFactory {
118.41 - public Set<QName> getElementQNames() {
118.42 - return Collections.singleton(SMTPQName.BINDING.getQName());
118.43 - }
118.44 - public WSDLComponent create(WSDLComponent context, Element element) {
118.45 - return new SMTPBindingImpl(context.getModel(), element);
118.46 - }
118.47 - }
118.48 -
118.49 - public static class AddressFactory extends ElementFactory {
118.50 - public Set<QName> getElementQNames() {
118.51 - return Collections.singleton(SMTPQName.ADDRESS.getQName());
118.52 - }
118.53 - public WSDLComponent create(WSDLComponent context, Element element) {
118.54 - return new SMTPAddressImpl(context.getModel(), element);
118.55 - }
118.56 - }
118.57 -
118.58 - public static class OperationFactory extends ElementFactory{
118.59 - public Set<QName> getElementQNames() {
118.60 - return Collections.singleton(SMTPQName.OPERATION.getQName());
118.61 - }
118.62 - public WSDLComponent create(WSDLComponent context, Element element) {
118.63 - return new SMTPOperationImpl(context.getModel(), element);
118.64 - }
118.65 - }
118.66 -
118.67 - public static class InputFactory extends ElementFactory{
118.68 - public Set<QName> getElementQNames() {
118.69 - return Collections.singleton(SMTPQName.INPUT.getQName());
118.70 - }
118.71 - public WSDLComponent create(WSDLComponent context, Element element) {
118.72 - return new SMTPInputImpl(context.getModel(), element);
118.73 - }
118.74 - }
118.75 -
118.76 -
118.77 - }
118.78 -
119.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/impl/SMTPInputImpl.java Mon Jul 14 01:11:23 2008 +0530
119.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
119.3 @@ -1,120 +0,0 @@
119.4 -/*
119.5 - * The contents of this file are subject to the terms of the Common Development
119.6 - * and Distribution License (the License). You may not use this file except in
119.7 - * compliance with the License.
119.8 - *
119.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
119.10 - * or http://www.netbeans.org/cddl.txt.
119.11 - *
119.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
119.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
119.14 - * If applicable, add the following below the CDDL Header, with the fields
119.15 - * enclosed by brackets [] replaced by your own identifying information:
119.16 - * "Portions Copyrighted [year] [name of copyright owner]"
119.17 - *
119.18 - * The Original Software is NetBeans. The Initial Developer of the Original
119.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
119.20 - * Microsystems, Inc. All Rights Reserved.
119.21 - */
119.22 -
119.23 -package org.netbeans.modules.wsdlextensions.smtp.impl;
119.24 -
119.25 -import java.util.Collection;
119.26 -import org.netbeans.modules.xml.wsdl.model.Binding;
119.27 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
119.28 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
119.29 -import org.netbeans.modules.wsdlextensions.smtp.SMTPInput;
119.30 -import org.netbeans.modules.wsdlextensions.smtp.SMTPComponent;
119.31 -import org.netbeans.modules.wsdlextensions.smtp.SMTPQName;
119.32 -import org.netbeans.modules.xml.wsdl.model.OperationParameter;
119.33 -import org.w3c.dom.Element;
119.34 -
119.35 -/**
119.36 - * @author Sainath Adiraju
119.37 - */
119.38 -public class SMTPInputImpl extends SMTPComponentImpl implements SMTPInput {
119.39 -
119.40 - public SMTPInputImpl(WSDLModel model, Element e) {
119.41 - super(model, e);
119.42 - }
119.43 -
119.44 - public SMTPInputImpl(WSDLModel model){
119.45 - this(model, createPrefixedElement(SMTPQName.INPUT.getQName(), model));
119.46 - }
119.47 -
119.48 - public void accept(SMTPComponent.Visitor visitor) {
119.49 - visitor.visit(this);
119.50 - }
119.51 - public String getMessageName() {
119.52 - return getAttribute(SMTPAttribute.SMTP_MESSAGE_NAME);
119.53 - }
119.54 -
119.55 - public void setMessageName() {
119.56 - setAttribute(SMTPInput.SMTP_MESSAGE, SMTPAttribute.SMTP_MESSAGE_NAME, "message");
119.57 - }
119.58 -
119.59 - public String getSubjectName() {
119.60 - return getAttribute(SMTPAttribute.SMTP_SUBJECT_NAME);
119.61 - }
119.62 -
119.63 - public void setSubjectName() {
119.64 - setAttribute(SMTPInput.SMTP_SUBJECT, SMTPAttribute.SMTP_SUBJECT_NAME, "subject");
119.65 - }
119.66 -
119.67 - public String getFrom() {
119.68 - return getAttribute(SMTPAttribute.SMTP_FROM_NAME);
119.69 - }
119.70 -
119.71 - public void setFrom() {
119.72 - setAttribute(SMTPInput.SMTP_FROM, SMTPAttribute.SMTP_FROM_NAME, "from");
119.73 - }
119.74 -
119.75 - public String getCharSet() {
119.76 - return getAttribute(SMTPAttribute.SMTP_CHARSET_NAME);
119.77 - }
119.78 -
119.79 - public void setCharSet() {
119.80 - setAttribute(SMTPInput.SMTP_CHARSET, SMTPAttribute.SMTP_CHARSET_NAME, "charset");
119.81 - }
119.82 -
119.83 - public void setTo(){
119.84 - setAttribute(SMTPInput.SMTP_TO, SMTPAttribute.SMTP_TO_NAME, "to");
119.85 - }
119.86 -
119.87 - public String getTo(){
119.88 - return getAttribute(SMTPAttribute.SMTP_TO_NAME);
119.89 - }
119.90 -
119.91 - public void setCc(){
119.92 - setAttribute(SMTPInput.SMTP_CC, SMTPAttribute.SMTP_CC_NAME, "cc");
119.93 - }
119.94 -
119.95 - public String getCc(){
119.96 - return getAttribute(SMTPAttribute.SMTP_CC_NAME);
119.97 - }
119.98 -
119.99 - public void setBcc(){
119.100 - setAttribute(SMTPInput.SMTP_BCC, SMTPAttribute.SMTP_BCC_NAME, "bcc");
119.101 - }
119.102 -
119.103 - public String getBcc(){
119.104 - return getAttribute(SMTPAttribute.SMTP_BCC_NAME);
119.105 - }
119.106 -
119.107 - public String getUse(){
119.108 - return getAttribute(SMTPAttribute.SMTP_USE_NAME);
119.109 - }
119.110 -
119.111 - public void setUse(){
119.112 - setAttribute(SMTPInput.SMTP_USE, SMTPAttribute.SMTP_USE_NAME, "use");
119.113 - }
119.114 -
119.115 - public String getEncodingStyle(){
119.116 - return getAttribute(SMTPAttribute.SMTP_ENCODING_STYLE);
119.117 - }
119.118 -
119.119 - public void setEncodingStyle(){
119.120 - setAttribute(SMTPInput.SMTP_ENCSTYLE, SMTPAttribute.SMTP_USE_NAME, "encodingStyle");
119.121 - }
119.122 -
119.123 -}
120.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/impl/SMTPOperationImpl.java Mon Jul 14 01:11:23 2008 +0530
120.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
120.3 @@ -1,50 +0,0 @@
120.4 -/*
120.5 - * The contents of this file are subject to the terms of the Common Development
120.6 - * and Distribution License (the License). You may not use this file except in
120.7 - * compliance with the License.
120.8 - *
120.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
120.10 - * or http://www.netbeans.org/cddl.txt.
120.11 - *
120.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
120.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
120.14 - * If applicable, add the following below the CDDL Header, with the fields
120.15 - * enclosed by brackets [] replaced by your own identifying information:
120.16 - * "Portions Copyrighted [year] [name of copyright owner]"
120.17 - *
120.18 - * The Original Software is NetBeans. The Initial Developer of the Original
120.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
120.20 - * Microsystems, Inc. All Rights Reserved.
120.21 - */
120.22 -
120.23 -package org.netbeans.modules.wsdlextensions.smtp.impl;
120.24 -
120.25 -import java.util.Collection;
120.26 -import org.netbeans.modules.xml.wsdl.model.Binding;
120.27 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
120.28 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
120.29 -import org.netbeans.modules.wsdlextensions.smtp.SMTPBinding;
120.30 -import org.netbeans.modules.wsdlextensions.smtp.SMTPOperation;
120.31 -import org.netbeans.modules.wsdlextensions.smtp.SMTPComponent;
120.32 -import org.netbeans.modules.wsdlextensions.smtp.SMTPQName;
120.33 -import org.w3c.dom.Element;
120.34 -
120.35 -/**
120.36 - * @author Sainath Adiraju
120.37 - *
120.38 - */
120.39 -public class SMTPOperationImpl extends SMTPComponentImpl implements SMTPOperation {
120.40 -
120.41 - public SMTPOperationImpl(WSDLModel model, Element e) {
120.42 - super(model, e);
120.43 - }
120.44 -
120.45 - public SMTPOperationImpl(WSDLModel model){
120.46 - this(model, createPrefixedElement(SMTPQName.OPERATION.getQName(), model));
120.47 - }
120.48 -
120.49 - public void accept(SMTPComponent.Visitor visitor) {
120.50 - visitor.visit(this);
120.51 - }
120.52 -
120.53 -}
121.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/Bundle.properties Mon Jul 14 01:11:23 2008 +0530
121.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
121.3 @@ -1,57 +0,0 @@
121.4 -
121.5 -#
121.6 -# The contents of this file are subject to the terms of the Common Development
121.7 -# and Distribution License (the License). You may not use this file except in
121.8 -# compliance with the License.
121.9 -#
121.10 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
121.11 -# or http://www.netbeans.org/cddl.txt.
121.12 -#
121.13 -# When distributing Covered Code, include this CDDL Header Notice in each file
121.14 -# and include the License file at http://www.netbeans.org/cddl.txt.
121.15 -# If applicable, add the following below the CDDL Header, with the fields
121.16 -# enclosed by brackets [] replaced by your own identifying information:
121.17 -# "Portions Copyrighted [year] [name of copyright owner]"
121.18 -#
121.19 -# The Original Software is NetBeans. The Initial Developer of the Original
121.20 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
121.21 -# Microsystems, Inc. All Rights Reserved.
121.22 -#
121.23 -
121.24 -OpenIDE-Module-Name=SMTP WSDL Extension
121.25 -OpenIDE-Module-Short-Description=SMTP Extension for WSDL Editor.
121.26 -OpenIDE-Module-Long-Description=This module provides SMTP schema and plugs into WSDL Editor.
121.27 -OpenIDE-Module-Display-Category=CAPS
121.28 -WSDLEditor/Binding/SMTPBinding= SMTP Binding
121.29 -WSDLEditor/BindingOperation/SMTPBindingOperation= SMTP Operation
121.30 -WSDLEditor/BindingOperationInput/SMTPBindingOperationInput= SMTP Operation Input
121.31 -WSDLEditor/BindingOperationOutput/SMTPBindingOperationOutput= SMTP Operation Output
121.32 -WSDLEditor/ServicePort/SMTPServicePort= SMTP Address
121.33 -DESC_Element_binding="binding" indicates a smtp protocol based binding.
121.34 -DESC_Element_proxy="operation" indicates a smtp protocol based operation.
121.35 -DESC_Attribute_host=The host for sending SMTP messages.
121.36 -DESC_Attribute_port=The port used for sending SMTP messages.
121.37 -DESC_Attribute_userName=The username for sending SMTP messages.
121.38 -DESC_Attribute_password=The password for sending SMTP messages.
121.39 -DESC_Element_operation="operation" indicates a smtp protocol based operation.
121.40 -DESC_Element_input="input" indicates a smtp protocol based operation input.
121.41 -DESC_Element_attachment="attachment" is an attachment to an SMTP message
121.42 -DESC_Attribute_contentType=Refers to the message part containing the content type of the attachment
121.43 -DESC_Attribute_name=Refers to the message part containing the name of the attachment
121.44 -DESC_Attribute_content=Refers to the message part containing the contents of the attachment
121.45 -DESC_Attribute_message=Refers to the message part containing the SMTP message to be sent.
121.46 -DESC_Attribute_subject=Refers to the message part containing the subject of the SMTP message.
121.47 -DESC_Attribute_from=Refers to the message part containing the sender of the SMTP message. This is generally an email address
121.48 -DESC_Attribute_charset=Refers to the message part containing the character set of the SMTP message.
121.49 -DESC_Attribute_use=Refers to the use type. Whether encoder or literal.
121.50 -DESC_Attribute_encodingStyle=Specifies the encoding type associated with the SMTP Message. This also defines the encoder type responsible to process the encoded data.
121.51 -DESC_Attribute_to=Specifies to whom the mail is addressed .
121.52 -DESC_Attribute_cc=Specifies to whom the mail is addressed in the cc field .
121.53 -DESC_Attribute_bcc=Specifies to whom the mail is addressed in bcc.
121.54 -DESC_Element_output="output" indicates a smtp protocol based operation output.
121.55 -DESC_Element_address="address" indicates a smtp protocol based service address.
121.56 -DESC_Attribute_location=Specifies the location of the receiver using the standard "mailto" URL Scheme (RFC 2368)
121.57 -DESC_Attribute_smtpserver=Specifies the SMTP server to use to route SMTP messages
121.58 -DESC_Attribute_smtpport=Specifies the SMTP server's port to route SMTP messages
121.59 -DESC_Attribute_username=Specifies the username for the smtpserver to send mail
121.60 -DESC_Attribute_useSSL=Specifies whether to use ssl for connection
122.1 Binary file wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/End_16.png has changed
123.1 Binary file wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/PageFlow.png has changed
124.1 Binary file wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/Start_16.png has changed
125.1 Binary file wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/choose.png has changed
126.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/layer.xml Mon Jul 14 01:11:23 2008 +0530
126.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
126.3 @@ -1,75 +0,0 @@
126.4 -<?xml version="1.0" encoding="UTF-8"?>
126.5 -
126.6 -<!--
126.7 - The contents of this file are subject to the terms of the Common Development
126.8 - and Distribution License (the License). You may not use this file except in
126.9 - compliance with the License.
126.10 -
126.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
126.12 - or http://www.netbeans.org/cddl.txt.
126.13 -
126.14 - When distributing Covered Code, include this CDDL Header Notice in each file
126.15 - and include the License file at http://www.netbeans.org/cddl.txt.
126.16 - If applicable, add the following below the CDDL Header, with the fields
126.17 - enclosed by brackets [] replaced by your own identifying information:
126.18 - "Portions Copyrighted [year] [name of copyright owner]"
126.19 -
126.20 - The Original Software is NetBeans. The Initial Developer of the Original
126.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
126.22 - Microsystems, Inc. All Rights Reserved.
126.23 --->
126.24 -
126.25 -<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
126.26 -<filesystem>
126.27 - <folder name="WSDLEditor">
126.28 - <file name="smtp-ext.xsd" url="smtp-ext.xsd">
126.29 - <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/smtp/" />
126.30 - <attr name="prefix" stringvalue="smtp" />
126.31 - </file>
126.32 -
126.33 - <folder name="Binding">
126.34 - <file name="SMTPBinding" >
126.35 - <attr name="xsdFileName" stringvalue="smtp-ext" />
126.36 - <attr name="element" stringvalue="binding"/>
126.37 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.smtp.resources.Bundle"/>
126.38 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/smtp/resources/Start_16.png"/>
126.39 - </file>
126.40 - </folder>
126.41 - <folder name="BindingOperation">
126.42 - <file name="SMTPBindingOperation" >
126.43 - <attr name="xsdFileName" stringvalue="smtp-ext" />
126.44 - <attr name="element" stringvalue="operation"/>
126.45 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.smtp.resources.Bundle"/>
126.46 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/smtp/resources/End_16.png"/>
126.47 - </file>
126.48 - </folder>
126.49 - <folder name="BindingOperationInput">
126.50 - <file name="SMTPBindingOperationInput">
126.51 - <attr name="xsdFileName" stringvalue="smtp-ext" />
126.52 - <attr name="element" stringvalue="input"/>
126.53 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.smtp.resources.Bundle"/>
126.54 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/smtp/resources/PageFlow.png"/>
126.55 - </file>
126.56 - </folder>
126.57 - <folder name="ServicePort">
126.58 - <file name="SMTPServicePort">
126.59 - <attr name="xsdFileName" stringvalue="smtp-ext" />
126.60 - <attr name="element" stringvalue="address"/>
126.61 - <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.wsdlextensions.smtp.resources.Bundle"/>
126.62 - <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/wsdlextensions/smtp/resources/mapping16.png"/>
126.63 - </file>
126.64 - </folder>
126.65 - </folder>
126.66 - <folder name="SeeBeyondJbiComponents">
126.67 - <!-- JBI Component -->
126.68 - <folder name="sun-smtp-binding">
126.69 - <attr name="id" stringvalue="sun-smtp-binding"/>
126.70 - <attr name="description" stringvalue="SMTP Binding"/>
126.71 - <attr name="type" stringvalue="Binding"/>
126.72 - <file name="smtp.binding-1.0">
126.73 - <attr name="namespace" stringvalue="http://schemas.sun.com/jbi/wsdl-extensions/smtp/"/>
126.74 - </file>
126.75 - </folder>
126.76 - </folder>
126.77 -</filesystem>
126.78 -
127.1 Binary file wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/map.gif has changed
128.1 Binary file wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/mapping16.png has changed
129.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/smtp-ext.xsd Mon Jul 14 01:11:23 2008 +0530
129.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
129.3 @@ -1,281 +0,0 @@
129.4 -<?xml version="1.0" encoding="UTF-8"?>
129.5 -<!--
129.6 - The contents of this file are subject to the terms of the Common Development
129.7 - and Distribution License (the License). You may not use this file except in
129.8 - compliance with the License.
129.9 -
129.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
129.11 - or http://www.netbeans.org/cddl.txt.
129.12 -
129.13 - When distributing Covered Code, include this CDDL Header Notice in each file
129.14 - and include the License file at http://www.netbeans.org/cddl.txt.
129.15 - If applicable, add the following below the CDDL Header, with the fields
129.16 - enclosed by brackets [] replaced by your own identifying information:
129.17 - "Portions Copyrighted [year] [name of copyright owner]"
129.18 -
129.19 - The Original Software is NetBeans. The Initial Developer of the Original
129.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
129.21 - Microsystems, Inc. All Rights Reserved.
129.22 --->
129.23 -
129.24 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:smtp="http://schemas.sun.com/jbi/wsdl-extensions/smtp/" targetNamespace="http://schemas.sun.com/jbi/wsdl-extensions/smtp/">
129.25 - <xs:import namespace="http://schemas.xmlsoap.org/wsdl/" schemaLocation="wsdl.xsd"/>
129.26 -
129.27 - <!-- Extensibility Element for the WSDL Binding -->
129.28 - <xs:element name="binding" type="smtp:tBinding">
129.29 - <xs:annotation>
129.30 - <xs:documentation>DESC_Element_binding</xs:documentation>
129.31 - </xs:annotation>
129.32 - </xs:element>
129.33 - <xs:complexType name="tBinding">
129.34 - <xs:complexContent>
129.35 - <xs:extension base="wsdl:tExtensibilityElement">
129.36 - <xs:sequence>
129.37 - <xs:element ref="smtp:proxy" minOccurs="0" />
129.38 - </xs:sequence>
129.39 - </xs:extension>
129.40 - </xs:complexContent>
129.41 - </xs:complexType>
129.42 -
129.43 - <xs:element name="proxy" type="smtp:tProxy">
129.44 - <xs:annotation>
129.45 - <xs:documentation>DESC_Element_proxy</xs:documentation>
129.46 - </xs:annotation>
129.47 - </xs:element>
129.48 - <xs:complexType name="tProxy">
129.49 - <xs:complexContent>
129.50 - <xs:extension base="wsdl:tExtensibilityElement">
129.51 - <xs:attribute name="host" type="xs:string" use="required">
129.52 - <xs:annotation>
129.53 - <xs:documentation>DESC_Attribute_host</xs:documentation>
129.54 - </xs:annotation>
129.55 - </xs:attribute>
129.56 - <xs:attribute name="port" type="xs:int" use="optional">
129.57 - <xs:annotation>
129.58 - <xs:documentation>DESC_Attribute_port</xs:documentation>
129.59 - </xs:annotation>
129.60 - </xs:attribute>
129.61 - <xs:attribute name="userName" type="xs:string" use="required">
129.62 - <xs:annotation>
129.63 - <xs:documentation>DESC_Attribute_userName</xs:documentation>
129.64 - </xs:annotation>
129.65 - </xs:attribute>
129.66 - <xs:attribute name="password" type="xs:string" use="required">
129.67 - <xs:annotation>
129.68 - <xs:documentation>DESC_Attribute_password</xs:documentation>
129.69 - </xs:annotation>
129.70 - </xs:attribute>
129.71 - </xs:extension>
129.72 - </xs:complexContent>
129.73 - </xs:complexType>
129.74 -
129.75 -
129.76 -
129.77 - <!-- Extensibility Element for the WSDL Operation -->
129.78 - <xs:element name="operation" type="smtp:tOperation">
129.79 - <xs:annotation>
129.80 - <xs:documentation>DESC_Element_operation</xs:documentation>
129.81 - </xs:annotation>
129.82 - </xs:element>
129.83 - <xs:complexType name="tOperation">
129.84 - <xs:complexContent>
129.85 - <xs:extension base="wsdl:tExtensibilityElement">
129.86 - </xs:extension>
129.87 - </xs:complexContent>
129.88 - </xs:complexType>
129.89 -
129.90 - <!-- Extensibility Element for the WSDL Operation Input -->
129.91 - <xs:element name="input" type="smtp:tInput">
129.92 - <xs:annotation>
129.93 - <xs:documentation>DESC_Element_input</xs:documentation>
129.94 - <xs:appinfo>
129.95 - <prop:ElementProperties xmlns:prop="http://xml.netbeans.org/schema/wsdlui/property">
129.96 - <prop:Property attributeName="message" propertyOrder="1" >
129.97 - <prop:BuiltInCustomizer>
129.98 - <prop:SimpleCustomizer name="PartChooser"/>
129.99 - </prop:BuiltInCustomizer>
129.100 - </prop:Property>
129.101 -
129.102 - <prop:Property attributeName="subject" propertyOrder="2" >
129.103 - <prop:BuiltInCustomizer>
129.104 - <prop:SimpleCustomizer name="PartChooser"/>
129.105 - </prop:BuiltInCustomizer>
129.106 - </prop:Property>
129.107 - <prop:Property attributeName="from" propertyOrder="3">
129.108 - <prop:BuiltInCustomizer>
129.109 - <prop:SimpleCustomizer name="PartChooser"/>
129.110 - </prop:BuiltInCustomizer>
129.111 - </prop:Property>
129.112 - <prop:Property attributeName="charset" propertyOrder="4">
129.113 - <prop:BuiltInCustomizer>
129.114 - <prop:SimpleCustomizer name="PartChooser"/>
129.115 - </prop:BuiltInCustomizer>
129.116 - </prop:Property>
129.117 - <prop:Property attributeName="to" propertyOrder="5">
129.118 - <prop:BuiltInCustomizer>
129.119 - <prop:SimpleCustomizer name="PartChooser"/>
129.120 - </prop:BuiltInCustomizer>
129.121 - </prop:Property>
129.122 - <prop:Property attributeName="cc" propertyOrder="6">
129.123 - <prop:BuiltInCustomizer>
129.124 - <prop:SimpleCustomizer name="PartChooser"/>
129.125 - </prop:BuiltInCustomizer>
129.126 - </prop:Property>
129.127 -
129.128 - <prop:Property attributeName="bcc" propertyOrder="7">
129.129 - <prop:BuiltInCustomizer>
129.130 - <prop:SimpleCustomizer name="PartChooser"/>
129.131 - </prop:BuiltInCustomizer>
129.132 - </prop:Property>
129.133 - </prop:ElementProperties>
129.134 - </xs:appinfo>
129.135 - </xs:annotation>
129.136 - </xs:element>
129.137 - <xs:complexType name="tInput">
129.138 - <xs:complexContent>
129.139 - <xs:extension base="wsdl:tExtensibilityElement">
129.140 - <xs:sequence>
129.141 - <xs:element ref="smtp:attachment" minOccurs="0" maxOccurs="unbounded"/>
129.142 - </xs:sequence>
129.143 - <xs:attribute name="message" type="xs:string" use="optional">
129.144 - <xs:annotation>
129.145 - <xs:documentation>DESC_Attribute_message</xs:documentation>
129.146 - </xs:annotation>
129.147 - </xs:attribute>
129.148 - <xs:attribute name="subject" type="xs:string" use="optional">
129.149 - <xs:annotation>
129.150 - <xs:documentation>DESC_Attribute_subject</xs:documentation>
129.151 - </xs:annotation>
129.152 - </xs:attribute>
129.153 - <xs:attribute name="from" type="xs:string" use="optional">
129.154 - <xs:annotation>
129.155 - <xs:documentation>DESC_Attribute_from</xs:documentation>
129.156 - </xs:annotation>
129.157 - </xs:attribute>
129.158 - <xs:attribute name="charset" type="xs:string" use="optional">
129.159 - <xs:annotation>
129.160 - <xs:documentation>DESC_Attribute_charset</xs:documentation>
129.161 - </xs:annotation>
129.162 - </xs:attribute>
129.163 - <xs:attribute name="use" type="smtp:useTypes" use="optional">
129.164 - <xs:annotation>
129.165 - <xs:documentation>DESC_Attribute_use</xs:documentation>
129.166 - </xs:annotation>
129.167 - </xs:attribute>
129.168 - <xs:attribute name="encodingStyle" type="xs:string" use="optional">
129.169 - <xs:annotation>
129.170 - <xs:documentation>DESC_Attribute_encodingStyle</xs:documentation>
129.171 - </xs:annotation>
129.172 - </xs:attribute>
129.173 - <xs:attribute name="to" type="xs:string" use="optional">
129.174 - <xs:annotation>
129.175 - <xs:documentation>DESC_Attribute_to</xs:documentation>
129.176 - </xs:annotation>
129.177 - </xs:attribute>
129.178 - <xs:attribute name="cc" type="xs:string" use="optional">
129.179 - <xs:annotation>
129.180 - <xs:documentation>DESC_Attribute_cc</xs:documentation>
129.181 - </xs:annotation>
129.182 - </xs:attribute>
129.183 - <xs:attribute name="bcc" type="xs:string" use="optional">
129.184 - <xs:annotation>
129.185 - <xs:documentation>DESC_Attribute_bcc</xs:documentation>
129.186 - </xs:annotation>
129.187 - </xs:attribute>
129.188 - </xs:extension>
129.189 - </xs:complexContent>
129.190 - </xs:complexType>
129.191 - <xs:simpleType name="useTypes">
129.192 - <xs:restriction base="xs:string">
129.193 - <xs:enumeration value="literal"/>
129.194 - <xs:enumeration value="encoded"/>
129.195 - </xs:restriction>
129.196 - </xs:simpleType>
129.197 - <!-- Extensibility Element for the WSDL Operation Output -->
129.198 - <xs:element name="output" type="smtp:tOutput">
129.199 - <xs:annotation>
129.200 - <xs:documentation>DESC_Element_output</xs:documentation>
129.201 - </xs:annotation>
129.202 - </xs:element>
129.203 - <xs:complexType name="tOutput">
129.204 - <xs:complexContent>
129.205 - <xs:extension base="wsdl:tExtensibilityElement">
129.206 - </xs:extension>
129.207 - </xs:complexContent>
129.208 - </xs:complexType>
129.209 -
129.210 - <!-- Common message types for Input/Output Binding Elements -->
129.211 -
129.212 - <!-- Attachment(s) definition -->
129.213 - <xs:element name="attachment" type="smtp:tAttachment">
129.214 - <xs:annotation>
129.215 - <xs:documentation>DESC_Element_attachment</xs:documentation>
129.216 - </xs:annotation>
129.217 - </xs:element>
129.218 - <xs:complexType name="tAttachment">
129.219 - <xs:complexContent>
129.220 - <xs:extension base="wsdl:tExtensibilityElement">
129.221 - <xs:attribute name="contentType" type="xs:string" use="required" >
129.222 - <xs:annotation>
129.223 - <xs:documentation>DESC_Attribute_contentType</xs:documentation>
129.224 - </xs:annotation>
129.225 - </xs:attribute>
129.226 - <xs:attribute name="name" type="xs:string" use="required">
129.227 - <xs:annotation>
129.228 - <xs:documentation>DESC_Attribute_name</xs:documentation>
129.229 - </xs:annotation>
129.230 - </xs:attribute>
129.231 - <xs:attribute name="content" type="xs:string" use="required">
129.232 - <xs:annotation>
129.233 - <xs:documentation>DESC_Attribute_content</xs:documentation>
129.234 - </xs:annotation>
129.235 - </xs:attribute>
129.236 - </xs:extension>
129.237 - <!-- TODO: refer to part -->
129.238 - <!-- TODO: restrict types-->
129.239 - </xs:complexContent>
129.240 - </xs:complexType>
129.241 -
129.242 - <!-- Extensibility Element for the WSDL Port -->
129.243 - <xs:element name="address" type="smtp:tAddress">
129.244 - <xs:annotation>
129.245 - <xs:documentation>DESC_Element_address</xs:documentation>
129.246 - </xs:annotation>
129.247 - </xs:element>
129.248 - <xs:complexType name="tAddress">
129.249 - <xs:complexContent>
129.250 - <xs:extension base="wsdl:tExtensibilityElement">
129.251 - <xs:attribute name="location" type="xs:string" use="required">
129.252 - <xs:annotation>
129.253 - <xs:documentation>DESC_Attribute_location</xs:documentation>
129.254 - </xs:annotation>
129.255 - </xs:attribute>
129.256 - <xs:attribute name="smtpserver" type="xs:string" use="optional">
129.257 - <xs:annotation>
129.258 - <xs:documentation>DESC_Attribute_smtpserver</xs:documentation>
129.259 - </xs:annotation>
129.260 - </xs:attribute>
129.261 - <xs:attribute name="smtpport" type="xs:int" use="optional">
129.262 - <xs:annotation>
129.263 - <xs:documentation>DESC_Attribute_smtpport</xs:documentation>
129.264 - </xs:annotation>
129.265 - </xs:attribute>
129.266 - <xs:attribute name="username" type="xs:string" use="optional">
129.267 - <xs:annotation>
129.268 - <xs:documentation>DESC_Attribute_username</xs:documentation>
129.269 - </xs:annotation>
129.270 - </xs:attribute>
129.271 - <xs:attribute name="password" type="xs:string" use="optional">
129.272 - <xs:annotation>
129.273 - <xs:documentation>DESC_Attribute_password</xs:documentation>
129.274 - </xs:annotation>
129.275 - </xs:attribute>
129.276 - <xs:attribute name="useSSL" type="xs:boolean" use="optional">
129.277 - <xs:annotation>
129.278 - <xs:documentation>DESC_Attribute_useSSL</xs:documentation>
129.279 - </xs:annotation>
129.280 - </xs:attribute>
129.281 - </xs:extension>
129.282 - </xs:complexContent>
129.283 - </xs:complexType>
129.284 -</xs:schema>
130.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/resources/wsdl.xsd Mon Jul 14 01:11:23 2008 +0530
130.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
130.3 @@ -1,330 +0,0 @@
130.4 -<?xml version="1.0" encoding="UTF-8" ?>
130.5 -
130.6 -<!--
130.7 - The contents of this file are subject to the terms of the Common Development
130.8 - and Distribution License (the License). You may not use this file except in
130.9 - compliance with the License.
130.10 -
130.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
130.12 - or http://www.netbeans.org/cddl.txt.
130.13 -
130.14 - When distributing Covered Code, include this CDDL Header Notice in each file
130.15 - and include the License file at http://www.netbeans.org/cddl.txt.
130.16 - If applicable, add the following below the CDDL Header, with the fields
130.17 - enclosed by brackets [] replaced by your own identifying information:
130.18 - "Portions Copyrighted [year] [name of copyright owner]"
130.19 -
130.20 - The Original Software is NetBeans. The Initial Developer of the Original
130.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
130.22 - Microsystems, Inc. All Rights Reserved.
130.23 --->
130.24 -
130.25 -<!--
130.26 -
130.27 -Copyright 2001 - 2005, International Business Machines Corporation and Microsoft Corporation
130.28 -All Rights Reserved
130.29 -
130.30 -License for WSDL Schema Files
130.31 -
130.32 -The Authors grant permission to copy and distribute the WSDL Schema
130.33 -Files in any medium without fee or royalty as long as this notice and
130.34 -license are distributed with them. The originals of these files can
130.35 -be located at:
130.36 -
130.37 -http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd
130.38 -
130.39 -THESE SCHEMA FILES ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO REPRESENTATIONS
130.40 -OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THESE FILES, INCLUDING, BUT NOT
130.41 -LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
130.42 -NON-INFRINGEMENT OR TITLE. THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT,
130.43 -INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR
130.44 -RELATING TO ANY USE OR DISTRIBUTION OF THESE FILES.
130.45 -
130.46 -The name and trademarks of the Authors may NOT be used in any manner,
130.47 -including advertising or publicity pertaining to these files or any program
130.48 -or service that uses these files, written prior permission. Title to copyright
130.49 -in these files will at all times remain with the Authors.
130.50 -
130.51 -No other rights are granted by implication, estoppel or otherwise.
130.52 -
130.53 -
130.54 --->
130.55 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
130.56 - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
130.57 - targetNamespace="http://schemas.xmlsoap.org/wsdl/"
130.58 - elementFormDefault="qualified" >
130.59 -
130.60 - <xs:complexType mixed="true" name="tDocumentation" >
130.61 - <xs:sequence>
130.62 - <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
130.63 - </xs:sequence>
130.64 - </xs:complexType>
130.65 -
130.66 - <xs:complexType name="tDocumented" >
130.67 - <xs:annotation>
130.68 - <xs:documentation>
130.69 - This type is extended by component types to allow them to be documented
130.70 - </xs:documentation>
130.71 - </xs:annotation>
130.72 - <xs:sequence>
130.73 - <xs:element name="documentation" type="wsdl:tDocumentation" minOccurs="0" />
130.74 - </xs:sequence>
130.75 - </xs:complexType>
130.76 -
130.77 - <xs:complexType name="tExtensibleAttributesDocumented" abstract="true" >
130.78 - <xs:complexContent>
130.79 - <xs:extension base="wsdl:tDocumented" >
130.80 - <xs:annotation>
130.81 - <xs:documentation>
130.82 - This type is extended by component types to allow attributes from other namespaces to be added.
130.83 - </xs:documentation>
130.84 - </xs:annotation>
130.85 - <xs:anyAttribute namespace="##other" processContents="lax" />
130.86 - </xs:extension>
130.87 - </xs:complexContent>
130.88 - </xs:complexType>
130.89 -
130.90 - <xs:complexType name="tExtensibleDocumented" abstract="true" >
130.91 - <xs:complexContent>
130.92 - <xs:extension base="wsdl:tDocumented" >
130.93 - <xs:annotation>
130.94 - <xs:documentation>
130.95 - This type is extended by component types to allow elements from other namespaces to be added.
130.96 - </xs:documentation>
130.97 - </xs:annotation>
130.98 - <xs:sequence>
130.99 - <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
130.100 - </xs:sequence>
130.101 - </xs:extension>
130.102 - </xs:complexContent>
130.103 - </xs:complexType>
130.104 -
130.105 - <xs:element name="definitions" type="wsdl:tDefinitions" >
130.106 - <xs:key name="message" >
130.107 - <xs:selector xpath="wsdl:message" />
130.108 - <xs:field xpath="@name" />
130.109 - </xs:key>
130.110 - <xs:key name="portType" >
130.111 - <xs:selector xpath="wsdl:portType" />
130.112 - <xs:field xpath="@name" />
130.113 - </xs:key>
130.114 - <xs:key name="binding" >
130.115 - <xs:selector xpath="wsdl:binding" />
130.116 - <xs:field xpath="@name" />
130.117 - </xs:key>
130.118 - <xs:key name="service" >
130.119 - <xs:selector xpath="wsdl:service" />
130.120 - <xs:field xpath="@name" />
130.121 - </xs:key>
130.122 - <xs:key name="import" >
130.123 - <xs:selector xpath="wsdl:import" />
130.124 - <xs:field xpath="@namespace" />
130.125 - </xs:key>
130.126 - </xs:element>
130.127 -
130.128 - <xs:group name="anyTopLevelOptionalElement" >
130.129 - <xs:annotation>
130.130 - <xs:documentation>
130.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.
130.132 - </xs:documentation>
130.133 - </xs:annotation>
130.134 - <xs:choice>
130.135 - <xs:element name="import" type="wsdl:tImport" />
130.136 - <xs:element name="types" type="wsdl:tTypes" />
130.137 - <xs:element name="message" type="wsdl:tMessage" >
130.138 - <xs:unique name="part" >
130.139 - <xs:selector xpath="wsdl:part" />
130.140 - <xs:field xpath="@name" />
130.141 - </xs:unique>
130.142 - </xs:element>
130.143 - <xs:element name="portType" type="wsdl:tPortType" />
130.144 - <xs:element name="binding" type="wsdl:tBinding" />
130.145 - <xs:element name="service" type="wsdl:tService" >
130.146 - <xs:unique name="port" >
130.147 - <xs:selector xpath="wsdl:port" />
130.148 - <xs:field xpath="@name" />
130.149 - </xs:unique>
130.150 - </xs:element>
130.151 - </xs:choice>
130.152 - </xs:group>
130.153 -
130.154 - <xs:complexType name="tDefinitions" >
130.155 - <xs:complexContent>
130.156 - <xs:extension base="wsdl:tExtensibleDocumented" >
130.157 - <xs:sequence>
130.158 - <xs:group ref="wsdl:anyTopLevelOptionalElement" minOccurs="0" maxOccurs="unbounded" />
130.159 - </xs:sequence>
130.160 - <xs:attribute name="targetNamespace" type="xs:anyURI" use="optional" />
130.161 - <xs:attribute name="name" type="xs:NCName" use="optional" />
130.162 - </xs:extension>
130.163 - </xs:complexContent>
130.164 - </xs:complexType>
130.165 -
130.166 - <xs:complexType name="tImport" >
130.167 - <xs:complexContent>
130.168 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
130.169 - <xs:attribute name="namespace" type="xs:anyURI" use="required" />
130.170 - <xs:attribute name="location" type="xs:anyURI" use="required" />
130.171 - </xs:extension>
130.172 - </xs:complexContent>
130.173 - </xs:complexType>
130.174 -
130.175 - <xs:complexType name="tTypes" >
130.176 - <xs:complexContent>
130.177 - <xs:extension base="wsdl:tExtensibleDocumented" />
130.178 - </xs:complexContent>
130.179 - </xs:complexType>
130.180 -
130.181 - <xs:complexType name="tMessage" >
130.182 - <xs:complexContent>
130.183 - <xs:extension base="wsdl:tExtensibleDocumented" >
130.184 - <xs:sequence>
130.185 - <xs:element name="part" type="wsdl:tPart" minOccurs="0" maxOccurs="unbounded" />
130.186 - </xs:sequence>
130.187 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.188 - </xs:extension>
130.189 - </xs:complexContent>
130.190 - </xs:complexType>
130.191 -
130.192 - <xs:complexType name="tPart" >
130.193 - <xs:complexContent>
130.194 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
130.195 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.196 - <xs:attribute name="element" type="xs:QName" use="optional" />
130.197 - <xs:attribute name="type" type="xs:QName" use="optional" />
130.198 - </xs:extension>
130.199 - </xs:complexContent>
130.200 - </xs:complexType>
130.201 -
130.202 - <xs:complexType name="tPortType" >
130.203 - <xs:complexContent>
130.204 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
130.205 - <xs:sequence>
130.206 - <xs:element name="operation" type="wsdl:tOperation" minOccurs="0" maxOccurs="unbounded" />
130.207 - </xs:sequence>
130.208 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.209 - </xs:extension>
130.210 - </xs:complexContent>
130.211 - </xs:complexType>
130.212 -
130.213 - <xs:complexType name="tOperation" >
130.214 - <xs:complexContent>
130.215 - <xs:extension base="wsdl:tExtensibleDocumented" >
130.216 - <xs:sequence>
130.217 - <xs:choice>
130.218 - <xs:group ref="wsdl:request-response-or-one-way-operation" />
130.219 - <xs:group ref="wsdl:solicit-response-or-notification-operation" />
130.220 - </xs:choice>
130.221 - </xs:sequence>
130.222 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.223 - <xs:attribute name="parameterOrder" type="xs:NMTOKENS" use="optional" />
130.224 - </xs:extension>
130.225 - </xs:complexContent>
130.226 - </xs:complexType>
130.227 -
130.228 - <xs:group name="request-response-or-one-way-operation" >
130.229 - <xs:sequence>
130.230 - <xs:element name="input" type="wsdl:tParam" />
130.231 - <xs:sequence minOccurs='0' >
130.232 - <xs:element name="output" type="wsdl:tParam" />
130.233 - <xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
130.234 - </xs:sequence>
130.235 - </xs:sequence>
130.236 - </xs:group>
130.237 -
130.238 - <xs:group name="solicit-response-or-notification-operation" >
130.239 - <xs:sequence>
130.240 - <xs:element name="output" type="wsdl:tParam" />
130.241 - <xs:sequence minOccurs='0' >
130.242 - <xs:element name="input" type="wsdl:tParam" />
130.243 - <xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
130.244 - </xs:sequence>
130.245 - </xs:sequence>
130.246 - </xs:group>
130.247 -
130.248 - <xs:complexType name="tParam" >
130.249 - <xs:complexContent>
130.250 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
130.251 - <xs:attribute name="name" type="xs:NCName" use="optional" />
130.252 - <xs:attribute name="message" type="xs:QName" use="required" />
130.253 - </xs:extension>
130.254 - </xs:complexContent>
130.255 - </xs:complexType>
130.256 -
130.257 - <xs:complexType name="tFault" >
130.258 - <xs:complexContent>
130.259 - <xs:extension base="wsdl:tExtensibleAttributesDocumented" >
130.260 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.261 - <xs:attribute name="message" type="xs:QName" use="required" />
130.262 - </xs:extension>
130.263 - </xs:complexContent>
130.264 - </xs:complexType>
130.265 -
130.266 - <xs:complexType name="tBinding" >
130.267 - <xs:complexContent>
130.268 - <xs:extension base="wsdl:tExtensibleDocumented" >
130.269 - <xs:sequence>
130.270 - <xs:element name="operation" type="wsdl:tBindingOperation" minOccurs="0" maxOccurs="unbounded" />
130.271 - </xs:sequence>
130.272 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.273 - <xs:attribute name="type" type="xs:QName" use="required" />
130.274 - </xs:extension>
130.275 - </xs:complexContent>
130.276 - </xs:complexType>
130.277 -
130.278 - <xs:complexType name="tBindingOperationMessage" >
130.279 - <xs:complexContent>
130.280 - <xs:extension base="wsdl:tExtensibleDocumented" >
130.281 - <xs:attribute name="name" type="xs:NCName" use="optional" />
130.282 - </xs:extension>
130.283 - </xs:complexContent>
130.284 - </xs:complexType>
130.285 -
130.286 - <xs:complexType name="tBindingOperationFault" >
130.287 - <xs:complexContent>
130.288 - <xs:extension base="wsdl:tExtensibleDocumented" >
130.289 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.290 - </xs:extension>
130.291 - </xs:complexContent>
130.292 - </xs:complexType>
130.293 -
130.294 - <xs:complexType name="tBindingOperation" >
130.295 - <xs:complexContent>
130.296 - <xs:extension base="wsdl:tExtensibleDocumented" >
130.297 - <xs:sequence>
130.298 - <xs:element name="input" type="wsdl:tBindingOperationMessage" minOccurs="0" />
130.299 - <xs:element name="output" type="wsdl:tBindingOperationMessage" minOccurs="0" />
130.300 - <xs:element name="fault" type="wsdl:tBindingOperationFault" minOccurs="0" maxOccurs="unbounded" />
130.301 - </xs:sequence>
130.302 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.303 - </xs:extension>
130.304 - </xs:complexContent>
130.305 - </xs:complexType>
130.306 -
130.307 - <xs:complexType name="tService" >
130.308 - <xs:complexContent>
130.309 - <xs:extension base="wsdl:tExtensibleDocumented" >
130.310 - <xs:sequence>
130.311 - <xs:element name="port" type="wsdl:tPort" minOccurs="0" maxOccurs="unbounded" />
130.312 - </xs:sequence>
130.313 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.314 - </xs:extension>
130.315 - </xs:complexContent>
130.316 - </xs:complexType>
130.317 -
130.318 - <xs:complexType name="tPort" >
130.319 - <xs:complexContent>
130.320 - <xs:extension base="wsdl:tExtensibleDocumented" >
130.321 - <xs:attribute name="name" type="xs:NCName" use="required" />
130.322 - <xs:attribute name="binding" type="xs:QName" use="required" />
130.323 - </xs:extension>
130.324 - </xs:complexContent>
130.325 - </xs:complexType>
130.326 -
130.327 - <xs:attribute name="arrayType" type="xs:string" />
130.328 - <xs:attribute name="required" type="xs:boolean" />
130.329 - <xs:complexType name="tExtensibilityElement" abstract="true" >
130.330 - <xs:attribute ref="wsdl:required" use="optional" />
130.331 - </xs:complexType>
130.332 -
130.333 -</xs:schema>
130.334 \ No newline at end of file
131.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/template/Bundle.properties Mon Jul 14 01:11:23 2008 +0530
131.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
131.3 @@ -1,28 +0,0 @@
131.4 -#
131.5 -# The contents of this file are subject to the terms of the Common Development
131.6 -# and Distribution License (the License). You may not use this file except in
131.7 -# compliance with the License.
131.8 -#
131.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
131.10 -# or http://www.netbeans.org/cddl.txt.
131.11 -#
131.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
131.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
131.14 -# If applicable, add the following below the CDDL Header, with the fields
131.15 -# enclosed by brackets [] replaced by your own identifying information:
131.16 -# "Portions Copyrighted [year] [name of copyright owner]"
131.17 -#
131.18 -# The Original Software is NetBeans. The Initial Developer of the Original
131.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
131.20 -# Microsystems, Inc. All Rights Reserved.
131.21 -#
131.22 -
131.23 -SmtpTransport=Smtp Transport
131.24 -http_//schemas.sun.com/jbi/wsdl-extensions/smtp/=SMTP
131.25 -
131.26 -TEMPLATEGROUP_name=SMTP
131.27 -TEMPLATEGROUP_prefix_smtp=smtp
131.28 -TEMPLATE_name_SmtpTransport=Smtp Transport
131.29 -
131.30 -
131.31 -
132.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/template/SmtpTemplateProvider.java Mon Jul 14 01:11:23 2008 +0530
132.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
132.3 @@ -1,40 +0,0 @@
132.4 -/*
132.5 - * The contents of this file are subject to the terms of the Common Development
132.6 - * and Distribution License (the License). You may not use this file except in
132.7 - * compliance with the License.
132.8 - *
132.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
132.10 - * or http://www.netbeans.org/cddl.txt.
132.11 - *
132.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
132.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
132.14 - * If applicable, add the following below the CDDL Header, with the fields
132.15 - * enclosed by brackets [] replaced by your own identifying information:
132.16 - * "Portions Copyrighted [year] [name of copyright owner]"
132.17 - *
132.18 - * The Original Software is NetBeans. The Initial Developer of the Original
132.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
132.20 - * Microsystems, Inc. All Rights Reserved.
132.21 - */
132.22 -
132.23 -package org.netbeans.modules.wsdlextensions.smtp.template;
132.24 -
132.25 -import java.io.InputStream;
132.26 -import org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider;
132.27 -import org.openide.util.NbBundle;
132.28 -
132.29 -public class SmtpTemplateProvider extends ExtensibilityElementTemplateProvider {
132.30 -
132.31 - static final String smtpTemplateUrl = "/org/netbeans/modules/wsdlextensions/smtp/template/template.xml";
132.32 -
132.33 - public InputStream getTemplateInputStream() {
132.34 - return SmtpTemplateProvider.class.getResourceAsStream(smtpTemplateUrl);
132.35 - }
132.36 -
132.37 - public String getLocalizedMessage(String str, Object[] objects) {
132.38 - return NbBundle.getMessage(SmtpTemplateProvider.class, str, objects);
132.39 - }
132.40 -
132.41 -
132.42 -
132.43 -}
133.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/template/template.xml Mon Jul 14 01:11:23 2008 +0530
133.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
133.3 @@ -1,51 +0,0 @@
133.4 -<?xml version="1.0" encoding="UTF-8"?>
133.5 -
133.6 -<!--
133.7 - The contents of this file are subject to the terms of the Common Development
133.8 - and Distribution License (the License). You may not use this file except in
133.9 - compliance with the License.
133.10 -
133.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
133.12 - or http://www.netbeans.org/cddl.txt.
133.13 -
133.14 - When distributing Covered Code, include this CDDL Header Notice in each file
133.15 - and include the License file at http://www.netbeans.org/cddl.txt.
133.16 - If applicable, add the following below the CDDL Header, with the fields
133.17 - enclosed by brackets [] replaced by your own identifying information:
133.18 - "Portions Copyrighted [year] [name of copyright owner]"
133.19 -
133.20 - The Original Software is NetBeans. The Initial Developer of the Original
133.21 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
133.22 - Microsystems, Inc. All Rights Reserved.
133.23 --->
133.24 -
133.25 -<!--
133.26 - Document : template.xml
133.27 - Created on : August 25, 2006, 5:39 PM
133.28 - Author : sweng
133.29 - Description: Describes the SMTP Binding Component's extensibility element views on WSDL wizard
133.30 --->
133.31 -<templateGroup namespace="http://schemas.sun.com/jbi/wsdl-extensions/smtp/"
133.32 - xmlns="http://xml.netbeans.org/schema/templates"
133.33 - xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"
133.34 - xsi:schemaLocation="http://xml.netbeans.org/schema/templates
133.35 - templates.xsd" prefix="smtp">
133.36 - <template name="SmtpTransport">
133.37 - <wsdlElement name="Binding">
133.38 - <extensionElement name="binding"/>
133.39 - </wsdlElement>
133.40 - <wsdlElement name="BindingOperation">
133.41 - <extensionElement name="operation"/>
133.42 - </wsdlElement>
133.43 - <wsdlElement name="BindingOperationInput">
133.44 - <extensionElement name="input"/>
133.45 - </wsdlElement>
133.46 - <wsdlElement name="ServicePort">
133.47 - <extensionElement name="address" >
133.48 - <extensionAttr name="location" defaultValue="mailto:someUser@localhost.com"/>
133.49 - <extensionAttr name="smtpserver" defaultValue="localhost"/>
133.50 - <extensionAttr name="useSSL" defaultValue="false"/>
133.51 - </extensionElement>
133.52 - </wsdlElement>
133.53 - </template>
133.54 -</templateGroup>
133.55 \ No newline at end of file
134.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/validator/Bundle.properties Mon Jul 14 01:11:23 2008 +0530
134.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
134.3 @@ -1,48 +0,0 @@
134.4 -# The contents of this file are subject to the terms of the Common Development
134.5 -# and Distribution License (the License). You may not use this file except in
134.6 -# compliance with the License.
134.7 -#
134.8 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
134.9 -# or http://www.netbeans.org/cddl.txt.
134.10 -#
134.11 -# When distributing Covered Code, include this CDDL Header Notice in each file
134.12 -# and include the License file at http://www.netbeans.org/cddl.txt.
134.13 -# If applicable, add the following below the CDDL Header, with the fields
134.14 -# enclosed by brackets [] replaced by your own identifying information:
134.15 -# "Portions Copyrighted [year] [name of copyright owner]"
134.16 -#
134.17 -# The Original Software is NetBeans. The Initial Developer of the Original
134.18 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
134.19 -# Microsystems, Inc. All Rights Reserved.
134.20 -
134.21 -## put semantics validation messages here
134.22 -SMTPAddress.MISSING_SMTP_URL= In the provided "smtp:address" location URL, "mailto:" is missing.
134.23 -SMTPHeader.MISSING_HEADER_VALUE= Value is missing for one of the specified header.
134.24 -SMTPHeader.MISSING_HEADER_KEY=Header Key is missing
134.25 -SMTPMAILBOX.NOT_VALID_MAILBOX= Please provide a valid "smtp:address" location.
134.26 -SMTPAddress.NOT_VALID_MAIL_ADDRESS=Mail id is not valid.
134.27 -SMTPAddress.NOT_VALID_MAIL_ADDRESS_MORE_@ =Mail id has more then one '@' symbol , it is not valid.
134.28 -SMTPAddress.NOT_VALID_MAIL_ADDRESS_HAS_EQUALS=Mail id contains '=' which is not allowed.
134.29 -SMTPAddress.NOT_VALID_MAIL_ADDRESS_NO_DOT=Mail id should contain a '.'
134.30 -SMTPAddress.NOT_VALID_MAIL_ADDRESS_MORE_DOT=Mail id should not contain more than one '.'
134.31 -SMTPAddress.NEED_VALUE_FOR_LOCATION=Location value is missing in the address specified
134.32 -SMTPAddress.NEED_VALUE_FOR_SMTPSERVER=SMTPServer needs to be specified
134.33 -SMTPAddress.SPACES_NOT_ALLOWED_IN_LOCATION=Spaces not allowed in mailbox
134.34 -SMTPBindingValidation.ONLY_ONE_SMTP_BINDING_ALLOWED=Only one SMTP binding allowed
134.35 -SMTPExtValidation.MISSING_SMTP_ADDRESS=Missing "smtp:address" attribute.
134.36 -SMTPExtValidation.ONLY_ONE_SMTPADDRESS_ALLOWED=Only one "smtp:address" is allowed
134.37 -SMTPBindingValidation.ATMOST_ONE_Message_IN_INPUT=Only one smtp input message is allowed
134.38 -SMTPBindingValidation.SMTP_OPERATION_WO_SMTP_BINDING=Smtp operation without a binding is not allowed
134.39 - SMTPBindingValidation.MISSING_SMTP_OPERATION=Missing smtp operation for binding
134.40 -SMTPInput.NOT_VALID_MAIL_ADDRESS=Mail id does not contain '@'.
134.41 -SMTPInput.NOT_VALID_MAIL_ADDRESS_MORE_@ =Mail id has more then one '@' symbol , it is not valid.
134.42 -SMTPInput.NOT_VALID_MAIL_ADDRESS_NO_DOT=Mail id should contain a '.'
134.43 -SMTPInput.NOT_VALID_MAIL_ADDRESS_MORE_DOT=Mail id should not contain more than one '.'
134.44 -SMTPINPUTValidation.ENCODING_STYLE_NOT_SPECIFIED=Encoding style not specified.
134.45 -SMTPBindingValidation.BINDING_REFERENCES_INVALID_PORTTYPE=Multiple bindings are not supported
134.46 -SMTPINPUTValidation.ENCODING_USE_NOT_SPECIFIED= Use attribute not set.
134.47 -SMTPINPUTValidation.INVALID_FROM_ADDRESS=From attribute should be a valid part name
134.48 -SMTPINPUTValidation.INVALID_TO_ADDRESS=To attribute should be a valid part name
134.49 -SMTPINPUTValidation.INVALID_CC_ADDRESS=CC attribute should be a valid part name
134.50 -SMTPINPUTValidation.INVALID_BCC_ADDRESS=BCC attribute should be a valid part name
134.51 -SMTPINPUTValidation.INVALID_PART_NAME=part name should be selected from the list of available parts
134.52 \ No newline at end of file
135.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/validator/InvalidMailboxException.java Mon Jul 14 01:11:23 2008 +0530
135.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
135.3 @@ -1,64 +0,0 @@
135.4 -/***************************************************************************
135.5 - *
135.6 - * Copyright (c) 2005, SeeBeyond Technology Corporation,
135.7 - * All Rights Reserved
135.8 - *
135.9 - * This program, and all the routines referenced herein,
135.10 - * are the proprietary properties and trade secrets of
135.11 - * SEEBEYOND TECHNOLOGY CORPORATION.
135.12 - *
135.13 - * Except as provided for by license agreement, this
135.14 - * program shall not be duplicated, used, or disclosed
135.15 - * without written consent signed by an officer of
135.16 - * SEEBEYOND TECHNOLOGY CORPORATION.
135.17 - *
135.18 - ***********************************************************************org*netbeanspmodulesawsdlextensions.smtp.validatortpbc.extensions;
135.19 -
135.20 -
135.21 -/**
135.22 - *
135.23 - *
135.24 - * @author Alexander Fung
135.25 - * @version
135.26 - *
135.27 - */
135.28 -
135.29 -package org.netbeans.modules.wsdlextensions.smtp.validator;
135.30 -
135.31 -public class InvalidMailboxException extends Exception {
135.32 -
135.33 - /**
135.34 - *
135.35 - */
135.36 - private static final long serialVersionUID = 1L;
135.37 -
135.38 - /**
135.39 - * Creates a new instance of <code>InvalidMailboxException</code>
135.40 - * without detail message.
135.41 - */
135.42 - public InvalidMailboxException() {
135.43 - super();
135.44 - }
135.45 -
135.46 - /**
135.47 - * Constructs an instance of <code>InvalidMailboxException</code>
135.48 - * with the specified detail message.
135.49 - *
135.50 - * @param msg the detail message.
135.51 - */
135.52 - public InvalidMailboxException(final String msg) {
135.53 - super(msg);
135.54 - }
135.55 -
135.56 - /**
135.57 - * Constructs an instance of <code>InvalidMailboxException</code>
135.58 - * with the specified detail message.
135.59 - *
135.60 - * @param msg the detail message.
135.61 - */
135.62 - public InvalidMailboxException(final String msg, final Throwable cause) {
135.63 - super(msg, cause);
135.64 - }
135.65 -
135.66 -}
135.67 -
136.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/validator/Mailbox.java Mon Jul 14 01:11:23 2008 +0530
136.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
136.3 @@ -1,264 +0,0 @@
136.4 -/*
136.5 - * The contents of this file are subject to the terms of the Common Development
136.6 - * and Distribution License (the License). You may not use this file except in
136.7 - * compliance with the License.
136.8 - *
136.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
136.10 - * or http://www.netbeans.org/cddl.txt.
136.11 - *
136.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
136.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
136.14 - * If applicable, add the following below the CDDL Header, with the fields
136.15 - * enclosed by brackets [] replaced by your own identifying information:
136.16 - * "Portions Copyrighted [year] [name of copyright owner]"
136.17 - *
136.18 - * The Original Software is NetBeans. The Initial Developer of the Original
136.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
136.20 - * Microsystems, Inc. All Rights Reserved.
136.21 - */
136.22 -
136.23 -/***************************************************************************
136.24 - *
136.25 - * Copyright (c) 2005, SeeBeyond Technology Corporation,
136.26 - * All Rights Reserved
136.27 - *
136.28 - * This program, and all the routines referenced herein,
136.29 - * are the proprietary properties and trade secrets of
136.30 - * SEEBEYOND TECHNOLOGY CORPORATION.
136.31 - *
136.32 - * Except as provided for by license agreement, this
136.33 - * program shall not be duplicated, used, or disclosed
136.34 - * without written consent signed by an officer of
136.35 - * SEEBEYOND TECHNOLOGY CORPORATION.
136.36 - *
136.37 - ***************************************************************************/
136.38 -package org.netbeans.modules.wsdlextensions.smtp.validator;
136.39 -
136.40 -import java.util.Stack;
136.41 -import javax.mail.internet.InternetAddress;
136.42 -import javax.mail.internet.AddressException;
136.43 -
136.44 -
136.45 -/**
136.46 - * The Mailbox class represents a "mailbox" token defined by RFC 822.
136.47 - * The grammar for this is defined below:
136.48 - * <p>
136.49 - * <blockquote>
136.50 - * mailbox = addr-spec ; simple address
136.51 - * / phrase route-addr ; name & addr-spec
136.52 - *
136.53 - * route-addr = "<" [route] addr-spec ">"
136.54 - *
136.55 - * route = 1#("@" domain) ":" ; path-relative
136.56 - *
136.57 - * addr-spec = local-part "@" domain ; global address
136.58 - *
136.59 - * local-part = word *("." word) ; uninterpreted
136.60 - * ; case-preserved
136.61 - *
136.62 - * domain = sub-domain *("." sub-domain)
136.63 - *
136.64 - * sub-domain = domain-ref / domain-literal
136.65 - *
136.66 - * domain-ref = atom ; symbolic reference
136.67 - * </blockquote>
136.68 - * <p>
136.69 - * In addition to following the aforementioned grammar, this class provides
136.70 - * facilities to strip out comments and remove white spaces. Comments are
136.71 - * nested, parenthetical statements that may show up in an address. Moreover,
136.72 - * although spaces, special characters, and control characters are not allowed
136.73 - * in "atom"s, instead of throwing exceptions, this class simply removes them.
136.74 - * This behavior is in line with example A.1.4 in Appendix A.1 of RFC 822.
136.75 - * <p>
136.76 - * Furthermore, this class doesn NOT deal with URL encoded addresses. Users of
136.77 - * this class must properly pass in unencoded "mailbox" tokens.
136.78 - *
136.79 - * @author Alexander Fung
136.80 - * @version
136.81 - *
136.82 - */
136.83 -public class Mailbox {
136.84 -
136.85 - private String mLocalPart;
136.86 - private String mDomain;
136.87 - private String mPhrase = "";
136.88 - private String[] mRouteTokens;
136.89 -
136.90 - public Mailbox() {}
136.91 -
136.92 - public Mailbox(String mailbox) throws InvalidMailboxException {
136.93 - this();
136.94 - unmarshal(mailbox);
136.95 - }
136.96 -
136.97 - public String getAddressSpec() {
136.98 - return mLocalPart + "@" + mDomain;
136.99 - }
136.100 -
136.101 - public String getNormalizedAddressSpec() {
136.102 - return normalize(stripComments(getAddressSpec()));
136.103 - }
136.104 -
136.105 - public String getLocalPart() {
136.106 - return mLocalPart;
136.107 - }
136.108 -
136.109 - public String getNormalizedLocalPart() {
136.110 - return normalize(stripComments(mLocalPart));
136.111 - }
136.112 -
136.113 - public String getDomain() {
136.114 - return mDomain;
136.115 - }
136.116 -
136.117 - public String getNormalizedDomain() {
136.118 - return normalize(stripComments(mDomain));
136.119 - }
136.120 -
136.121 - public String getPhrase() {
136.122 - return mPhrase;
136.123 - }
136.124 -
136.125 - public String getRoute() {
136.126 - String route = "";
136.127 - if (mRouteTokens != null) {
136.128 - for (int ii = 0; ii < mRouteTokens.length; ii++) {
136.129 - route = route + mRouteTokens[ii] + ",";
136.130 - }
136.131 - char[] characters = route.toCharArray();
136.132 - characters[characters.length - 1] = ':';
136.133 - route = new String(characters);
136.134 - }
136.135 - return route;
136.136 - }
136.137 -
136.138 - public void unmarshal(String mailbox) throws InvalidMailboxException
136.139 - {
136.140 -
136.141 - if (mailbox.indexOf('<') != -1) {
136.142 - parseFullAddressSpecification(mailbox);
136.143 - } else {
136.144 - parseAddressSpecification(mailbox);
136.145 - }
136.146 -
136.147 - //Validataing the normalized email address
136.148 - try {
136.149 - InternetAddress emailAddress = new InternetAddress(getNormalizedAddressSpec());
136.150 - } catch(AddressException e){
136.151 - throw new InvalidMailboxException(e.getMessage());
136.152 - }
136.153 - }
136.154 -
136.155 - public String marshal() throws InvalidMailboxException{
136.156 -
136.157 - if (mPhrase.equals("")) {
136.158 - return getAddressSpec();
136.159 - } else {
136.160 - String route = getRoute();
136.161 - if (route.equals("")) {
136.162 - return mPhrase + " <" + getAddressSpec() + ">";
136.163 - } else {
136.164 - return mPhrase + " <"+getRoute()+" "+getAddressSpec()+">";
136.165 - }
136.166 - }
136.167 - }
136.168 -
136.169 - protected void parseFullAddressSpecification(String fullAddrSpec)throws InvalidMailboxException
136.170 - {
136.171 -
136.172 - int bracket = fullAddrSpec.indexOf("<");
136.173 - if (bracket == -1) {
136.174 - //throw new InvalidMailboxException();
136.175 - }
136.176 -
136.177 - mPhrase = fullAddrSpec.substring(0, bracket).trim();
136.178 - parseRouteAddress(fullAddrSpec.substring(bracket,
136.179 - fullAddrSpec.length()));
136.180 -
136.181 - }
136.182 -
136.183 - protected void parseRouteAddress(String routeAddr) throws InvalidMailboxException
136.184 - {
136.185 -
136.186 - if (!routeAddr.startsWith("<") || !routeAddr.endsWith(">")) {
136.187 - //throw new InvalidMailboxException();
136.188 - }
136.189 -
136.190 - String newRouteAddr = routeAddr.substring(1, routeAddr.length() -1);
136.191 - int colon = newRouteAddr.indexOf(':');
136.192 - if (colon == -1) {
136.193 - parseAddressSpecification(newRouteAddr);
136.194 - } else {
136.195 - parseRoute(newRouteAddr.substring(0, colon));
136.196 - parseAddressSpecification(newRouteAddr.substring(colon + 2,
136.197 - newRouteAddr.length()));
136.198 - }
136.199 - }
136.200 -
136.201 - protected void parseRoute(String route) {
136.202 - mRouteTokens = route.split(",");
136.203 - }
136.204 -
136.205 - protected void parseAddressSpecification(String addrSpec) throws InvalidMailboxException
136.206 - {
136.207 -
136.208 - int atSign = addrSpec.indexOf('@');
136.209 - if (atSign != -1) {
136.210 - mLocalPart = addrSpec.substring(0, atSign);
136.211 - mDomain = addrSpec.substring(atSign + 1, addrSpec.length());
136.212 - } else {
136.213 - //throw new InvalidMailboxException();
136.214 - }
136.215 - }
136.216 -
136.217 - /**
136.218 - * All atoms are any characters except specials, space, and control
136.219 - * characters. For now, just remove space
136.220 - *
136.221 - * @param
136.222 - * @return
136.223 - * @exception
136.224 - * @see
136.225 - */
136.226 - protected String normalize(String token) {
136.227 - if (token.startsWith("\"") && token.endsWith("\"")) {
136.228 - return token;
136.229 - }
136.230 -
136.231 - return token.replace(" ", "");
136.232 - }
136.233 -
136.234 - protected String stripComments(String token) {
136.235 - if (token.startsWith("\"") && token.endsWith("\"")) {
136.236 - return token;
136.237 - }
136.238 -
136.239 - String tmp = token;
136.240 - boolean hasParens = (tmp.indexOf('(') != -1);
136.241 - while (hasParens) {
136.242 - Stack parens = new Stack();
136.243 - char[] chars = tmp.toCharArray();
136.244 - hasParens = false;
136.245 - for (int ii = 0; ii < chars.length; ii++) {
136.246 - if (chars[ii] == '(') {
136.247 - parens.push(new Integer(ii));
136.248 - }
136.249 - if (chars[ii] == ')') {
136.250 - // Found a match
136.251 - int start = ((Integer)parens.pop()).intValue();
136.252 -
136.253 - // Remove the string
136.254 - tmp = tmp.replace(tmp.substring(start, ii + 1), "");
136.255 -
136.256 - // Reinitialize everything and start over
136.257 - parens = new Stack();
136.258 - chars = tmp.toCharArray();
136.259 - hasParens = true;
136.260 - break;
136.261 - }
136.262 - }
136.263 - }
136.264 -
136.265 - return tmp;
136.266 - }
136.267 -}
137.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/validator/SMTPAddressURL.java Mon Jul 14 01:11:23 2008 +0530
137.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
137.3 @@ -1,356 +0,0 @@
137.4 -/*
137.5 - * The contents of this file are subject to the terms of the Common Development
137.6 - * and Distribution License (the License). You may not use this file except in
137.7 - * compliance with the License.
137.8 - *
137.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
137.10 - * or http://www.netbeans.org/cddl.txt.
137.11 - *
137.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
137.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
137.14 - * If applicable, add the following below the CDDL Header, with the fields
137.15 - * enclosed by brackets [] replaced by your own identifying information:
137.16 - * "Portions Copyrighted [year] [name of copyright owner]"
137.17 - *
137.18 - * The Original Software is NetBeans. The Initial Developer of the Original
137.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
137.20 - * Microsystems, Inc. All Rights Reserved.
137.21 - */
137.22 -
137.23 -/***************************************************************************
137.24 - *
137.25 - * Copyright (c) 2005, SeeBeyond Technology Corporation,
137.26 - * All Rights Reserved
137.27 - *
137.28 - * This program, and all the routines referenced herein,
137.29 - * are the proprietary properties and trade secrets of
137.30 - * SEEBEYOND TECHNOLOGY CORPORATION.
137.31 - *
137.32 - * Except as provided for by license agreement, this
137.33 - * program shall not be duplicated, used, or disclosed
137.34 - * without written consent signed by an officer of
137.35 - * SEEBEYOND TECHNOLOGY CORPORATION.
137.36 - *
137.37 - ***************************************************************************/
137.38 -package org.netbeans.modules.wsdlextensions.smtp.validator;
137.39 -
137.40 -import java.io.UnsupportedEncodingException;
137.41 -import javax.mail.internet.AddressException;
137.42 -import org.netbeans.modules.wsdlextensions.smtp.SMTPAddress;
137.43 -import org.netbeans.modules.wsdlextensions.smtp.SMTPInput;
137.44 -import java.net.URISyntaxException;
137.45 -import java.net.URI;
137.46 -import java.net.URLDecoder;
137.47 -import java.net.URLEncoder;
137.48 -import java.util.ArrayList;
137.49 -import java.util.Collection;
137.50 -import java.util.HashMap;
137.51 -import java.util.Iterator;
137.52 -import java.util.Map;
137.53 -import java.util.ResourceBundle;
137.54 -import java.util.logging.Level;
137.55 -import javax.mail.internet.InternetAddress;
137.56 -
137.57 -import org.netbeans.modules.xml.xam.spi.Validation;
137.58 -import org.netbeans.modules.xml.xam.spi.Validation.ValidationType;
137.59 -import org.netbeans.modules.xml.xam.spi.ValidationResult;
137.60 -import org.netbeans.modules.xml.xam.spi.Validator;
137.61 -
137.62 -import org.netbeans.modules.wsdlextensions.smtp.validator.Mailbox;
137.63 -/**
137.64 - * The MailTo class provides an interpretation of the mailto URI syntax as per
137.65 - * RFC 2368. The mailto URI designates an Internet mailing address of
137.66 - * individuals. It allows for multiple senders and the setting of mail header
137.67 - * fields.
137.68 - * <p>
137.69 - * Encoding is a very tricky part of the URI syntax. The MailTo class only
137.70 - * accepts properly encoded strings. The unmarshal() method will fail if
137.71 - * given an improper encoding. The marshal() method only returns encoded
137.72 - * strings. Once a mailto URI is unmarshalled, calls to methods getMailBox(),
137.73 - * addMailbox(), addHeader(), getHeader(), and getHeaders() will return
137.74 - * unencoded strings. Using encoded strings with these methods will result
137.75 - * in unpredicatable behavior if the MailTo class is unmarshalled. The
137.76 - * reasoning for this decision is that most
137.77 - * users of the class only have to deal with encodings at the unmarshal and
137.78 - * marshal level. Most times they don't want to have to deal with it when
137.79 - * working with the components of the mailto URI
137.80 - * <p>
137.81 - * The encoding scheme is defined by RFC 2368 and RFC 1738, but it is detailed
137.82 - * below.
137.83 - * <ul>
137.84 - * <li>All unsafe characters as defined by RFC 1738 must be encoded. For the
137.85 - * mailto URI this includes common characters such as the space, the quote, the
137.86 - * less-than-sign, and the greater-than-sign.</li>
137.87 - * <li>All alphanumeric characters do NOT have to be encoded.</li>
137.88 - * <li>All special characters $-_.+!*'(), do NOT have to be encoded.</li>
137.89 - * <li>The question mark (?), the equals sign (=), and the ampersand sign (&) are
137.90 - * reserved characters in the mailto URI scheme. That means if they are used in
137.91 - * a mailbox or header, they must be encoded.
137.92 - * <p>
137.93 - * <blockquote>
137.94 - * foo@domain.com?someHeader=blah&blah // WRONG!
137.95 - *
137.96 - * foo@domain.com?someHeader=blah%26blah // RIGHT
137.97 - * </blockquote>
137.98 - * </li>
137.99 - * <li>All other URL reserved characters that are not being used for the mailto
137.100 - * URI scheme do NOT have to be encoded. This includes semi-colon (;),
137.101 - * slash (/), colon (:), and the at-sign ("@").
137.102 - * </ul>
137.103 - *
137.104 - * @author Sainath Adiraju
137.105 - *
137.106 - *
137.107 - */
137.108 -public class SMTPAddressURL{
137.109 -
137.110 - public static final String MAILTO_SCHEME = "mailto";
137.111 - private static final ResourceBundle mMessages =
137.112 - ResourceBundle.getBundle("org.netbeans.modules.wsdlextensions.smtp.validator.Bundle");
137.113 -
137.114 - private Map mHeaders;
137.115 - private Collection mMailboxes;
137.116 - private Collection mCCMailboxes;
137.117 - private Collection mBCCMailboxes;
137.118 -private String subject;
137.119 - private String body;
137.120 -
137.121 -
137.122 -
137.123 - public SMTPAddressURL() {
137.124 - mHeaders = new HashMap();
137.125 - mMailboxes = new ArrayList();
137.126 - mCCMailboxes = new ArrayList();
137.127 - mBCCMailboxes = new ArrayList();
137.128 - subject = "";
137.129 - body = "";
137.130 -
137.131 - }
137.132 -
137.133 - public SMTPAddressURL(String mailToURI) throws URISyntaxException {
137.134 - this();
137.135 - // unmarshal(new URI(mailToURI));
137.136 - }
137.137 -
137.138 - public String getProtocol() {
137.139 - return MAILTO_SCHEME;
137.140 - }
137.141 -
137.142 - public Collection getMailbox() {
137.143 - return mMailboxes;
137.144 - }
137.145 -
137.146 - public Collection getCCMailbox() {
137.147 - return mCCMailboxes;
137.148 - }
137.149 -
137.150 - public Collection getBCCMailbox() {
137.151 - return mBCCMailboxes;
137.152 - }
137.153 -
137.154 - public void addMailbox(Mailbox mailbox) {
137.155 - mMailboxes.add(mailbox);
137.156 - }
137.157 -
137.158 - public void addHeader(String name, String value) {
137.159 - mHeaders.put(name, value);
137.160 - }
137.161 -
137.162 - public String getHeader(String name) {
137.163 - return (String)mHeaders.get(name);
137.164 - }
137.165 -
137.166 - public Map getHeaders() {
137.167 - return mHeaders;
137.168 - }
137.169 -
137.170 - public void unmarshal(Collection<Validator.ResultItem> results, Validator validator, SMTPAddress target) throws URISyntaxException ,InvalidMailboxException{
137.171 - if("".equals(target.getLocation())){
137.172 - results.add(new Validator.ResultItem(validator,
137.173 - Validator.ResultType.ERROR,
137.174 - target,
137.175 - mMessages.getString("SMTPAddress.NEED_VALUE_FOR_LOCATION")));
137.176 - }
137.177 - if("".equals(target.getSMTPServer())){
137.178 - results.add(new Validator.ResultItem(validator,
137.179 - Validator.ResultType.ERROR,
137.180 - target,
137.181 - mMessages.getString("SMTPAddress.NEED_VALUE_FOR_SMTPSERVER")));
137.182 - }
137.183 - String targetValidate = target.getLocation();
137.184 - int length = targetValidate.length();
137.185 - char charTarget[]= new char[length];
137.186 - targetValidate.getChars(0,length , charTarget, 0);
137.187 - int i=0;
137.188 - while(i<charTarget.length){
137.189 - if(charTarget[i]==' '){
137.190 - results.add(new Validator.ResultItem(validator,
137.191 - Validator.ResultType.ERROR,
137.192 - target,
137.193 - mMessages.getString("SMTPAddress.SPACES_NOT_ALLOWED_IN_LOCATION")));
137.194 - break;
137.195 - }
137.196 - i++;
137.197 - }
137.198 -
137.199 - URI mailToURI = new URI(target.getLocation());
137.200 - String scheme = mailToURI.getScheme();
137.201 - try {
137.202 - if (!scheme.equals(MAILTO_SCHEME )) {
137.203 - results.add(new Validator.ResultItem(validator,
137.204 - Validator.ResultType.ERROR,
137.205 - target,
137.206 - mMessages.getString("SMTPAddress.MISSING_SMTP_URL")));
137.207 - }
137.208 -
137.209 - String data = mailToURI.getRawSchemeSpecificPart();
137.210 -
137.211 - // Check if there are headers
137.212 - int questionMark = data.indexOf('?');
137.213 - if (questionMark == -1) {
137.214 - parseMailBoxes(data,results,"",validator,target);
137.215 - //validateAdressUrl(data,results,validator,target);
137.216 - } else {
137.217 - parseMailBoxes(data.substring(0, questionMark),results,"",validator,target);
137.218 - parseHeaders(data.substring(questionMark + 1,
137.219 - data.length()),results,validator,target);
137.220 -
137.221 - Iterator it = mMailboxes.iterator();
137.222 - while (it.hasNext()) {
137.223 - Mailbox mailBox = (Mailbox)it.next();
137.224 - validateAdressUrl(mailBox.getNormalizedAddressSpec(),results,validator,target);
137.225 - }
137.226 -
137.227 - Iterator itforcc = mCCMailboxes.iterator();
137.228 - while (itforcc.hasNext()) {
137.229 - Mailbox mailBox = (Mailbox)itforcc.next();
137.230 - validateAdressUrl(mailBox.getNormalizedAddressSpec(),results,validator,target);
137.231 - }
137.232 -
137.233 - Iterator itforbcc = mBCCMailboxes.iterator();
137.234 - while (itforbcc.hasNext()) {
137.235 - Mailbox mailBox = (Mailbox)itforbcc.next();
137.236 - validateAdressUrl(mailBox.getNormalizedAddressSpec(),results,validator,target);
137.237 - }
137.238 -
137.239 - }
137.240 - } catch (URISyntaxException ex) {
137.241 - throw ex;
137.242 - } catch (Exception ex) {
137.243 - URISyntaxException mex =
137.244 - new URISyntaxException(mailToURI.toString(), "");
137.245 - mex.initCause(ex);
137.246 - throw mex;
137.247 - }
137.248 - }
137.249 -
137.250 - protected void parseMailBoxes(String data,Collection<Validator.ResultItem> results, String mailBoxType,Validator validator ,SMTPAddress target ) throws InvalidMailboxException
137.251 - {
137.252 -
137.253 - if (data == null || data.equals("")) {
137.254 - return;
137.255 - }
137.256 - String decodedData = data;
137.257 - try {
137.258 - decodedData = URLDecoder.decode(data,"US-ASCII");
137.259 - } catch (UnsupportedEncodingException ex) {
137.260 - //do nothing
137.261 - }
137.262 -
137.263 - String[] mailboxes = data.split(",");
137.264 - for (int ii = 0; ii < mailboxes.length; ii++) {
137.265 - try {
137.266 - if (mailBoxType.compareToIgnoreCase("cc")==0)
137.267 - mCCMailboxes.add(new Mailbox(mailboxes[ii]));
137.268 - else if (mailBoxType.compareToIgnoreCase("bcc")==0 )
137.269 - mBCCMailboxes.add(new Mailbox(mailboxes[ii]));
137.270 - else
137.271 - mMailboxes.add(new Mailbox(mailboxes[ii]));
137.272 - } catch (InvalidMailboxException ex) {
137.273 - results.add(new Validator.ResultItem(validator,
137.274 - Validator.ResultType.ERROR,
137.275 - target,
137.276 - mMessages.getString("SMTPHeader.MISSING_HEADER_VALUE")));
137.277 - }
137.278 - }
137.279 - }
137.280 -
137.281 - protected void parseHeaders(String data,Collection<Validator.ResultItem> results,Validator validator, SMTPAddress target )
137.282 - throws URISyntaxException {
137.283 -
137.284 -
137.285 - if (data == null || data.equals("")) {
137.286 - return;
137.287 - }
137.288 -
137.289 - String[] entries = data.split("&");
137.290 - for (int ii = 0; ii < entries.length; ii++) {
137.291 - String[] keyValue = entries[ii].split("=");
137.292 - if (keyValue.length != 2) {
137.293 - results.add(new Validator.ResultItem(validator,
137.294 - Validator.ResultType.ERROR,
137.295 - target,
137.296 - mMessages.getString("SMTPHeader.MISSING_HEADER_VALUE")));
137.297 - }
137.298 - if("".equals(keyValue[0])){
137.299 - results.add(new Validator.ResultItem(validator,
137.300 - Validator.ResultType.ERROR,
137.301 - target,
137.302 - mMessages.getString("SMTPHeader.MISSING_HEADER_KEY")));
137.303 - }
137.304 - try {
137.305 - keyValue[0] = URLDecoder.decode(keyValue[0],"US-ASCII");
137.306 - } catch (UnsupportedEncodingException ex) {
137.307 - //do nothing
137.308 - }
137.309 - try {
137.310 - keyValue[1] = URLDecoder.decode(keyValue[1],"US-ASCII");
137.311 - } catch (UnsupportedEncodingException ex) {
137.312 - //do nothing
137.313 - }
137.314 -
137.315 - mHeaders.put(keyValue[0], keyValue[1]);
137.316 - try{
137.317 - if(keyValue[0].compareToIgnoreCase("cc")== 0)
137.318 - parseMailBoxes(keyValue[1],results, "cc",validator,target);
137.319 - else if (keyValue[0].compareToIgnoreCase("bcc")== 0)
137.320 - parseMailBoxes(keyValue[1],results, "bcc",validator, target);
137.321 - else if (keyValue[0].compareToIgnoreCase("to")== 0)
137.322 - parseMailBoxes(keyValue[1],results, "to",validator,target);
137.323 - else if (keyValue[0].compareToIgnoreCase("subject") == 0)
137.324 - subject = keyValue[1];
137.325 - else if (keyValue[0].compareToIgnoreCase("body") == 0)
137.326 - body = keyValue[1];
137.327 -
137.328 - } catch (Exception ex) {
137.329 - results.add(new Validator.ResultItem(validator,
137.330 - Validator.ResultType.ERROR,
137.331 - target,
137.332 - mMessages.getString("SMTPMAILBOX.NOT_VALID_MAILBOX")));
137.333 - }
137.334 - }
137.335 -
137.336 - }
137.337 - protected void validateAdressUrl(String str,Collection<Validator.ResultItem> results,Validator validator, SMTPAddress target){
137.338 - try{
137.339 - InternetAddress IA = new InternetAddress(str , false);
137.340 - }catch(AddressException ae){
137.341 - results.add(new Validator.ResultItem(validator,
137.342 - Validator.ResultType.ERROR,
137.343 - target,ae.getMessage()));
137.344 - }
137.345 -
137.346 - }
137.347 -
137.348 -protected void validateAdressUrl(String str,Collection<Validator.ResultItem> results,Validator validator, SMTPInput target){
137.349 -
137.350 - try{
137.351 - InternetAddress IA = new InternetAddress(str , false);
137.352 - }catch(AddressException ae){
137.353 - results.add(new Validator.ResultItem(validator,
137.354 - Validator.ResultType.ERROR,
137.355 - target,ae.getMessage()));
137.356 - }
137.357 -
137.358 - }
137.359 -}
138.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/validator/SMTPComponentValidator.java Mon Jul 14 01:11:23 2008 +0530
138.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
138.3 @@ -1,429 +0,0 @@
138.4 -/*
138.5 - * The contents of this file are subject to the terms of the Common Development
138.6 - * and Distribution License (the License). You may not use this file except in
138.7 - * compliance with the License.
138.8 - *
138.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
138.10 - * or http://www.netbeans.org/cddl.txt.
138.11 - *
138.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
138.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
138.14 - * If applicable, add the following below the CDDL Header, with the fields
138.15 - * enclosed by brackets [] replaced by your own identifying information:
138.16 - * "Portions Copyrighted [year] [name of copyright owner]"
138.17 - *
138.18 - * The Original Software is NetBeans. The Initial Developer of the Original
138.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
138.20 - * Microsystems, Inc. All Rights Reserved.
138.21 - */
138.22 -package org.netbeans.modules.wsdlextensions.smtp.validator;
138.23 -
138.24 -import org.netbeans.modules.wsdlextensions.smtp.SMTPBinding;
138.25 -import java.net.URI;
138.26 -import java.net.URL;
138.27 -import java.util.Collection;
138.28 -import java.util.Collections;
138.29 -import java.util.HashSet;
138.30 -import java.util.Iterator;
138.31 -import java.util.List;
138.32 -import java.util.StringTokenizer;
138.33 -import java.util.ResourceBundle;
138.34 -
138.35 -import org.netbeans.modules.xml.wsdl.model.Binding;
138.36 -import org.netbeans.modules.xml.wsdl.model.BindingInput;
138.37 -import org.netbeans.modules.xml.wsdl.model.BindingFault;
138.38 -import org.netbeans.modules.xml.wsdl.model.BindingOperation;
138.39 -import org.netbeans.modules.xml.wsdl.model.BindingOutput;
138.40 -import org.netbeans.modules.xml.wsdl.model.PortType;
138.41 -import org.netbeans.modules.xml.wsdl.model.Definitions;
138.42 -import org.netbeans.modules.xml.wsdl.model.Input;
138.43 -import org.netbeans.modules.xml.wsdl.model.Output;
138.44 -import org.netbeans.modules.xml.wsdl.model.Port;
138.45 -
138.46 -import org.netbeans.modules.xml.wsdl.model.Service;
138.47 -import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
138.48 -import org.netbeans.modules.xml.wsdl.model.WSDLModel;
138.49 -
138.50 -import org.netbeans.modules.xml.xam.Component;
138.51 -import org.netbeans.modules.xml.xam.Model;
138.52 -import org.netbeans.modules.xml.xam.Model.State;
138.53 -import org.netbeans.modules.xml.xam.dom.NamedComponentReference;
138.54 -import org.netbeans.modules.xml.wsdl.model.Message;
138.55 -import org.netbeans.modules.xml.xam.spi.Validation;
138.56 -import org.netbeans.modules.xml.xam.spi.Validation.ValidationType;
138.57 -import org.netbeans.modules.xml.xam.spi.ValidationResult;
138.58 -import org.netbeans.modules.xml.xam.spi.Validator;
138.59 -import org.netbeans.modules.xml.xam.spi.Validator.ResultItem;
138.60 -
138.61 -import org.netbeans.modules.wsdlextensions.smtp.SMTPComponent;
138.62 -import org.netbeans.modules.wsdlextensions.smtp.SMTPOperation;
138.63 -import org.netbeans.modules.wsdlextensions.smtp.SMTPInput;
138.64 -//import com.sun.jbi.ui.devtool.wsdl.smtp.SMTPBinding;
138.65 -import org.netbeans.modules.wsdlextensions.smtp.SMTPAddress;
138.66 -import org.netbeans.modules.wsdlextensions.smtp.validator.SMTPAddressURL;
138.67 -import org.netbeans.modules.xml.wsdl.model.OperationParameter;
138.68 -import org.netbeans.modules.xml.wsdl.model.Part;
138.69 -
138.70 -
138.71 -/**
138.72 - * semantic validation, check WSDL elements & attributes values and
138.73 - * any relationship between;
138.74 - *
138.75 - * @author Sainath Adiraju
138.76 - */
138.77 -public class SMTPComponentValidator
138.78 - implements Validator, SMTPComponent.Visitor {
138.79 -
138.80 - // private static final String SMTP_URL_PREFIX = "smtp://";
138.81 - // private static final String SMTP_URL_LOGIN_HOST_DELIM = "@";
138.82 - // private static final String SMTP_URL_COLON_DELIM = ":";
138.83 -
138.84 -
138.85 - private static final ResourceBundle mMessages =
138.86 - ResourceBundle.getBundle("org.netbeans.modules.wsdlextensions.smtp.validator.Bundle");
138.87 -
138.88 - private Validation mValidation;
138.89 - private ValidationType mValidationType;
138.90 - private ValidationResult mValidationResult;
138.91 -
138.92 - public static final ValidationResult EMPTY_RESULT =
138.93 - new ValidationResult( Collections.EMPTY_SET,
138.94 - Collections.EMPTY_SET);
138.95 -
138.96 - public SMTPComponentValidator() {}
138.97 -
138.98 - /**
138.99 - * Returns name of this validation service.
138.100 - */
138.101 - public String getName() {
138.102 - return getClass().getName();
138.103 - }
138.104 -
138.105 - /**
138.106 - * Validates given model.
138.107 - *
138.108 - * @param model model to validate.
138.109 - * @param validation reference to the validation context.
138.110 - * @param validationType the type of validation to perform
138.111 - * @return ValidationResult.
138.112 - */
138.113 - public ValidationResult validate(Model model, Validation validation,
138.114 - ValidationType validationType) {
138.115 - mValidation = validation;
138.116 - mValidationType = validationType;
138.117 -
138.118 - HashSet<ResultItem> results = new HashSet<ResultItem>();
138.119 - HashSet<Model> models = new HashSet<Model>();
138.120 - models.add(model);
138.121 - mValidationResult = new ValidationResult(results, models);
138.122 -
138.123 - // Traverse the model
138.124 - if (model instanceof WSDLModel) {
138.125 - WSDLModel wsdlModel = (WSDLModel)model;
138.126 -
138.127 - if (model.getState() == State.NOT_WELL_FORMED) {
138.128 - return EMPTY_RESULT;
138.129 - }
138.130 -
138.131 - Definitions defs = wsdlModel.getDefinitions();
138.132 - Iterator<Binding> bindings = defs.getBindings().iterator();
138.133 -
138.134 - while (bindings.hasNext()) {
138.135 - Binding binding = bindings.next();
138.136 -
138.137 - if (binding.getType() == null || binding.getType().get() == null) {
138.138 - continue;
138.139 - }
138.140 -
138.141 -
138.142 - int numSMTPBindings = binding.getExtensibilityElements(SMTPBinding.class).size();
138.143 -
138.144 - if (numSMTPBindings == 0) {
138.145 - continue;
138.146 - }
138.147 -
138.148 - if (numSMTPBindings > 0 && numSMTPBindings != 1) {
138.149 - results.add(
138.150 - new Validator.ResultItem(this,
138.151 - Validator.ResultType.ERROR,
138.152 - binding,
138.153 - mMessages.getString("SMTPBindingValidation.ONLY_ONE_SMTP_BINDING_ALLOWED")));
138.154 - }
138.155 -
138.156 - Iterator<BindingOperation> bindingOps =
138.157 - binding.getBindingOperations().iterator();
138.158 - boolean foundSMTPOp = false;
138.159 - while (bindingOps.hasNext()) {
138.160 - BindingOperation bindingOp = bindingOps.next();
138.161 - List smtpOpsList = bindingOp.getExtensibilityElements(SMTPOperation.class);
138.162 - Iterator<SMTPOperation> smtpOps =
138.163 - smtpOpsList.iterator();
138.164 -
138.165 - while (smtpOps.hasNext()) {
138.166 - smtpOps.next().accept(this);
138.167 - }
138.168 -
138.169 - if(smtpOpsList.size() > 0) {
138.170 - foundSMTPOp = true;
138.171 - BindingInput bindingInput = bindingOp.getBindingInput();
138.172 - if (bindingInput != null) {
138.173 - int inputMessageCnt = 0;
138.174 - Iterator<SMTPInput> smtpInput =
138.175 - bindingInput.getExtensibilityElements(SMTPInput.class).iterator();
138.176 - while (smtpInput.hasNext()) {
138.177 - inputMessageCnt++;
138.178 - SMTPInput smtpInputEle = smtpInput.next();
138.179 - smtpInputEle.accept(this);
138.180 - validate(smtpInputEle, bindingInput.getInput().get());
138.181 - //smtpInputEle.accept(this,bindingInput.getInput().get());
138.182 - }
138.183 - if ( inputMessageCnt > 1 ) {
138.184 - results.add(
138.185 - new Validator.ResultItem(this,
138.186 - Validator.ResultType.ERROR,
138.187 - binding,
138.188 - mMessages.getString("SMTPBindingValidation.ATMOST_ONE_Message_IN_INPUT") + inputMessageCnt));
138.189 - }
138.190 - }
138.191 -
138.192 -
138.193 - }
138.194 - }
138.195 - // there is smtp:binding but no smtp:operation
138.196 - if ( numSMTPBindings > 0 && !foundSMTPOp ) {
138.197 - results.add(
138.198 - new Validator.ResultItem(this,
138.199 - Validator.ResultType.ERROR,
138.200 - binding,
138.201 - mMessages.getString("SMTPBindingValidation.MISSING_SMTP_OPERATION")));
138.202 - }
138.203 - // there is no smtp:binding but there are smtp:operation
138.204 - if ( numSMTPBindings == 0 && foundSMTPOp ) {
138.205 - results.add(
138.206 - new Validator.ResultItem(this,
138.207 - Validator.ResultType.ERROR,
138.208 - binding,
138.209 - mMessages.getString("SMTPBindingValidation.SMTP_OPERATION_WO_SMTP_BINDING")));
138.210 - }
138.211 - }
138.212 -
138.213 - Iterator<Service> services = defs.getServices().iterator();
138.214 - while (services.hasNext()) {
138.215 - Iterator<Port> ports = services.next().getPorts().iterator();
138.216 - while (ports.hasNext()) {
138.217 - Port port = ports.next();
138.218 - if(port.getBinding() != null) {
138.219 - Binding binding = port.getBinding().get();
138.220 - if(binding != null) {
138.221 - int numRelatedSMTPBindings = binding.getExtensibilityElements(SMTPBinding.class).size();
138.222 - Iterator<SMTPAddress> smtpAddresses = port.getExtensibilityElements(SMTPAddress.class).iterator();
138.223 - if((numRelatedSMTPBindings > 0) && (!smtpAddresses.hasNext())){
138.224 - results.add(
138.225 - new Validator.ResultItem(this,
138.226 - Validator.ResultType.ERROR,
138.227 - port,
138.228 - mMessages.getString("SMTPExtValidation.MISSING_SMTP_ADDRESS")));
138.229 - }
138.230 -
138.231 - if(port.getExtensibilityElements(SMTPAddress.class).size() > 1){
138.232 - results.add(
138.233 - new Validator.ResultItem(this,
138.234 - Validator.ResultType.ERROR,
138.235 - port,
138.236 - mMessages.getString("SMTPExtValidation.ONLY_ONE_SMTPADDRESS_ALLOWED")));
138.237 - }
138.238 - while (smtpAddresses.hasNext()) {
138.239 - smtpAddresses.next().accept(this);
138.240 - }
138.241 -
138.242 -
138.243 - }
138.244 - }
138.245 - }
138.246 - }
138.247 - }
138.248 - // Clear out our state
138.249 - mValidation = null;
138.250 - mValidationType = null;
138.251 -
138.252 - return mValidationResult;
138.253 - }
138.254 -
138.255 - public void visit(SMTPAddress target) {
138.256 - // validate the following:
138.257 - // (1) attribute 'url' has the right syntax: i.e. mailto:sainath.adirjau@sun.com
138.258 - //
138.259 - Collection<ResultItem> results =
138.260 - mValidationResult.getValidationResult();
138.261 -
138.262 - SMTPAddressURL url = new SMTPAddressURL();
138.263 - try{
138.264 - url.unmarshal(results, this, target);
138.265 - }catch(Exception ex){
138.266 -
138.267 - }
138.268 - }
138.269 - public void visit(SMTPBinding target) {
138.270 - // for smtp binding tag - nothing to validate at this point
138.271 - }
138.272 -
138.273 - public void visit(SMTPOperation target) {
138.274 - // for smtp operation tag - nothing to validate at this point
138.275 - }
138.276 - public void visit(SMTPInput target){
138.277 - //nothing to validate
138.278 - }
138.279 - private void validate (SMTPInput target,OperationParameter opParam){
138.280 -
138.281 - Collection<ResultItem> results = mValidationResult.getValidationResult();
138.282 - String from = target.getFrom();
138.283 -
138.284 - if(from != null){
138.285 - if (from==""){
138.286 - results.add(new Validator.ResultItem(this,
138.287 - Validator.ResultType.ERROR,
138.288 - target,
138.289 - mMessages.getString("SMTPINPUTValidation.INVALID_FROM_ADDRESS")));
138.290 - }else if (!referencesValidMessagePart(opParam.getMessage(), from)) {
138.291 - results.add(new Validator.ResultItem(this,
138.292 - Validator.ResultType.ERROR,
138.293 - target,
138.294 - mMessages.getString("SMTPINPUTValidation.INVALID_PART_NAME")));
138.295 - }
138.296 -
138.297 - }
138.298 -
138.299 - String to = target.getTo();
138.300 - if(to != null){
138.301 - if(to==""){
138.302 - results.add(new Validator.ResultItem(this,
138.303 - Validator.ResultType.ERROR,
138.304 - target,
138.305 - mMessages.getString("SMTPINPUTValidation.INVALID_TO_ADDRESS")));
138.306 - }else if (!referencesValidMessagePart(opParam.getMessage(), to)) {
138.307 - results.add(new Validator.ResultItem(this,
138.308 - Validator.ResultType.ERROR,
138.309 - target,
138.310 - mMessages.getString("SMTPINPUTValidation.INVALID_PART_NAME")));
138.311 - }
138.312 - }
138.313 - String cc = target.getCc();
138.314 - if(cc != null){
138.315 - if(cc==""){
138.316 - results.add(new Validator.ResultItem(this,
138.317 - Validator.ResultType.ERROR,
138.318 - target,
138.319 - mMessages.getString("SMTPINPUTValidation.INVALID_CC_ADDRESS")));
138.320 - }else if (!referencesValidMessagePart(opParam.getMessage(), cc)) {
138.321 - results.add(new Validator.ResultItem(this,
138.322 - Validator.ResultType.ERROR,
138.323 - target,
138.324 - mMessages.getString("SMTPINPUTValidation.INVALID_PART_NAME")));
138.325 - }
138.326 - }
138.327 - String bcc = target.getBcc();
138.328 - if(bcc != null){
138.329 - if(bcc==""){
138.330 - results.add(new Validator.ResultItem(this,
138.331 - Validator.ResultType.ERROR,
138.332 - target,
138.333 - mMessages.getString("SMTPINPUTValidation.INVALID_BCC_ADDRESS")));
138.334 - }else if (!referencesValidMessagePart(opParam.getMessage(), bcc)) {
138.335 - results.add(new Validator.ResultItem(this,
138.336 - Validator.ResultType.ERROR,
138.337 - target,
138.338 - mMessages.getString("SMTPINPUTValidation.INVALID_PART_NAME")));
138.339 - }
138.340 - }
138.341 - String message = target.getMessageName();
138.342 - if(message != null){
138.343 - if(message==""){
138.344 - results.add(new Validator.ResultItem(this,
138.345 - Validator.ResultType.ERROR,
138.346 - target,
138.347 - mMessages.getString("SMTPINPUTValidation.INVALID_BCC_ADDRESS")));
138.348 - }else if (!referencesValidMessagePart(opParam.getMessage(), message)) {
138.349 - results.add(new Validator.ResultItem(this,
138.350 - Validator.ResultType.ERROR,
138.351 - target,
138.352 - mMessages.getString("SMTPINPUTValidation.INVALID_PART_NAME")));
138.353 - }
138.354 - }
138.355 - String subject = target.getSubjectName();
138.356 - if(subject != null){
138.357 - if(subject==""){
138.358 - results.add(new Validator.ResultItem(this,
138.359 - Validator.ResultType.ERROR,
138.360 - target,
138.361 - mMessages.getString("SMTPINPUTValidation.INVALID_BCC_ADDRESS")));
138.362 - }else if (!referencesValidMessagePart(opParam.getMessage(), subject)) {
138.363 - results.add(new Validator.ResultItem(this,
138.364 - Validator.ResultType.ERROR,
138.365 - target,
138.366 - mMessages.getString("SMTPINPUTValidation.INVALID_PART_NAME")));
138.367 - }
138.368 - }
138.369 - String charset = target.getCharSet();
138.370 - if(charset != null){
138.371 - if(charset==""){
138.372 - results.add(new Validator.ResultItem(this,
138.373 - Validator.ResultType.ERROR,
138.374 - target,
138.375 - mMessages.getString("SMTPINPUTValidation.INVALID_BCC_ADDRESS")));
138.376 - }else if (!referencesValidMessagePart(opParam.getMessage(), charset)) {
138.377 - results.add(new Validator.ResultItem(this,
138.378 - Validator.ResultType.ERROR,
138.379 - target,
138.380 - mMessages.getString("SMTPINPUTValidation.INVALID_PART_NAME")));
138.381 - }
138.382 - }
138.383 -
138.384 - String use = target.getUse();
138.385 - String literal = "literal";
138.386 - String encodingStyle = target.getEncodingStyle();
138.387 - if(use != null && !"".equals(use) ){
138.388 - if( !literal.equals(use) && encodingStyle == null)
138.389 - results.add(new Validator.ResultItem(this,
138.390 - Validator.ResultType.ERROR,
138.391 - target,
138.392 - mMessages.getString("SMTPINPUTValidation.ENCODING_STYLE_NOT_SPECIFIED")));
138.393 - }
138.394 - if(encodingStyle != null && !"".equals(encodingStyle)){
138.395 - if(use == null || literal.equals(use))
138.396 - results.add(new Validator.ResultItem(this,
138.397 - Validator.ResultType.ERROR,
138.398 - target,
138.399 - mMessages.getString("SMTPINPUTValidation.ENCODING_USE_NOT_SPECIFIED")));
138.400 - }
138.401 -
138.402 - }
138.403 -
138.404 -
138.405 - private boolean referencesValidMessagePart (NamedComponentReference<Message> wsdlMessage,
138.406 - String partName) {
138.407 -
138.408 - // Let wsdl validator catch undefined message for operation input or output
138.409 - if (wsdlMessage == null || wsdlMessage.get() == null || wsdlMessage.get().getParts() == null) {
138.410 - return true;
138.411 - }
138.412 -
138.413 - boolean isValdPartReference = false;
138.414 - Iterator<Part> partIter = wsdlMessage.get().getParts().iterator();
138.415 - while(partIter.hasNext()) {
138.416 - Part p = partIter.next();
138.417 - if (p.getName().equals(partName)) {
138.418 - isValdPartReference = true;
138.419 - break;
138.420 - }
138.421 - }
138.422 - return isValdPartReference;
138.423 - }
138.424 -
138.425 - private boolean nonEmptyString(String strToTest) {
138.426 - boolean nonEmpty = false;
138.427 - if (strToTest != null && strToTest.length() > 0) {
138.428 - nonEmpty = true;
138.429 - }
138.430 - return nonEmpty;
138.431 - }
138.432 -}
139.1 --- a/wsdlextensions.smtp/src/org/netbeans/modules/wsdlextensions/smtp/validator/SmtpValidatorSchemaFactory.java Mon Jul 14 01:11:23 2008 +0530
139.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
139.3 @@ -1,52 +0,0 @@
139.4 -/*
139.5 - * The contents of this file are subject to the terms of the Common Development
139.6 - * and Distribution License (the License). You may not use this file except in
139.7 - * compliance with the License.
139.8 - *
139.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
139.10 - * or http://www.netbeans.org/cddl.txt.
139.11 - *
139.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
139.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
139.14 - * If applicable, add the following below the CDDL Header, with the fields
139.15 - * enclosed by brackets [] replaced by your own identifying information:
139.16 - * "Portions Copyrighted [year] [name of copyright owner]"
139.17 - *
139.18 - * The Original Software is NetBeans. The Initial Developer of the Original
139.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
139.20 - * Microsystems, Inc. All Rights Reserved.
139.21 - */
139.22 -
139.23 -package org.netbeans.modules.wsdlextensions.smtp.validator;
139.24 -
139.25 -import java.io.InputStream;
139.26 -import javax.xml.transform.Source;
139.27 -import javax.xml.transform.stream.StreamSource;
139.28 -import org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory;
139.29 -
139.30 -/**
139.31 - * This class implements ValidatorSchemaFactory interface.
139.32 - *
139.33 - * @author Sainath Adiraju
139.34 - */
139.35 -public class SmtpValidatorSchemaFactory extends ValidatorSchemaFactory{
139.36 - static final String smtpXSDUrl = "/org/netbeans/modules/wsdlextensions/smtp/resources/smtp-ext.xsd";
139.37 -
139.38 - public String getNamespaceURI() {
139.39 - return "http://schemas.sun.com/jbi/wsdl-extensions/smtp/";
139.40 - }
139.41 -
139.42 - public InputStream getSchemaInputStream() {
139.43 - return SmtpValidatorSchemaFactory.class.getResourceAsStream(smtpXSDUrl);
139.44 - }
139.45 -
139.46 - /**
139.47 - * Returns the Inputstream related to this schema
139.48 - */
139.49 - public Source getSchemaSource() {
139.50 - InputStream in = SmtpValidatorSchemaFactory.class.getResourceAsStream(smtpXSDUrl);
139.51 - Source s = new StreamSource(in);
139.52 - s.setSystemId(SmtpValidatorSchemaFactory.class.getResource(smtpXSDUrl).toString());
139.53 - return s;
139.54 - }
139.55 -}
140.1 --- a/wsdlextensions.smtp/test/build-unit.xml Mon Jul 14 01:11:23 2008 +0530
140.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
140.3 @@ -1,72 +0,0 @@
140.4 -<?xml version="1.0"?>
140.5 -<!--
140.6 - The contents of this file are subject to the terms of the Common Development
140.7 - and Distribution License (the License). You may not use this file except in
140.8 - compliance with the License.
140.9 -
140.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
140.11 - or http://www.netbeans.org/cddl.txt.
140.12 -
140.13 - When distributing Covered Code, include this CDDL Header Notice in each file
140.14 - and include the License file at http://www.netbeans.org/cddl.txt.
140.15 - If applicable, add the following below the CDDL Header, with the fields
140.16 - enclosed by brackets [] replaced by your own identifying information:
140.17 - "Portions Copyrighted [year] [name of copyright owner]"
140.18 -
140.19 - The Original Software is NetBeans. The Initial Developer of the Original
140.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
140.21 - Microsystems, Inc. All Rights Reserved.
140.22 --->
140.23 -
140.24 -<project name="org.netbeans.modules.wsdlextensions.smtp/test-unit" basedir="." default="all">
140.25 - <!-- ========= -->
140.26 - <!-- Compilers -->
140.27 - <!-- ========= -->
140.28 - <property name="build.compiler.source" value="1.5"/>
140.29 - <property file="../nbproject/project.properties"/>
140.30 -
140.31 - <target name="default-compiler">
140.32 - <!-- Build application before tests -->
140.33 - <ant dir=".." target="jar"/>
140.34 - <buildTests srcdir="unit/src" compileexcludes="**/data/**">
140.35 - <property name="javac.source" value="1.5"/>
140.36 - <property name="package.tests.includes" value="**/*"/>
140.37 - <property name="package.tests.excludes" value="**/*.java"/>
140.38 - <classpath>
140.39 - <!-- Add classpath elements needed to compile tests -->
140.40 - <pathelement path="${test.unit.cp}"/>
140.41 - <pathelement path="${test.unit.cp.extra}"/>
140.42 - </classpath>
140.43 - </buildTests>
140.44 - </target>
140.45 -
140.46 - <!-- ========= -->
140.47 - <!-- Executors -->
140.48 - <!-- ========= -->
140.49 -
140.50 - <target name="run-unit-test">
140.51 - <echo>NNNNNNNNNNNNNNNNNNNNtest.unit.cp.extra=${test.unit.cp.extra}</echo>
140.52 - <executeTests pluginname="jvm">
140.53 - <classpath>
140.54 - <!-- Add classpath elements needed to run tests -->
140.55 - <pathelement path="${test.unit.cp}"/>
140.56 - <pathelement path="${test.unit.cp.extra}"/>
140.57 - <pathelement path="${test.unit.run.cp.extra}"/>
140.58 - </classpath>
140.59 - </executeTests>
140.60 - </target>
140.61 -
140.62 - <target name="run-ide-test">
140.63 - <property name="xtest.ide.use.classloader" value="org.netbeans.modules.wsdlextensions.smtp"/>
140.64 - <executeTests pluginName="ide">
140.65 - <classpath>
140.66 - <!-- Add classpath elements needed to run tests -->
140.67 - <pathelement path="${test.unit.cp}"/>
140.68 - <pathelement path="${test.unit.cp.extra}"/>
140.69 - <pathelement path="${test.unit.run.cp.extra}"/>
140.70 - </classpath>
140.71 - </executeTests>
140.72 - </target>
140.73 -
140.74 -</project>
140.75 -
141.1 --- a/wsdlextensions.smtp/test/build.xml Mon Jul 14 01:11:23 2008 +0530
141.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
141.3 @@ -1,100 +0,0 @@
141.4 -<?xml version="1.0"?>
141.5 -<!--
141.6 - The contents of this file are subject to the terms of the Common Development
141.7 - and Distribution License (the License). You may not use this file except in
141.8 - compliance with the License.
141.9 -
141.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
141.11 - or http://www.netbeans.org/cddl.txt.
141.12 -
141.13 - When distributing Covered Code, include this CDDL Header Notice in each file
141.14 - and include the License file at http://www.netbeans.org/cddl.txt.
141.15 - If applicable, add the following below the CDDL Header, with the fields
141.16 - enclosed by brackets [] replaced by your own identifying information:
141.17 - "Portions Copyrighted [year] [name of copyright owner]"
141.18 -
141.19 - The Original Software is NetBeans. The Initial Developer of the Original
141.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
141.21 - Microsystems, Inc. All Rights Reserved.
141.22 --->
141.23 -<project name="org.netbeans.modules.wsdlextensions.smtp/test" basedir="." default="all">
141.24 -
141.25 - <!-- Name of tested module -->
141.26 - <property name="xtest.module" value="org.netbeans.modules.wsdlextensions.smtp"/>
141.27 -
141.28 - <!-- Home of XTest -->
141.29 - <property name="xtest.home" location="../../../xtest"/>
141.30 - <import file="${xtest.home}/lib/templates/xtest.xml"/>
141.31 -
141.32 - <!-- default testtypes, attributes used when no value is supplied from command line -->
141.33 - <property name="xtest.testtype" value="unit"/>
141.34 - <property name="xtest.attribs" value="stable"/>
141.35 - <!--
141.36 - <property name="xtest.testtype" value="functional"/>
141.37 - <property name="xtest.attribs" value="stable,validation"/>
141.38 - -->
141.39 -
141.40 - <!-- Points to directory with IDE to test. Optional for IDE tests. -->
141.41 - <property name="netbeans.dest.dir" location="${xtest.home}/../nbbuild/netbeans"/>
141.42 -
141.43 - <!--
141.44 - *****************************************************
141.45 - ** You should not change anything after this comment,
141.46 - ** unless you really know what you are doing
141.47 - ******************************************************
141.48 - -->
141.49 -
141.50 - <!-- Ant property. Value 'ignore' means that system classpath is ignored
141.51 - and only classpath specified in build file is used. -->
141.52 - <property name="build.sysclasspath" value="ignore"/>
141.53 -
141.54 - <!-- Points to antfile with module's harness.
141.55 - Targets from that antfile is called from this build.xml -->
141.56 - <property name="xtest.module_harness.antfile" location="${xtest.home}/lib/module_harness.xml"/>
141.57 -
141.58 - <!-- before using xtest task, it has to be defined -->
141.59 - <taskdef name="xtest" classname="org.netbeans.xtest.usertasks.XTestActionTask"
141.60 - classpath="${xtest.home}/lib/xtest.jar"/>
141.61 -
141.62 - <!-- ============ -->
141.63 - <!-- Main targets -->
141.64 - <!-- ============ -->
141.65 -
141.66 - <target name="all" depends="runtests"/>
141.67 -
141.68 - <!-- This calls target which will call compilers according to cfg file.
141.69 - You should not change this target unless you realy know what you are doing -->
141.70 - <target name="buildtests">
141.71 - <xtest executeAction="buildTests"/>
141.72 - </target>
141.73 -
141.74 - <!-- This calls common clean process. This cleans the tests -->
141.75 - <!-- You can write your own if you need something special -->
141.76 - <target name="cleantests">
141.77 - <xtest executeAction="cleanTests"/>
141.78 - </target>
141.79 -
141.80 - <!-- This target runs tests. You should not change this -->
141.81 - <!-- target unless you realy know what you are doing -->
141.82 - <target name="runtests" depends="buildtests">
141.83 - <echo message="Module: Running tests for ${xtest.module}, testtype ${xtest.testtype}, attribs=${xtest.attribs}"/>
141.84 - <xtest executeAction="runTests"/>
141.85 - </target>
141.86 -
141.87 - <!-- This target cleans results -->
141.88 - <target name="cleanresults">
141.89 - <xtest executeAction="cleanResults"/>
141.90 - </target>
141.91 -
141.92 - <!-- This target cleans both tests and results -->
141.93 - <target name="realclean">
141.94 - <xtest executeAction="cleanAll"/>
141.95 - </target>
141.96 -
141.97 - <!-- This target prints out default xtest configuration which will be used to run the tests -->
141.98 - <target name="printconfig">
141.99 - <echo message="Default config is testtype: ${xtest.testtype}, attributes: ${xtest.attribs}."/>
141.100 - </target>
141.101 -
141.102 -</project>
141.103 -
142.1 --- a/wsdlextensions.smtp/test/cfg-unit.xml Mon Jul 14 01:11:23 2008 +0530
142.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
142.3 @@ -1,44 +0,0 @@
142.4 -<?xml version="1.0" encoding="UTF-8"?>
142.5 -<!--
142.6 - The contents of this file are subject to the terms of the Common Development
142.7 - and Distribution License (the License). You may not use this file except in
142.8 - compliance with the License.
142.9 -
142.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
142.11 - or http://www.netbeans.org/cddl.txt.
142.12 -
142.13 - When distributing Covered Code, include this CDDL Header Notice in each file
142.14 - and include the License file at http://www.netbeans.org/cddl.txt.
142.15 - If applicable, add the following below the CDDL Header, with the fields
142.16 - enclosed by brackets [] replaced by your own identifying information:
142.17 - "Portions Copyrighted [year] [name of copyright owner]"
142.18 -
142.19 - The Original Software is NetBeans. The Initial Developer of the Original
142.20 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
142.21 - Microsystems, Inc. All Rights Reserved.
142.22 --->
142.23 -
142.24 -<mconfig name="Unit config">
142.25 -
142.26 - <testbag testattribs="stable" executor="unit-executor" name="Unit tests">
142.27 - <testset dir="unit/src">
142.28 - <patternset>
142.29 - <include name="**/*Test.class"/>
142.30 - <!-- exclude name="**/readwrite/*Test.class"/ -->
142.31 - </patternset>
142.32 - </testset>
142.33 - </testbag>
142.34 -
142.35 - <testbag testattribs="ide" executor="ide-executor" name="IDE tests">
142.36 - <testset dir="unit/src">
142.37 - <patternset>
142.38 - <include name="**/*Test.class"/>
142.39 - </patternset>
142.40 - </testset>
142.41 - </testbag>
142.42 -
142.43 - <compiler name="default-compiler" antfile="build-unit.xml" target="default-compiler" default="true"/>
142.44 - <executor name="unit-executor" antfile="build-unit.xml" target="run-unit-test"/>
142.45 - <executor name="ide-executor" antfile="build-unit.xml" target="run-ide-test"/>
142.46 -
142.47 -</mconfig>
143.1 Binary file wsdlextensions.smtp/test/lib/tests-unit.jar has changed
144.1 --- a/wsdlextensions.smtp/test/unit/src/org/netbeans/modules/wsdlextensions/smtp/validator/SchemaTest.java Mon Jul 14 01:11:23 2008 +0530
144.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
144.3 @@ -1,96 +0,0 @@
144.4 -/*
144.5 - * The contents of this file are subject to the terms of the Common Development
144.6 - * and Distribution License (the License). You may not use this file except in
144.7 - * compliance with the License.
144.8 - *
144.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
144.10 - * or http://www.netbeans.org/cddl.txt.
144.11 - *
144.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
144.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
144.14 - * If applicable, add the following below the CDDL Header, with the fields
144.15 - * enclosed by brackets [] replaced by your own identifying information:
144.16 - * "Portions Copyrighted [year] [name of copyright owner]"
144.17 - *
144.18 - * The Original Software is NetBeans. The Initial Developer of the Original
144.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
144.20 - * Microsystems, Inc. All Rights Reserved.
144.21 - */
144.22 -
144.23 -/*
144.24 - * SchemaTest.java
144.25 - * JUnit based test
144.26 - *
144.27 - * Created on January 31, 2007, 6:25 PM
144.28 - */
144.29 -
144.30 -package org.netbeans.modules.wsdlextensions.smtp.validator;
144.31 -
144.32 -import java.net.URL;
144.33 -import javax.xml.XMLConstants;
144.34 -import javax.xml.transform.stream.StreamSource;
144.35 -import javax.xml.validation.Schema;
144.36 -import javax.xml.validation.SchemaFactory;
144.37 -import junit.framework.*;
144.38 -import org.xml.sax.ErrorHandler;
144.39 -import org.xml.sax.SAXException;
144.40 -import org.xml.sax.SAXParseException;
144.41 -
144.42 -/**
144.43 - *
144.44 - * @author radval
144.45 - */
144.46 -public class SchemaTest extends TestCase {
144.47 -
144.48 - private Exception mLastError;
144.49 -
144.50 - private URL schemaUrl = SchemaTest.class.getResource("/org/netbeans/modules/wsdlextensions/smtp/resources/smtp-ext.xsd");
144.51 -
144.52 - public SchemaTest(String testName) {
144.53 - super(testName);
144.54 - }
144.55 -
144.56 - protected void setUp() throws Exception {
144.57 - }
144.58 -
144.59 - protected void tearDown() throws Exception {
144.60 - }
144.61 -
144.62 - // TODO add test methods here. The name must begin with 'test'. For example:
144.63 - // public void testHello() {}
144.64 -
144.65 - public void testSchema() throws Exception {
144.66 - MyErrorHandler errorHandler = new MyErrorHandler();
144.67 - SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
144.68 - sf.setErrorHandler(errorHandler);
144.69 - SmtpValidatorSchemaFactory fac = new SmtpValidatorSchemaFactory();
144.70 - StreamSource s = new StreamSource(fac.getSchemaInputStream());
144.71 - s.setSystemId(SmtpValidatorSchemaFactory.class.getResource(SmtpValidatorSchemaFactory.smtpXSDUrl).toString());
144.72 - Schema schema = sf.newSchema(s);
144.73 -
144.74 - assertNotNull("schema should not be null", schema);
144.75 -
144.76 - assertNull("No exception should occur in schema parsing", mLastError);
144.77 -
144.78 - }
144.79 -
144.80 - class MyErrorHandler implements ErrorHandler {
144.81 -
144.82 - public void error(SAXParseException exception) throws SAXException {
144.83 - mLastError = exception;
144.84 - exception.printStackTrace();
144.85 - }
144.86 -
144.87 - public void fatalError(SAXParseException exception) throws SAXException {
144.88 - mLastError = exception;
144.89 - exception.printStackTrace();
144.90 - }
144.91 -
144.92 - public void warning(SAXParseException exception) throws SAXException {
144.93 - exception.printStackTrace();
144.94 - }
144.95 -
144.96 -
144.97 -
144.98 - }
144.99 -}
145.1 --- a/wsdlextensions.smtp/test/unit/src/org/netbeans/modules/wsdlextensions/smtp/validator/SmtpValidatorSchemaFactoryTest.java Mon Jul 14 01:11:23 2008 +0530
145.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
145.3 @@ -1,76 +0,0 @@
145.4 -/*
145.5 - * The contents of this file are subject to the terms of the Common Development
145.6 - * and Distribution License (the License). You may not use this file except in
145.7 - * compliance with the License.
145.8 - *
145.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
145.10 - * or http://www.netbeans.org/cddl.txt.
145.11 - *
145.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
145.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
145.14 - * If applicable, add the following below the CDDL Header, with the fields
145.15 - * enclosed by brackets [] replaced by your own identifying information:
145.16 - * "Portions Copyrighted [year] [name of copyright owner]"
145.17 - *
145.18 - * The Original Software is NetBeans. The Initial Developer of the Original
145.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
145.20 - * Microsystems, Inc. All Rights Reserved.
145.21 - */
145.22 -
145.23 -/*
145.24 - * SmtpValidatorSchemaFactoryTest.java
145.25 - * JUnit based test
145.26 - *
145.27 - * Created on February 6, 2007, 11:39 PM
145.28 - */
145.29 -
145.30 -package org.netbeans.modules.wsdlextensions.smtp.validator;
145.31 -
145.32 -import javax.xml.transform.Source;
145.33 -import junit.framework.*;
145.34 -import java.io.InputStream;
145.35 -import org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory;
145.36 -
145.37 -/**
145.38 - *
145.39 - * @author radval
145.40 - */
145.41 -public class SmtpValidatorSchemaFactoryTest extends TestCase {
145.42 -
145.43 - public SmtpValidatorSchemaFactoryTest(String testName) {
145.44 - super(testName);
145.45 - }
145.46 -
145.47 - protected void setUp() throws Exception {
145.48 - }
145.49 -
145.50 - protected void tearDown() throws Exception {
145.51 - }
145.52 -
145.53 - /**
145.54 - * Test of getNamespaceURI method, of class org.netbeans.modules.wsdlextensions.smtp.validator.SmtpValidatorSchemaFactory.
145.55 - */
145.56 - public void testGetNamespaceURI() {
145.57 - System.out.println("getNamespaceURI");
145.58 -
145.59 - SmtpValidatorSchemaFactory instance = new SmtpValidatorSchemaFactory();
145.60 -
145.61 - String result = instance.getNamespaceURI();
145.62 - assertNotNull(result);
145.63 -
145.64 - }
145.65 -
145.66 - /**
145.67 - * Test of getSchemaInputStream method, of class org.netbeans.modules.wsdlextensions.smtp.validator.SmtpValidatorSchemaFactory.
145.68 - */
145.69 - public void testGetSchemaSource() {
145.70 - System.out.println("getSchemaSource");
145.71 -
145.72 - SmtpValidatorSchemaFactory instance = new SmtpValidatorSchemaFactory();
145.73 -
145.74 - Source result = instance.getSchemaSource();
145.75 - assertNotNull(result);
145.76 -
145.77 - }
145.78 -
145.79 -}