[savara-commits] savara SVN: r34 - in trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl: .settings and 9 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Oct 2 17:25:19 EDT 2009


Author: objectiser
Date: 2009-10-02 17:25:19 -0400 (Fri, 02 Oct 2009)
New Revision: 34

Added:
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.classpath
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.project
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.settings/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.settings/org.eclipse.jdt.core.prefs
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.settings/org.eclipse.pde.core.prefs
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/Copyright.txt
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/META-INF/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/META-INF/MANIFEST.MF
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/build.properties
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/WSDLGenerator.java
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/osgi/
   trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/osgi/Activator.java
Log:
Initial skeleton for WSDL Generator.

Added: trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.classpath
===================================================================
--- trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.classpath	                        (rev 0)
+++ trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.classpath	2009-10-02 21:25:19 UTC (rev 34)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="src" path="src/java"/>
+	<classpathentry kind="output" path="classes"/>
+</classpath>

Added: trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.project
===================================================================
--- trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.project	                        (rev 0)
+++ trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.project	2009-10-02 21:25:19 UTC (rev 34)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.jboss.savara.tools.wsdl</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.settings/org.eclipse.jdt.core.prefs	                        (rev 0)
+++ trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.settings/org.eclipse.jdt.core.prefs	2009-10-02 21:25:19 UTC (rev 34)
@@ -0,0 +1,8 @@
+#Fri Oct 02 20:31:25 BST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6

Added: trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.settings/org.eclipse.pde.core.prefs
===================================================================
--- trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.settings/org.eclipse.pde.core.prefs	                        (rev 0)
+++ trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/.settings/org.eclipse.pde.core.prefs	2009-10-02 21:25:19 UTC (rev 34)
@@ -0,0 +1,5 @@
+#Fri Oct 02 20:31:25 BST 2009
+eclipse.preferences.version=1
+pluginProject.equinox=false
+pluginProject.extensions=false
+resolve.requirebundle=false

Added: trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/Copyright.txt
===================================================================
--- trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/Copyright.txt	                        (rev 0)
+++ trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/Copyright.txt	2009-10-02 21:25:19 UTC (rev 34)
@@ -0,0 +1,17 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ */

Added: trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/META-INF/MANIFEST.MF
===================================================================
--- trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/META-INF/MANIFEST.MF	                        (rev 0)
+++ trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/META-INF/MANIFEST.MF	2009-10-02 21:25:19 UTC (rev 34)
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JBoss SAVARA Tools WSDL Plug-in
+Bundle-SymbolicName: org.jboss.savara.tools.wsdl
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.savara.tools.wsdl.osgi.Activator
+Import-Package: org.osgi.framework;version="1.3.0"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Vendor: www.jboss.org
+Require-Bundle: javax.wsdl;bundle-version="1.5.1",
+ org.scribble.contract.model;bundle-version="0.1.0",
+ org.apache.commons.logging;bundle-version="1.0.4"

Added: trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/build.properties
===================================================================
--- trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/build.properties	                        (rev 0)
+++ trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/build.properties	2009-10-02 21:25:19 UTC (rev 34)
@@ -0,0 +1,4 @@
+source.. = src/java/
+output.. = classes/
+bin.includes = META-INF/,\
+               .

Added: trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/WSDLGenerator.java
===================================================================
--- trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/WSDLGenerator.java	                        (rev 0)
+++ trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/WSDLGenerator.java	2009-10-02 21:25:19 UTC (rev 34)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ */
+package org.jboss.savara.tools.wsdl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * This class generates a WSDL definition from a Contract model.
+ *
+ */
+public class WSDLGenerator {
+
+	private static Log logger = LogFactory.getLog(WSDLGenerator.class);
+	
+	public WSDLGenerator() {
+	}
+	
+	public javax.wsdl.Definition generate(org.scribble.contract.model.Contract contract) {
+		javax.wsdl.Definition ret=null;
+		
+		try {
+			javax.wsdl.factory.WSDLFactory fact=
+						javax.wsdl.factory.WSDLFactory.newInstance();
+			
+			ret = fact.newDefinition();
+			
+		} catch(Exception e) {
+			logger.error("Failed to generate WSDL", e);
+		}
+		
+		return(ret);
+	}
+}

Added: trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/osgi/Activator.java
===================================================================
--- trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/osgi/Activator.java	                        (rev 0)
+++ trunk/tools/eclipse/plugins/org.jboss.savara.tools.wsdl/src/java/org/jboss/savara/tools/wsdl/osgi/Activator.java	2009-10-02 21:25:19 UTC (rev 34)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ */
+package org.jboss.savara.tools.wsdl.osgi;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+	 */
+	public void start(BundleContext context) throws Exception {
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+	 */
+	public void stop(BundleContext context) throws Exception {
+	}
+
+}



More information about the savara-commits mailing list